/* Modern dark theme inspired by product-led sites */
:root {
  --page-bg: #05060b;
  --page-gradient: radial-gradient(120% 120% at 0% 0%, rgba(78, 56, 187, 0.35), transparent 60%),
    radial-gradient(140% 140% at 90% 10%, rgba(34, 197, 253, 0.25), transparent 55%),
    radial-gradient(90% 90% at 50% 100%, rgba(182, 88, 255, 0.25), transparent 70%);
  --surface: rgba(17, 22, 32, 0.78);
  --surface-strong: rgba(21, 27, 39, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #6c8cff;
  --primary-strong: #4a6cf7;
  --accent: linear-gradient(135deg, #77f0ff, #6c8cff, #c084fc);
  --text: #f4f6fb;
  --text-muted: #a0a8c0;
  --shadow-soft: 0 20px 45px rgba(5, 8, 20, 0.5);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content-max: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--page-gradient);
  opacity: 0.9;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 18, 0.5), rgba(6, 8, 18, 0.95)),
    linear-gradient(120deg, rgba(108, 140, 255, 0.08), transparent 60%);
  z-index: -1;
}

@media (min-width: 992px) {
  body {
    padding-left: 0;
  }
}

.hero-glow {
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 420px;
  background: radial-gradient(circle at 50% 0%, rgba(108, 140, 255, 0.35), transparent 55%),
    radial-gradient(circle at 20% 50%, rgba(119, 240, 255, 0.25), transparent 60%),
    radial-gradient(circle at 80% 55%, rgba(192, 132, 252, 0.25), transparent 65%);
  filter: blur(70px);
  opacity: 0.8;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #9ab3ff;
}

main {
  padding-top: 5.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(6, 8, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-inline: clamp(1.5rem, 4vw, 3.5rem);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(118, 200, 255, 0.6);
  transform-origin: left;
  transition: width 0.12s ease-out;
}

.nav-container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #eef1ff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  overflow: visible;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
  display: inline-block;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: #d5dcff;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #05060b;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 24px rgba(97, 132, 255, 0.35);
}

.nav-cta i {
  font-size: 0.9rem;
}

.nav-cta span {
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 18, 30, 0.8);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #f4f6fb;
  border-radius: 999px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

section.resume-section {
  padding: clamp(4rem, 6vw, 6rem) clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
  width: 100%;
  max-width: none;
  display: block;
}

section.resume-section .resume-section-content {
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero {
  position: relative;
  padding-top: clamp(6rem, 10vw, 8rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(1rem, 3vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(76, 130, 255, 0.18), rgba(25, 196, 255, 0.05));
  filter: blur(30px);
  z-index: -1;
}


.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
}

.hero-main h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.75rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(197, 204, 255, 0.85);
  margin-bottom: 1rem;
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
  max-width: 60ch;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.25rem;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-modern i {
  font-size: 0.9rem;
}

.btn-primary-modern {
  background: linear-gradient(120deg, rgba(119, 240, 255, 0.9), rgba(108, 140, 255, 0.9));
  color: #05060b;
  box-shadow: 0 18px 30px rgba(108, 140, 255, 0.35);
}

.btn-primary-modern:hover,
.btn-primary-modern:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(108, 140, 255, 0.45);
}

.btn-secondary-modern {
  background: rgba(17, 22, 32, 0.65);
  color: #d6ddff;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary-modern:hover,
.btn-secondary-modern:focus-visible {
  background: rgba(30, 38, 55, 0.85);
  color: #ffffff;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.pill {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(105, 142, 255, 0.25);
  font-weight: 500;
  font-size: 0.9rem;
  color: #dfe6ff;
}

.hero-footnote {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(160, 168, 192, 0.8);
  border-left: 2px solid rgba(119, 240, 255, 0.35);
  padding-left: 1rem;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(108, 140, 255, 0.25), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.info-card:hover::before {
  opacity: 1;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 162, 255, 0.45);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  color: #d8dfff;
}

.contact-row i {
  color: #87afff;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dfe6ff;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--accent);
  color: #05060b;
  transform: translateY(-4px);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: inset 0 0 0 1px rgba(120, 150, 255, 0.08);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tool-card {
  background: linear-gradient(160deg, rgba(17, 22, 32, 0.88), rgba(27, 32, 46, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(108, 140, 255, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tool-card:hover,
.tool-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(119, 240, 255, 0.25);
  box-shadow: 0 22px 45px rgba(8, 12, 25, 0.6);
}

.tool-card:hover::after,
.tool-card:focus-within::after {
  opacity: 1;
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.tool-card p {
  color: rgba(210, 215, 240, 0.78);
  font-size: 0.95rem;
  margin: 0;
}

.section-heading {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.experience-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.experience-card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
}

.experience-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.experience-header h3 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin-bottom: 0.35rem;
}

.subheading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(160, 198, 255, 0.9);
}

.tenure {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.experience-list li {
  position: relative;
  padding-left: 1.4rem;
  color: #dce3ff;
}

.experience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #87afff 0%, #4a6cf7 100%);
  box-shadow: 0 0 12px rgba(120, 154, 255, 0.7);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
  color: #dfe6ff;
}

.info-card li {
  position: relative;
  padding-left: 1.4rem;
}

.info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(121, 168, 255, 0.8);
  box-shadow: 0 0 16px rgba(114, 158, 255, 0.6);
}

.info-card strong {
  color: #f7f9ff;
}

.badge-link {
  display: inline-flex;
  margin-top: 1.2rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.badge-link img {
  display: block;
  width: 160px;
  height: auto;
}

/* Hidden hologram Easter egg */
.easter-egg {
  position: fixed;
  right: clamp(1.25rem, 3vw, 2.75rem);
  bottom: clamp(0.75rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.85rem;
  z-index: 1200;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.45s ease, transform 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.easter-egg[data-visible="true"] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.easter-egg[data-visible="false"] .easter-egg-trigger {
  pointer-events: none;
}

.easter-egg-trigger {
  position: relative;
  width: clamp(2.75rem, 7vw, 3.4rem);
  height: clamp(2.75rem, 7vw, 3.4rem);
  border-radius: 50%;
  border: 1px solid rgba(148, 190, 255, 0.4);
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.7), rgba(59, 130, 246, 0.35))
      rgba(15, 23, 42, 0.75);
  box-shadow: 0 18px 40px rgba(46, 101, 255, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: inherit;
  font: inherit;
  pointer-events: auto;
  transition: transform 0.45s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 0.45s ease, border-color 0.45s ease;
}

.easter-egg-trigger::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(208, 233, 255, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.trigger-orb {
  position: relative;
  width: 65%;
  height: 65%;
  border-radius: 45% 45% 55% 55% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(226, 242, 255, 0.95), rgba(148, 179, 255, 0.8));
  border: 1px solid rgba(157, 192, 255, 0.65);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 12px rgba(30, 64, 175, 0.35), 0 10px 22px rgba(15, 23, 42, 0.55);
}

.trigger-face {
  position: relative;
  width: 62%;
  height: 62%;
  display: grid;
  place-items: center;
}

.trigger-eye {
  position: absolute;
  top: 28%;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(12, 18, 36, 0.15), rgba(12, 18, 36, 0.8));
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.45);
}

.trigger-eye-right {
  right: 18%;
}

.trigger-eye:not(.trigger-eye-right) {
  left: 18%;
}

.trigger-grill {
  position: absolute;
  bottom: 16%;
  width: 58%;
  height: 16%;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.65), rgba(191, 219, 254, 0.6));
  box-shadow: inset 0 0 8px rgba(37, 99, 235, 0.45);
}

.easter-egg-reveal {
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
  background: linear-gradient(160deg, rgba(17, 24, 56, 0.94), rgba(8, 12, 32, 0.92));
  border-radius: 22px;
  border: 1px solid rgba(127, 219, 255, 0.28);
  box-shadow: 0 22px 45px rgba(10, 16, 36, 0.55);
  padding: clamp(1.05rem, 3vw, 1.35rem);
  max-width: min(18rem, calc(100vw - 3rem));
  color: #f7f9ff;
  display: grid;
  gap: 0.75rem;
}

.easter-egg[data-active="true"] .easter-egg-trigger {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 26px 50px rgba(59, 130, 246, 0.45);
  border-color: rgba(165, 215, 255, 0.7);
}

.easter-egg[data-active="true"] .easter-egg-trigger::after {
  opacity: 1;
}

.easter-egg[data-active="true"] .easter-egg-reveal {
  pointer-events: auto;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.holo-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.45), transparent 65%),
    rgba(8, 12, 32, 0.85);
  border: 1px solid rgba(127, 219, 255, 0.24);
}

.holo-stage video {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  filter: saturate(1.15) contrast(1.05);
}

.holo-sheen {
  content: "";
  position: absolute;
  inset: -25% -15% 40% -15%;
  background: radial-gradient(circle at 50% 0%, rgba(125, 211, 252, 0.25), transparent 75%);
  filter: blur(18px);
  pointer-events: none;
}

.holo-caption {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(226, 232, 255, 0.8);
  text-align: right;
}

.easter-egg[data-reduced="true"] .holo-stage video {
  display: none;
}

.easter-egg[data-reduced="true"] .holo-stage::after {
  content: "Hello there";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 232, 255, 0.85);
}

@media (max-width: 720px) {
  .hero {
    padding-top: clamp(4.5rem, 12vw, 6rem);
    padding-bottom: clamp(4rem, 12vw, 6rem);
  }

  .hero-grid {
    gap: clamp(2.5rem, 7vw, 3.25rem);
  }

  .hero-main {
    text-align: center;
  }

  .hero-main .lead {
    margin-inline: auto;
  }

  .cta-group {
    justify-content: center;
  }

  .pill-group {
    justify-content: center;
  }

  .hero-footnote {
    border-left: 0;
    border-top: 1px solid rgba(119, 240, 255, 0.25);
    padding-left: 0;
    padding-top: 1rem;
    margin-top: 1.75rem;
    text-align: center;
  }

  .hero-aside {
    align-items: stretch;
  }

  .info-card,
  .metrics-grid,
  .metric-card {
    width: 100%;
  }

  .contact-card,
  .metric-card {
    text-align: center;
  }

  .contact-row,
  .social-icons {
    justify-content: center;
  }

  .experience-card {
    padding: clamp(1.5rem, 4vw, 1.9rem);
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-header .tenure {
    width: 100%;
    text-align: left;
  }

  .experience-list li,
  .info-card li {
    padding-left: 1.1rem;
  }

  .easter-egg {
    right: clamp(1rem, 4vw, 2rem);
    bottom: clamp(1rem, 4vw, 2rem);
    left: auto;
    transform: translate3d(0, 18px, 0);
    align-items: flex-end;
    gap: 0.75rem;
  }

  .easter-egg[data-visible="true"] {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .easter-egg-trigger,
  .easter-egg-reveal {
    transition-duration: 0.01ms !important;
  }
}
/* Responsive behavior */
@media (max-width: 992px) {
  .site-header {
    padding-inline: clamp(1.25rem, 5vw, 2.25rem);
  }

  main {
    padding-top: 4.5rem;
  }

  .nav-links {
    position: fixed;
    inset: 5rem clamp(1.25rem, 5vw, 2.25rem) auto;
    padding: 1.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(10, 12, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cta-group {
    width: 100%;
  }

  .btn-modern {
    flex: 1 1 180px;
    justify-content: center;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: clamp(1.1rem, 6vw, 1.5rem);
  }

  section.resume-section {
    padding-block: clamp(3.25rem, 12vw, 3.75rem);
    padding-inline: clamp(1.1rem, 6vw, 1.5rem);
  }

  .hero-main h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-main .lead {
    font-size: 1rem;
  }

  .btn-modern {
    width: 100%;
  }

  .pill {
    font-size: 0.85rem;
    padding: 0.4rem 0.95rem;
  }

  .contact-card {
    gap: 0.75rem;
  }

  .metrics-grid {
    gap: 0.75rem;
  }

  .metric-card {
    padding: 0.95rem;
  }

  .metric-value {
    font-size: 1.45rem;
  }

  .brand {
    font-size: 1.4rem;
  }

  .cta-group {
    gap: 0.5rem;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .easter-egg-trigger {
    width: clamp(2.6rem, 15vw, 3.1rem);
    height: clamp(2.6rem, 15vw, 3.1rem);
  }

  .easter-egg-reveal {
    max-width: min(19rem, calc(100vw - 2.5rem));
  }
}

@media (max-width: 520px) {
  .hero-main .lead {
    max-width: 36ch;
  }

  .pill-group {
    gap: 0.6rem;
  }

  .experience-list {
    gap: 0.75rem;
  }

  .experience-list li::before {
    top: 0.55rem;
  }

  .toolbox-grid {
    gap: 1.1rem;
  }

  .tool-card {
    padding: 1.35rem;
  }

  .easter-egg-reveal {
    padding: clamp(0.95rem, 8vw, 1.15rem);
    gap: 0.6rem;
  }

  .holo-caption {
    font-size: 0.85rem;
  }
}

/* Active state indicator from IntersectionObserver */
.nav-link[data-active="true"] {
  color: #d5dcff;
}

.nav-link[data-active="true"]::after {
  transform: scaleX(1);
}

/* FORCE NAV UNDERLINE FIX */
nav.nav-links .nav-link {
  position: relative !important;
  overflow: visible !important;
}

nav.nav-links .nav-link::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -8px !important;
  width: 100% !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: var(--accent) !important;
  transform: scaleX(0) !important;
  transform-origin: left !important;
  transition: transform 0.25s ease !important;
}

nav.nav-links .nav-link:hover::after,
nav.nav-links .nav-link:focus-visible::after,
nav.nav-links .nav-link.active::after,
nav.nav-links .nav-link[data-active="true"]::after {
  transform: scaleX(1) !important;
}
