/* ── Design Tokens — galaxy neon theme ───────────────────────── */
:root {
  /* Backgrounds — deep space */
  --bg:           #03030f;
  --bg-alt:       #07071a;
  --bg-card:      #0c0c22;

  /* Text — cool starlight */
  --text:         #e2e8f8;
  --text-muted:   #6b7db3;

  /* Neon palette */
  --neon-cyan:    #22d3ee;
  --neon-pink:    #e879f9;
  --neon-purple:  #a78bfa;
  --neon-green:   #4ade80;

  /* Accent (primary = violet) */
  --accent:       #a78bfa;
  --accent-light: rgba(167, 139, 250, 0.08);
  --accent-dark:  #7c3aed;

  /* Borders */
  --border:       rgba(167, 139, 250, 0.15);

  /* Glows */
  --glow-cyan:    0 0 12px rgba(34, 211, 238, 0.55), 0 0 30px rgba(34, 211, 238, 0.2);
  --glow-pink:    0 0 12px rgba(232, 121, 249, 0.55), 0 0 30px rgba(232, 121, 249, 0.2);
  --glow-purple:  0 0 12px rgba(167, 139, 250, 0.6),  0 0 30px rgba(167, 139, 250, 0.25);
  --glow-sm:      0 0 8px rgba(167, 139, 250, 0.5);

  /* Shadows */
  --shadow-sm:    0 1px 4px rgba(0, 0, 0, 0.8);
  --shadow-md:    0 4px 20px rgba(0, 0, 0, 0.9);
  --shadow-lg:    0 8px 40px rgba(0, 0, 0, 0.95);

  --radius:       12px;
  --radius-lg:    20px;
  --nav-h:        68px;
  --max-w:        1100px;
  --transition:   0.25s ease;
}

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

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

body {
  font-family: 'Cabinet Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Focus styles (accessibility) ───────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Typography scale ───────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Syne', sans-serif;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Layout utilities ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: transparent;
}

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

/* ── Section titles ─────────────────────────────────────────── */
.section-title {
  font-family: 'Syne', sans-serif;
  color: var(--text);
  margin-bottom: 2.75rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 0.75rem;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
  box-shadow: var(--glow-sm);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-top: -2.25rem;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition),
    color var(--transition), transform 0.22s ease, box-shadow var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  transition: left 0s;
  pointer-events: none;
}

.btn:hover::after {
  left: 140%;
  transition: left 0.55s ease;
}

.btn-primary {
  background: transparent;
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.25), inset 0 0 10px rgba(34, 211, 238, 0.04);
}

.btn-primary:hover {
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--glow-cyan);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

.btn-outline {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  background: transparent;
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.2), inset 0 0 10px rgba(232, 121, 249, 0.04);
}

.btn-outline:hover {
  background: rgba(232, 121, 249, 0.08);
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--glow-pink);
  text-shadow: 0 0 8px rgba(232, 121, 249, 0.8);
}

/* ── Tags / pills ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(167, 139, 250, 0.07);
  color: var(--neon-purple);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 9999px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.tag-muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── Scroll reveal animation ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger siblings inside grids */
.cert-grid .reveal:nth-child(2),
.projects-grid .reveal:nth-child(2),
.vol-grid .reveal:nth-child(2) { transition-delay: 0.08s; }

.cert-grid .reveal:nth-child(3),
.vol-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.cert-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.cert-grid .reveal:nth-child(5) { transition-delay: 0.32s; }

/* Section entry animation — slides up on first view */
.section,
#hero,
#contact {
  --section-enter-duration: 0.7s;
}

.section-enter {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity var(--section-enter-duration) cubic-bezier(0.16, 1, 0.3, 1),
              transform var(--section-enter-duration) cubic-bezier(0.16, 1, 0.3, 1);
}

.section-enter.entered {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .section-enter {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

/* Scroll progress bar */
#navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink), var(--neon-cyan));
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
  transition: width 0.1s linear;
  pointer-events: none;
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-controls {
  margin-left: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: transform var(--transition);
}

.nav-logo:hover {
  transform: scale(1.08);
}

.nav-logo-icon {
  height: 34px;
  width: 34px;
  object-fit: contain;
  animation: logo-glow 4s ease-in-out infinite;
  transition: filter 0.3s ease, transform 0.3s ease;
}

@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.65))
                     drop-shadow(0 0 2px rgba(34, 211, 238, 0.3)); }
  50%       { filter: drop-shadow(0 0 7px rgba(167, 139, 250, 0.75))
                     drop-shadow(0 0 3px rgba(232, 121, 249, 0.35)); }
}

.nav-logo:hover .nav-logo-icon {
  animation-play-state: paused;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.9))
          drop-shadow(0 0 16px rgba(167, 139, 250, 0.6))
          drop-shadow(0 0 4px rgba(232, 121, 249, 0.4));
  transform: scale(1.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.775rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
  transition: color var(--transition), text-shadow var(--transition);
  position: relative;
  letter-spacing: 0.05em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.7);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

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

/* Contact pill */
.nav-cta {
  padding: 0.45rem 1.1rem;
  color: var(--neon-purple);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.12);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.nav-cta:hover {
  border-color: rgba(167, 139, 250, 0.8);
  box-shadow: var(--glow-purple);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  transition: background var(--transition), border-color var(--transition);
}

.nav-toggle:hover {
  background: rgba(167, 139, 250, 0.06);
  border-color: rgba(167, 139, 250, 0.35);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              background var(--transition);
  transform-origin: center;
}

/* Hamburger → X */
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--neon-purple); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--neon-purple); }



/* SVG feColorMatrix filter removes white bg from badge images */
.cert-badge-has-bg img {
  filter: url(#rmwhite);
}

/* ── Galaxy nebula background ────────────────────────────────── */
#orb-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Galaxy canvas — fills the fixed background container */
#star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

/* Violet nebula — large, top-left */
.orb-blue-1 {
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle at center, #6d28d9 0%, transparent 68%);
  top: -10%;
  left: -8%;
  opacity: 0.35;
  animation: drift-blue1 40s ease-in-out infinite alternate;
}

/* Deep magenta nebula — bottom-right */
.orb-pink-1 {
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle at center, #9d174d 0%, transparent 68%);
  bottom: -10%;
  right: -5%;
  opacity: 0.32;
  animation: drift-pink1 47s ease-in-out infinite alternate;
}

/* Soft lavender — slow centre wander */
.orb-white {
  width: 22vw;
  height: 22vw;
  background: radial-gradient(circle at center, #c4b5fd 0%, transparent 65%);
  top: 35%;
  left: 32%;
  opacity: 0.10;
  animation: drift-white 33s ease-in-out infinite alternate;
}

/* Indigo accent — top-right */
.orb-pink-2 {
  width: 22vw;
  height: 22vw;
  background: radial-gradient(circle at center, #4338ca 0%, transparent 68%);
  top: 5%;
  right: 18%;
  opacity: 0.22;
  animation: drift-pink2 52s ease-in-out infinite alternate;
}

/* Dark teal accent — bottom-left */
.orb-blue-2 {
  width: 18vw;
  height: 18vw;
  background: radial-gradient(circle at center, #0e7490 0%, transparent 68%);
  bottom: 8%;
  left: 8%;
  opacity: 0.22;
  animation: drift-blue2 38s ease-in-out infinite alternate;
}

@keyframes drift-blue1 {
  0%   { transform: translate(0,    0)    scale(1);    opacity: 0.16; }
  25%  { transform: translate(8vw,  12vh) scale(1.08); opacity: 0.30; }
  55%  { transform: translate(4vw,  22vh) scale(0.94); opacity: 0.20; }
  80%  { transform: translate(12vw, 8vh)  scale(1.05); opacity: 0.32; }
  100% { transform: translate(6vw,  16vh) scale(1.06); opacity: 0.18; }
}

@keyframes drift-pink1 {
  0%   { transform: translate(0,     0)     scale(1);    opacity: 0.18; }
  30%  { transform: translate(-8vw,  -8vh)  scale(1.1);  opacity: 0.32; }
  60%  { transform: translate(-4vw,  -16vh) scale(0.92); opacity: 0.20; }
  85%  { transform: translate(-12vw, -5vh)  scale(1.06); opacity: 0.28; }
  100% { transform: translate(-6vw,  -12vh) scale(1.08); opacity: 0.16; }
}

@keyframes drift-white {
  0%   { transform: translate(0,    0)    scale(1);    opacity: 0.04; }
  40%  { transform: translate(5vw,  -5vh) scale(1.15); opacity: 0.10; }
  75%  { transform: translate(-4vw, 7vh)  scale(0.9);  opacity: 0.06; }
  100% { transform: translate(3vw,  4vh)  scale(1.05); opacity: 0.08; }
}

@keyframes drift-pink2 {
  0%   { transform: translate(0,     0)    scale(1);    opacity: 0.10; }
  35%  { transform: translate(-6vw,  9vh)  scale(1.1);  opacity: 0.22; }
  65%  { transform: translate(-10vw, 4vh)  scale(0.95); opacity: 0.14; }
  100% { transform: translate(-5vw,  11vh) scale(1.08); opacity: 0.20; }
}

@keyframes drift-blue2 {
  0%   { transform: translate(0,    0)     scale(1);    opacity: 0.10; }
  45%  { transform: translate(6vw,  -7vh)  scale(1.12); opacity: 0.24; }
  80%  { transform: translate(9vw,  -3vh)  scale(0.93); opacity: 0.14; }
  100% { transform: translate(4vw,  -9vh)  scale(1.04); opacity: 0.20; }
}

/* Sections sit above orbs */
#hero,
.section,
footer {
  position: relative;
  z-index: 1;
}

.hero-inner,
.scroll-hint {
  position: relative;
  z-index: 1;
}

/* ── Hero ────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(167, 139, 250, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(232, 121, 249, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

/* Spinning gradient ring around photo */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 196px;
  height: 196px;
  border-radius: 50%;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--neon-cyan) 0%,
    var(--neon-pink) 40%,
    var(--neon-purple) 70%,
    var(--neon-cyan) 100%
  );
  animation: ring-spin 8s linear infinite;
  z-index: 0;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-lg);
}

/* Availability badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  background: rgba(0, 255, 136, 0.07);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 9999px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--neon-green);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--neon-purple);
  line-height: 1;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.hero-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-text {
  flex: 1;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent) !important;
  margin-bottom: 0.875rem;
}

.hero-text h1 {
  margin-bottom: 0.5rem;
  color: var(--text);
  text-shadow: 0 0 40px rgba(167, 139, 250, 0.2);
}

.hero-role {
  font-family: 'DM Mono', monospace;
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  font-weight: 400;
  color: var(--neon-green) !important;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
  margin-bottom: 1.375rem;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  gap: 2px;
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

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

.hero-tagline {
  font-size: 1.0625rem;
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.125rem;
  animation: bounce 2.2s ease infinite;
  transition: color var(--transition);
  padding: 0.5rem;
}

.scroll-hint:hover {
  color: var(--accent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── About ───────────────────────────────────────────────────── */
.about-body {
  max-width: 700px;
  margin: 0 auto;
}

.about-body p {
  margin-bottom: 1.125rem;
  font-size: 1.125rem;
  line-height: 1.85;
}

.about-links {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity var(--transition);
}

.about-link:hover {
  opacity: 0.7;
}

/* ── Timeline (Experience) ───────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 2rem;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 1.125rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-light);
  transform: translateX(-4px);
}

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

.timeline-card:hover {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.1);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.125rem;
  flex-wrap: wrap;
}

.timeline-header h3 {
  color: var(--text);
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-style: italic;
}

.timeline-acting {
  background: rgba(167, 139, 250, 0.05);
  border-left: 3px solid var(--neon-purple);
  box-shadow: inset 0 0 20px rgba(167, 139, 250, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.125rem;
  font-size: 0.9rem;
  color: var(--text) !important;
}

.timeline-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.125rem;
}

.timeline-bullets li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ── Skills ──────────────────────────────────────────────────── */
.skills-table {
  border-top: 1px solid var(--border);
}

.skill-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 3rem;
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.skill-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  padding-top: 0.125rem;
}

.skill-row p {
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Certifications — train carousel ─────────────────────────── */
.cert-marquee {
  overflow: hidden;
  position: relative;
  padding: 1rem 0 8rem;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0%, black 10%, black 90%, transparent 100%);
}

.cert-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: cert-train 32s linear infinite;
  will-change: transform;
}

@keyframes cert-train {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Freeze the whole train when a card is hovered */
.cert-marquee:has(.cert-card:hover) .cert-track,
.cert-marquee:has(.cert-card:focus-within) .cert-track {
  animation-play-state: paused;
}

/* Each card looks like a carriage */
.cert-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  padding: 1.25rem 1rem 1rem;
  background: none;
  border: none;
  cursor: default;
  position: relative;
  z-index: 1;
  transition:
    transform   0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    box-shadow   0.3s ease,
    z-index      0s   0.35s;
}

.cert-card:hover,
.cert-card:focus-within {
  transform: scale(1.22) translateY(-8px);
  box-shadow: none;
  z-index: 10;
  transition:
    transform    0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    box-shadow   0.3s ease,
    z-index      0s   0s;
}

.cert-badge {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}

.cert-badge img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  display: block;
}

/* Info hidden by default, reveals on hover */
.cert-info {
  margin-top: 0.75rem;
  text-align: center;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  pointer-events: none;
  width: 100%;
}

.cert-card:hover .cert-info,
.cert-card:focus-within .cert-info {
  opacity: 1;
  max-height: 120px;
}

.cert-info h3 {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.18rem;
}

.cert-info p {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ── Projects ────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card:hover {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.12);
  transform: translateY(-3px);
}

.project-card-coming {
  border-style: dashed;
  opacity: 0.72;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--accent-light);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
}

.project-links a {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: color var(--transition);
  padding: 0.25rem;
}

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

.project-card h3 {
  color: var(--text);
  font-size: 1.0625rem;
}

.project-card p {
  font-size: 0.9375rem;
  flex: 1;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

/* ── Education ───────────────────────────────────────────────── */
.edu-card {
  display: flex;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}

.edu-icon {
  width: 3rem;
  height: 3rem;
  background: var(--accent-light);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.edu-content h3 {
  color: var(--text);
  margin-bottom: 0.25rem;
}

.edu-school {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0 !important;
}

.edu-meta {
  font-size: 0.875rem;
  margin: 0.375rem 0 0.875rem;
}

.edu-courses {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── Volunteering ────────────────────────────────────────────── */
.vol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vol-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.vol-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.07);
  transform: translateY(-2px);
}

.vol-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.vol-card h3 {
  color: var(--text);
  margin-bottom: 0.625rem;
  font-size: 1rem;
}

.vol-card p {
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── Footer / Contact ────────────────────────────────────────── */
#contact {
  background: #050505;
  border-top: 1px solid var(--border);
  color: var(--text);
  padding: 5.5rem 0 3.5rem;
  text-align: center;
}

#contact h2 {
  color: var(--neon-purple);
  text-shadow: var(--glow-purple);
  margin-bottom: 0.875rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition), text-shadow var(--transition);
}

.footer-link:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

.visitor-counter {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.copyright {
  font-size: 0.8125rem;
  color: rgba(148, 163, 184, 0.5);
}

/* ── Responsive — 1024px ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .skill-row {
    grid-template-columns: 140px 1fr;
    gap: 2rem;
  }
}

/* ── Responsive — 768px ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-center {
    position: static;
    transform: none;
    flex: 1;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    transform: none;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1.5rem;
    gap: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
  }

  .nav-links.open {
    display: flex;
  }

  /* Stagger entrance for mobile links */
  .nav-links li {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.04s; }
  .nav-links.open li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
  .nav-links.open li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.12s; }
  .nav-links.open li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.16s; }
  .nav-links.open li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.20s; }
  .nav-links.open li:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.24s; }

  .nav-links a {
    font-size: 0.875rem;
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    letter-spacing: 0.06em;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  /* Contact pill on mobile becomes a centered button */
  .nav-cta {
    margin: 0.75rem 2rem 0;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 9999px;
    text-align: center;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.12);
    display: block;
  }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    align-items: center;
  }

  .hero-photo-wrap {
    width: 150px;
    height: 150px;
  }

  .hero-eyebrow,
  .hero-tagline {
    text-align: center;
  }

  .hero-role {
    justify-content: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badge {
    align-self: center;
  }

  .hero-stats {
    justify-content: center;
  }

  /* Sections */
  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }

  .skill-label {
    font-size: 0.7rem;
  }

  .cert-card {
    width: 110px;
    padding: 1rem 0.75rem;
  }

  .cert-badge,
  .cert-badge img {
    width: 72px;
    height: 72px;
  }

  /* Disable CSS :hover pause on mobile — JS handles it instead */
  .cert-marquee:has(.cert-card:hover) .cert-track {
    animation-play-state: running;
  }

  /* JS-controlled pause */
  .cert-marquee.is-paused .cert-track {
    animation-play-state: paused;
  }

  /* JS-controlled card activation */
  .cert-card.is-active {
    transform: scale(1.22) translateY(-8px);
    z-index: 10;
  }

  .cert-card.is-active .cert-info {
    opacity: 1;
    max-height: 120px;
  }

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

  .vol-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-card {
    padding: 1.5rem;
  }

  .edu-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
}

/* ── Responsive — 480px ──────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --nav-h: 60px;
  }

  .hero-inner {
    padding: 2rem 1rem;
  }

  .hero-photo-wrap {
    width: 120px;
    height: 120px;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat-value {
    font-size: 1.125rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

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

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

  .timeline {
    padding-left: 1.25rem;
  }

  .timeline-card {
    padding: 1.25rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }

  .container {
    padding: 0 1rem;
  }
}
