/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #101014;
  --bg-secondary: #18181f;
  --bg-card: #1c1c24;
  --bg-glass: rgba(24, 24, 31, 0.85);
  --accent: #c9a227;
  --accent-hover: #ddb63a;
  --accent-soft: rgba(201, 162, 39, 0.12);
  --accent-muted: rgba(201, 162, 39, 0.45);
  /* Red team / blue team accents (muted — operator, not gamer-neon) */
  --rt: #c45a5a;
  --rt-soft: rgba(196, 90, 90, 0.14);
  --rt-border: rgba(196, 90, 90, 0.45);
  --bt: #4f8ad4;
  --bt-soft: rgba(79, 138, 212, 0.14);
  --bt-border: rgba(79, 138, 212, 0.5);
  --pt: #9b7ed8;
  --pt-soft: rgba(155, 126, 216, 0.12);
  --text-primary: #ececef;
  --text-secondary: #9898a6;
  --text-muted: #5c5c6a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* subtle grain-ish noise without perf hit */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== LANGUAGE SWITCHER ===== */
body.lang-pl .en { display: none !important; }
body:not(.lang-pl) .pl { display: none !important; }

.lang-btn {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 0.5rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.lang-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .lang-btn {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--accent-muted);
  border-radius: 4px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(10, 10, 14, 0.7);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.navbar.scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
  padding: 1rem 5%;
  background: rgba(10, 10, 14, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-color: transparent;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.logo-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2rem;
  background: var(--accent);
  margin-left: 4px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-logo .logo-domain {
  color: var(--accent-muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  overflow: hidden;
  display: inline-block;
}

.lang-switch {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
}

.lang-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201, 162, 39, 0.1);
}

.lang-switch::before {
  display: none !important;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent-soft);
  border-radius: 100px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.nav-links a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-links a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::before {
  opacity: 0.4;
  transform: scale(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 1.5rem 3.5rem;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.png') center center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, var(--bg-primary) 75%),
    linear-gradient(180deg, var(--bg-primary) 0%, transparent 18%, transparent 82%, var(--bg-primary) 100%);
}

.hero-bg-glow {
  position: absolute;
  width: min(520px, 85vw);
  height: min(520px, 85vw);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  pointer-events: none;
}

.hero-bg-glow.glow-1 {
  top: 15%;
  right: -5%;
  background: var(--rt);
}

.hero-bg-glow.glow-2 {
  bottom: 5%;
  left: -10%;
  background: var(--bt);
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 42rem;
  order: 2;
}

.hero-visual {
  order: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-avatar {
  position: relative;
  cursor: pointer;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 3px;
  background:
    linear-gradient(var(--bg-secondary), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--rt-border), var(--bt-border)) border-box;
  animation: floatAvatar 6s ease-in-out infinite;
}

@keyframes floatAvatar {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.hero-avatar:hover {
  animation-play-state: paused;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-avatar:hover img {
  transform: scale(1.05);
  animation: imgGlitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite alternate;
  filter: sepia(1) hue-rotate(90deg) saturate(300%) brightness(0.8);
}

@keyframes imgGlitch {
  0% { transform: scale(1.05) translate(0); }
  20% { transform: scale(1.05) translate(-2px, 2px); }
  40% { transform: scale(1.05) translate(-2px, -2px); }
  60% { transform: scale(1.05) translate(2px, 2px); }
  80% { transform: scale(1.05) translate(2px, -2px); }
  100% { transform: scale(1.05) translate(0); }
}

.hacker-scanline {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(201, 162, 39, 0.15) 51%
  );
  background-size: 100% 4px;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.3s;
}

.hero-avatar:hover .hacker-scanline {
  opacity: 1;
  animation: scanlineMove 10s linear infinite;
}

@keyframes scanlineMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.hacker-bubble {
  position: absolute;
  top: -20px;
  right: -90px;
  background: rgba(10, 10, 14, 0.95);
  border: 1px solid var(--accent);
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(201, 162, 39, 0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  text-align: left;
  animation: floatBubble 4s ease-in-out infinite;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1); }
}

.hacker-bubble::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 20px;
  width: 10px;
  height: 10px;
  background: rgba(10, 10, 14, 0.95);
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
}

.bubble-sub {
  color: #9898a6;
  font-size: 0.7rem;
  font-family: 'DM Sans', sans-serif;
  display: block;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hacker-bubble {
    top: -40px;
    right: 0px;
  }
}

.hero-op-stack {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.op-badge {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.op-badge.op-red {
  color: #e8a0a0;
  background: var(--rt-soft);
  border-color: var(--rt-border);
}

.op-badge.op-blue {
  color: #9ec5f0;
  background: var(--bt-soft);
  border-color: var(--bt-border);
}

.op-join {
  color: var(--text-muted);
  font-weight: 600;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 0.38rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
}

.hero-badge.hero-badge--avail {
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.dot--pulse {
  animation: op-pulse 2.2s ease-in-out infinite;
}

@keyframes op-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--bt-soft); }
  50% { opacity: 0.85; box-shadow: 0 0 0 6px transparent; }
}

.hero h1,
.hero-title-rt {
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.14;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.hero-h1-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.46em;
  font-weight: 600;
  color: var(--bt);
  letter-spacing: 0;
  line-height: 1.3;
}

.hero-lede {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 auto 1.35rem;
  max-width: 34rem;
}

.hero-lede strong {
  color: var(--text-primary);
}

.label-rt {
  color: var(--rt);
}

.label-bt {
  color: var(--bt);
}

.label-pt {
  color: var(--pt);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-quote {
  position: relative;
  margin: 0 auto 1.75rem;
  max-width: 520px;
  padding: 1.15rem 1.35rem 1.15rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(105deg, var(--rt-soft), transparent 42%, var(--bt-soft));
  text-align: left;
}

.hero-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rt), var(--bt));
}

.hero-quote p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0 0 0.65rem;
}

.hero-quote footer {
  font-family: inherit;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-muted);
}

.hero-quote cite {
  font-style: normal;
  color: var(--text-secondary);
}

.hero-subtitle-lines {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  font-size: 0.96rem;
  line-height: 1.6;
}

.hero-subtitle-lines .hero-role {
  font-weight: 600;
  color: var(--text-primary);
}

@media (min-width: 900px) {
  .hero-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
  }

  .hero-content {
    text-align: left;
    order: 1;
    margin: 0;
    flex: 1;
    max-width: 600px;
  }

  .hero-visual {
    order: 2;
    flex: 0 0 auto;
  }

  .hero-avatar {
    width: 280px;
    height: 280px;
  }

  .hero-op-stack {
    justify-content: flex-start;
  }

  .hero-badge {
    margin-left: 0;
    margin-right: auto;
  }

  .hero-lede {
    margin-left: 0;
    margin-right: auto;
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-quote {
    margin-left: 0;
    margin-right: auto;
    max-width: 100%;
  }

  .hero-subtitle-lines {
    margin-left: 0;
    margin-right: auto;
    max-width: 100%;
  }
}

.hero-buttons {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #14110a;
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.22);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-muted);
}

.btn-primary.btn-rt {
  background: linear-gradient(145deg, #a84848, var(--rt));
  color: #fff;
  box-shadow: 0 4px 22px rgba(196, 90, 90, 0.28);
}

.btn-primary.btn-rt:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-outline.btn-bt {
  border-color: var(--bt-border);
  color: #b3d0f5;
}

.btn-outline.btn-bt:hover {
  background: var(--bt-soft);
  border-color: var(--bt);
}

/* ===== SECTIONS COMMON ===== */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.text-accent {
  color: var(--accent);
}

/* ===== ABOUT ===== */
/* Obraz po lewej rozciąga się do wysokości kolumny z tekstem (po prawej); płynny, głęboki fade + mocniejsze nachodzenie tekstu */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  align-items: stretch;
}

.about-image {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: stretch;
  width: 100%;
  margin-right: clamp(-4.5rem, -8vw, -2rem);
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
  background: var(--bg-primary);
}

.about-text {
  position: relative;
  z-index: 2;
  min-width: 0;
  margin-left: clamp(-2.5rem, -5vw, -1rem);
  padding: 0.25rem 0 0.25rem clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-image img {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 30% center;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1), filter 0.45s ease;
  animation: robotFloat 8s ease-in-out infinite;
  transform: scaleX(-1);
  /* Głębszy, płynniejszy fade into the text */
  -webkit-mask-image: linear-gradient(
    to left,
    #000 0%,
    #000 20%,
    rgba(0, 0, 0, 0.6) 45%,
    rgba(0, 0, 0, 0.1) 75%,
    transparent 98%
  );
  mask-image: linear-gradient(
    to left,
    #000 0%,
    #000 20%,
    rgba(0, 0, 0, 0.6) 45%,
    rgba(0, 0, 0, 0.1) 75%,
    transparent 98%
  );
}



@keyframes robotFloat {
  0%, 100% { transform: scaleX(-1) translateY(0) scale(1); filter: brightness(1); }
  50% { transform: scaleX(-1) translateY(-6px) scale(1.008); filter: brightness(1.03); }
}

.about-image::after {
  display: none;
}

.about-image:hover img {
  animation-play-state: paused;
  transform: scaleX(-1) scale(1.02);
  filter: brightness(1.05) saturate(1.04);
}

.about-image:hover::after {
  background: linear-gradient(165deg, rgba(79, 138, 212, 0.25), transparent, rgba(196, 90, 90, 0.25));
}

.about-text h3 {
  font-size: 1.55rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 15px rgba(16, 16, 20, 0.9);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  text-align: justify;
  text-shadow: 0 2px 10px rgba(16, 16, 20, 0.8);
}

.about-education-block {
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.about-edu-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.about-edu-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.55;
}

.about-edu-list li {
  margin-bottom: 0.45rem;
}

.about-edu-list li:last-child {
  margin-bottom: 0;
}

.about-edu-list li strong {
  color: var(--text-primary);
}


.stat-card {
  position: relative;
  background: rgba(10, 10, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(201, 162, 39, 0.03) 51%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
  transition: opacity 0.4s ease;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(79, 138, 212, 0);
  transition: all 0.4s ease;
  z-index: 0;
  border-radius: 8px;
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-card:hover {
  background: rgba(15, 15, 20, 0.85);
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 162, 39, 0.15);
}

.stat-card:hover::before {
  opacity: 0.8;
  animation: scanlineMove 2s linear infinite;
}

.stat-card:hover::after {
  box-shadow: inset 0 0 25px rgba(201, 162, 39, 0.2);
}

.stat-card:hover .stat-number {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(201, 162, 39, 0.6);
  animation: numberGlitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes numberGlitch {
  0% { transform: translate(0); text-shadow: none; }
  20% { transform: translate(-3px, 2px); text-shadow: 2px 0 red, -2px 0 blue; }
  40% { transform: translate(-1px, -2px); text-shadow: -2px 0 red, 2px 0 blue; }
  60% { transform: translate(3px, 2px); text-shadow: 2px 0 red, -2px 0 blue; }
  80% { transform: translate(1px, -2px); text-shadow: -2px 0 red, 2px 0 blue; }
  100% { transform: translate(0); text-shadow: 0 0 12px rgba(201, 162, 39, 0.6); }
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.scholar-box {
  margin-top: 1.2rem;
  padding: 1.25rem;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.scholar-text p {
  color: var(--text-secondary);
  font-size: 0.9rem !important;
  margin-bottom: 0.85rem !important;
  line-height: 1.6;
}

.scholar-text strong {
  color: var(--text-primary);
}

.scholar-link {
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.scholar-link:hover {
  color: var(--accent-hover);
  transform: translateX(3px);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--border-strong);
}

.skill-card::before {
  display: none;
}

.skill-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.skill-icon-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
}

.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.skill-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.skill-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ===== EXPERIENCE / TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-strong);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 1;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-date {
  grid-column: 2;
  text-align: left;
  padding-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 2;
}

.timeline-item:nth-child(even) .timeline-date {
  grid-column: 1;
  text-align: right;
  padding-right: 2rem;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  z-index: 2;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-strong);
}

.timeline-content h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.timeline-content h4 {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.timeline-date {
  display: flex;
  align-items: flex-start;
  padding-top: 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== CERTIFICATIONS & TRAINING ===== */
.creds-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 100%;
}

.creds-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
  transition: var(--transition);
}

.creds-panel:hover {
  border-color: var(--border-strong);
}

.creds-panel--wide {
  grid-column: 1 / -1;
}

.creds-panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
}

.creds-panel-lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.creds-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.creds-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.creds-list li:last-child {
  margin-bottom: 0;
}

.creds-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.creds-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

@media (min-width: 820px) {
  .creds-list--columns {
    column-count: 2;
    column-gap: 2rem;
  }

  .creds-list--columns li {
    break-inside: avoid;
  }
}

@media (max-width: 760px) {
  .creds-layout {
    grid-template-columns: 1fr;
  }

  .creds-panel--wide {
    grid-column: auto;
  }
}

/* ===== RECOMMENDATIONS ===== */
.reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.reco-card {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  transition: var(--transition);
}

.reco-card:hover {
  border-color: var(--border-strong);
}

.reco-quote {
  margin: 0 0 auto;
  padding: 0;
  border: none;
}

.reco-quote p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-secondary);
  text-align: justify;
}

.reco-quote p::before {
  content: '';
}

/* ===== PROJECTS ===== */
#projects {
  position: relative;
}

.projects-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.projects-intro {
  text-align: left;
}

.projects-intro p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.projects-intro p:last-child {
  margin-bottom: 0;
}

.projects-intro strong {
  color: var(--text-primary);
  font-weight: 500;
  display: block;
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.projects-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: sticky;
  top: 6rem;
}

.project-img-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.project-img-wrapper:hover {
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.1);
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-img-wrapper:hover img {
  transform: scale(1.03);
}

.reco-linkedin-note {
  margin: 2rem auto 0;
  max-width: 38rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.reco-linkedin-note a {
  color: var(--bt);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--bt-border);
}

.reco-linkedin-note a:hover {
  color: #b3d0f5;
}

.reco-linkedin-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .reco-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CONTACT ===== */
.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
}


.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  text-align: left;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  border-color: var(--accent-muted);
}

.contact-card .contact-kind {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  word-break: break-all;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 0.95rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.93rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-muted);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea { resize: vertical; min-height: 112px; }

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent-hover);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
  }
  .about-image {
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
    aspect-ratio: 16 / 10;
    height: auto;
    align-self: stretch;
    max-width: 100%;
    border-radius: var(--radius);
  }
  .about-text {
    margin-left: 0;
    padding: 0 0 0.5rem;
  }
  .about-image img {
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
    -webkit-mask-image: none;
    mask-image: none;
  }
  @keyframes robotFloat {
    0%, 100% { transform: scaleX(-1) translateY(0) scale(1); filter: brightness(1); }
    50% { transform: scaleX(-1) translateY(-8px) scale(1.012); filter: brightness(1.04); }
  }
  .about-image:hover img {
    transform: scaleX(-1) translateY(-5px) scale(1.04);
  }
  .projects-layout {
    grid-template-columns: 1fr;
  }
  .projects-gallery {
    position: static;
  }
  .timeline::before { left: 14px; }
  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 44px;
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-date,
  .timeline-item:nth-child(even) .timeline-date {
    grid-column: 1;
    text-align: left;
    padding: 0;
    padding-bottom: 0.5rem;
    order: -1;
  }
  .timeline-dot { left: 14px; }
}

@media (max-width: 768px) {
  .navbar {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: none;
    left: 0;
    padding: 0.8rem 1.5rem;
  }
  .navbar.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    padding: 0.6rem 1.5rem;
  }
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 26, 0.96);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    width: 100%;
    text-align: center;
  }
  .nav-toggle { display: flex; }
  .hero { padding-top: 7.5rem; }
  .about-stats { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* ===== TERMINAL WINDOW ===== */
.terminal-window {
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  overflow: hidden;
  text-align: left;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-header {
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.terminal-button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.terminal-button.red { background: #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  transform: translateX(-16px);
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
  min-height: 280px;
}

@media (max-width: 768px) {
  .terminal-body {
    min-height: 520px;
  }
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  color: var(--accent) !important;
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

.term-prompt {
  color: var(--accent);
  margin-right: 0.5rem;
}

.term-h1 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.term-blink {
  animation: blink 1s step-end infinite;
}

/* ===== JOKE HACK OVERLAY ===== */
.hack-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.hack-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

body.hacked {
  overflow: hidden;
}

body.hacked .hack-overlay {
  animation: alarmPulse 0.8s infinite alternate;
}

@keyframes alarmPulse {
  0% { background: rgba(10, 0, 0, 0.95); }
  100% { background: rgba(50, 0, 0, 0.95); }
}

body.hacked .hack-terminal {
  animation: glitchBox 0.2s infinite;
}

@keyframes glitchBox {
  0% { box-shadow: 0 0 20px rgba(255,0,0,0.5); transform: skewX(0deg); }
  25% { box-shadow: -4px 4px 25px rgba(255,0,0,0.8); transform: skewX(0.5deg); }
  50% { box-shadow: 4px -4px 25px rgba(255,0,0,0.8); transform: skewX(-0.5deg); }
  75% { box-shadow: 2px 2px 30px rgba(255,0,0,0.9); transform: skewX(0.2deg); }
  100% { box-shadow: 0 0 20px rgba(255,0,0,0.5); transform: skewX(0deg); }
}

.hack-terminal {
  background: #000;
  border: 2px solid #ff0000;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 0 50px rgba(255, 0, 0, 0.3);
  text-align: center;
  border-radius: 8px;
}

.hack-warning {
  color: #ff0000;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: hackBlink 0.5s infinite alternate;
}

@keyframes hackBlink {
  0% { opacity: 1; }
  100% { opacity: 0.3; }
}

.hack-text {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hack-progress-bar {
  width: 100%;
  height: 24px;
  border: 1px solid #ff0000;
  margin-bottom: 0.5rem;
  position: relative;
}

.hack-progress-fill {
  height: 100%;
  background: #ff0000;
  width: 0%;
  transition: width 0.1s;
}

.hack-percent {
  color: #ff0000;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hack-joke-reveal {
  display: none;
  margin-top: 1.5rem;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
}

.hack-joke-reveal.show {
  display: block;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hack-joke-reveal h2 {
  color: #27c93f;
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', sans-serif;
}

.hack-joke-reveal p {
  color: #ececef;
  margin-bottom: 1.5rem;
  font-family: 'DM Sans', sans-serif;
}

.hack-close-btn {
  border-color: #27c93f;
  color: #27c93f;
  font-family: 'DM Sans', sans-serif;
}

.hack-close-btn:hover {
  background: rgba(39, 201, 63, 0.1);
  border-color: #27c93f;
}
