/* ============================================================
   Joseph Chu — Personal Site
   Modern dark theme, glassmorphism, animated background
   ============================================================ */

:root {
  --bg: #070b16;
  --bg-2: #0b1122;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8edf7;
  --muted: #93a0b8;
  --faint: #6b7689;

  --cyan: #38bdf8;
  --indigo: #6366f1;
  --violet: #a855f7;
  --grad: linear-gradient(120deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
  --grad-soft: linear-gradient(120deg, rgba(56,189,248,.16), rgba(168,85,247,.16));

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(99, 102, 241, 0.4); color: #fff; }

/* ---------- Animated, section-aware background ---------- */
.bg-base {
  position: fixed; inset: 0; z-index: -5;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
/* Aurora — a slow, gently drifting field of coloured light (kept light-weight) */
.bg-aurora {
  position: fixed; inset: -8%; z-index: -4; pointer-events: none; opacity: .9;
  background:
    radial-gradient(38% 48% at 20% 22%, rgba(56,189,248,.20), transparent 60%),
    radial-gradient(44% 54% at 82% 18%, rgba(168,85,247,.18), transparent 60%),
    radial-gradient(50% 50% at 62% 82%, rgba(99,102,241,.20), transparent 60%),
    radial-gradient(40% 40% at 12% 84%, rgba(6,182,212,.16), transparent 60%);
  will-change: transform;
  animation: aurora 34s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(1.6%, -1.6%, 0); }
  100% { transform: translate3d(-1.6%, 1%, 0); }
}
/* Spotlight glow that moves & recolours section-by-section as you scroll (driven by JS) */
.bg-spot {
  position: fixed; z-index: -3; width: 56vw; height: 56vw; max-width: 720px; max-height: 720px;
  left: var(--spot-x, 28%); top: var(--spot-y, 26%); transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, var(--spot-color, rgba(99,102,241,.6)) 0%, transparent 68%);
  transition: left 1.4s cubic-bezier(.4,0,.2,1), top 1.4s cubic-bezier(.4,0,.2,1),
              background 1.4s ease, opacity 1.4s ease;
}
.bg-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-grid::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 82%);
}
.bg-orb {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(70px); opacity: .32; pointer-events: none; will-change: transform;
  animation: float 22s ease-in-out infinite;
}
.orb-1 { width: 380px; height: 380px; background: #2563eb; top: -120px; left: -110px; }
.orb-2 { width: 360px; height: 360px; background: #a855f7; top: 48%; right: -140px; animation-delay: -8s; }
.orb-3 { width: 300px; height: 300px; background: #06b6d4; bottom: -120px; left: 30%; animation-delay: -14s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(26px, -22px) scale(1.06); }
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff; font-size: .95rem; letter-spacing: .5px;
  box-shadow: 0 8px 20px -8px rgba(99,102,241,.8);
}
.brand-name { font-size: 1.05rem; letter-spacing: .2px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -14px rgba(99,102,241,.9); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(99,102,241,1); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cyan); background: var(--surface-2); }

/* ---------- Layout / sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; position: relative; }

/* ---------- Light sections: colourful gradient mesh + dark, readable text ---------- */
.section.light::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; z-index: -1;
  border-top: 1px solid rgba(255,255,255,.6); border-bottom: 1px solid rgba(20,30,60,.06);
  background-size: 170% 170%;
  animation: meshDrift 28s ease-in-out infinite alternate;
}
@keyframes meshDrift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
#about.light::before {
  background-image:
    radial-gradient(60% 80% at 8% 6%, #dbe4ff, transparent 60%),
    radial-gradient(55% 75% at 94% 14%, #ecdfff, transparent 60%),
    radial-gradient(70% 85% at 84% 98%, #d3edff, transparent 62%),
    linear-gradient(135deg, #eff2ff, #f6f0ff);
}
#skills.light::before {
  background-image:
    radial-gradient(60% 80% at 6% 8%, #d2f4ea, transparent 60%),
    radial-gradient(55% 75% at 94% 12%, #d9e8ff, transparent 60%),
    radial-gradient(70% 85% at 86% 98%, #e8f8d6, transparent 62%),
    linear-gradient(135deg, #edfbf6, #eef5ff);
}
#growth.light::before {
  background-image:
    radial-gradient(60% 80% at 8% 6%, #f1dfff, transparent 60%),
    radial-gradient(55% 75% at 94% 14%, #ffdfec, transparent 60%),
    radial-gradient(70% 85% at 84% 98%, #ffead7, transparent 62%),
    linear-gradient(135deg, #f9f0ff, #fff2f6);
}

.section.light { color: #1c2740; }
.section.light .section-tag { color: #6d28d9; }
.section.light h2, .section.light h3, .section.light strong,
.section.light .kv strong, .section.light .learn-title, .section.light .about-card h3 { color: #11192e; }
.section.light p, .section.light .section-sub, .section.light .about-text p,
.section.light .gc-org, .section.light .dev-list li, .section.light .learn-card p { color: #45526d; }
.section.light .about-text p strong { color: #11192e; }
.section.light em { color: #5b667e; }

.section.light .about-card, .section.light .skill-card,
.section.light .growth-card, .section.light .learn-col {
  background: rgba(255,255,255,.88); border-color: rgba(20,30,70,.10);
  box-shadow: 0 26px 54px -32px rgba(30,40,90,.42); backdrop-filter: blur(6px);
}
.section.light .learn-card { background: rgba(247,249,255,.92); border-color: rgba(20,30,70,.08); }
.section.light .skill-card h3::before { color: var(--indigo); }
.section.light .chips span { background: #ffffff; border-color: rgba(20,30,70,.12); color: #33405c; }
.section.light .chips span:hover { border-color: var(--indigo); color: #11192e; }
.section.light .kv li { border-color: rgba(20,30,70,.1); }
.section.light .kv span { color: #7b86a2; }
.section.light .focus-card { background: rgba(255,255,255,.82); border-color: rgba(20,30,70,.1); box-shadow: 0 14px 34px -26px rgba(30,40,90,.4); }
.section.light .focus-card:hover { border-color: var(--indigo); }
.section.light .focus-card strong { color: #11192e; }
.section.light .focus-card small { color: #5b667e; }
.section.light .dev-list li { border-color: rgba(20,30,70,.1); }
.section.light .dev-year, .section.light .gc-date { background: #eef1fb; border-color: rgba(20,30,70,.1); color: #4f46e5; }
.section.light .learn-badge.pursuing { color: #b45309; background: rgba(251,191,36,.2); border-color: rgba(180,83,9,.3); }
.section.light .learn-badge.done { color: #047857; background: rgba(16,185,129,.16); border-color: rgba(4,120,87,.28); }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-tag {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.section-head h2, .spotlight h2, .contact-card h2 {
  font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15; letter-spacing: -.5px;
}
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 118px 24px 60px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 0.95fr; gap: 50px; align-items: center; width: 100%; }
.hero-inner { max-width: 720px; }
.hero-photo { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.photo-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; }
/* morphing gradient blob backdrop */
.photo-blob {
  position: absolute; z-index: 0; top: 7%; left: 50%; width: 300px; height: 392px; pointer-events: none;
  background: linear-gradient(150deg, #22d3ee, #6366f1 50%, #a855f7);
  border-radius: 46% 54% 50% 50% / 38% 42% 58% 62%; opacity: .22; filter: blur(6px);
  transform: translateX(-50%);
  animation: blobMorph 13s ease-in-out infinite alternate, blobSpin 38s linear infinite;
}
@keyframes blobMorph {
  0% { border-radius: 46% 54% 50% 50% / 38% 42% 58% 62%; }
  100% { border-radius: 60% 40% 56% 44% / 52% 56% 44% 48%; }
}
@keyframes blobSpin { to { transform: translateX(-50%) rotate(360deg); } }
/* slow-spinning gradient ring halo behind the upper body */
.photo-ring {
  position: absolute; z-index: 0; top: 4%; left: 50%; transform: translateX(-50%);
  width: 286px; height: 286px; border-radius: 50%; pointer-events: none; opacity: .55;
  background: conic-gradient(from 0deg, transparent 0%, rgba(56,189,248,.9) 12%, transparent 32%, rgba(168,85,247,.9) 56%, transparent 74%, rgba(99,102,241,.9) 92%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  animation: blobSpin 16s linear infinite;
}
/* soft brand glow behind the cut-out figure */
.photo-glow {
  position: absolute; z-index: 0; left: 50%; top: 4%; transform: translateX(-50%);
  width: 340px; height: 380px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 45%, rgba(99,102,241,.5), rgba(168,85,247,.28) 52%, transparent 74%);
  filter: blur(30px);
}
/* grounding shadow ellipse at the feet */
.photo-ground {
  position: absolute; z-index: 0; bottom: 1%; left: 50%; transform: translateX(-50%);
  width: 240px; height: 44px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(56,189,248,.45), transparent 70%);
  filter: blur(11px);
}
.photo-cutout {
  position: relative; z-index: 1; height: clamp(430px, 60vh, 580px); width: auto; display: block;
  filter: drop-shadow(0 22px 26px rgba(0,0,0,.55));
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
/* floating glass skill chips around the figure (kept clear of the face) */
.orb-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(11,16,30,.72); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 13px; border-radius: 999px; backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.85);
  animation: floatChip 5.5s ease-in-out infinite;
}
.chip-1 { top: 21%; left: -19%; }
.chip-2 { top: 47%; right: -18%; animation-delay: -1.8s; }
.chip-3 { bottom: 22%; left: -13%; animation-delay: -3.4s; }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-pill {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  font-size: .76rem; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(11,16,30,.78); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px);
  box-shadow: 0 14px 32px -16px rgba(0,0,0,.85);
}
.pill-top { top: 14%; right: -4%; }
.fp-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite;
}
.hero-photo-meta {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; max-width: 330px;
}
.hero-photo-meta li {
  font-size: .82rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.hero-title { font-family: var(--font-head); display: flex; flex-direction: column; margin-bottom: 26px; }
.hero-greet { font-size: clamp(.95rem, 1.8vw, 1.15rem); font-weight: 500; color: var(--muted); letter-spacing: .3px; margin-bottom: 8px; }
.hero-name { font-size: clamp(2.3rem, 5.6vw, 3.6rem); font-weight: 600; line-height: 1.05; letter-spacing: -1px; color: var(--text); }
.hero-tag {
  font-size: clamp(1.18rem, 2.5vw, 1.72rem); font-weight: 500; line-height: 1.4;
  letter-spacing: -.2px; color: #c8d1e3; margin-top: 16px; max-width: 30ch;
}
.hero-tag .gradient-text { font-weight: 600; }

/* typewriter line */
.hero-typed {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin: 2px 0 30px; font-size: clamp(.98rem, 2vw, 1.2rem); font-weight: 500; color: var(--muted);
}
.ht-rotator { display: inline-flex; align-items: center; min-height: 1.4em; }
#typed { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
.ht-caret {
  display: inline-block; width: 2px; height: 1.15em; background: var(--cyan); margin-left: 4px;
  border-radius: 2px; animation: caretBlink 1.05s step-end infinite;
}
@keyframes caretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* staggered word reveal for section headings */
.fx-h .w { display: inline-block; }
.fx-h .w-i {
  display: inline-block; transform: translateY(.5em); opacity: 0;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .55s ease;
  will-change: transform, opacity;
}
.fx-h.in .w-i { transform: none; opacity: 1; }
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); max-width: 660px; margin-bottom: 36px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: .9rem; }
.hero-meta span { white-space: nowrap; }

/* ---------- Stats ---------- */
.stats {
  max-width: var(--maxw); margin: -30px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; backdrop-filter: blur(6px);
}
.stat-num {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { display: block; margin-top: 10px; color: var(--muted); font-size: .86rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: stretch; }
.about-text { display: flex; flex-direction: column; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.04rem; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-focus { display: grid; gap: 12px; margin-top: auto; padding-top: 10px; }
.focus-card {
  display: flex; align-items: center; gap: 15px; padding: 15px 18px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s, border-color .25s;
}
.focus-card:hover { transform: translateY(-2px); }
.focus-ico { font-size: 1.5rem; line-height: 1; }
.focus-card strong { display: block; font-size: 1rem; }
.focus-card small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.about-card h3 { font-family: var(--font-head); margin-bottom: 18px; font-size: 1.15rem; }
.kv { list-style: none; display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: space-between; }
.kv li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.kv li:last-child { border-bottom: 0; padding-bottom: 0; }
.kv span { color: var(--faint); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.kv strong { color: var(--text); font-weight: 600; font-size: .98rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--cyan), var(--violet)); opacity: .5;
}
.tl-item { position: relative; margin-bottom: 34px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -30px; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--cyan); box-shadow: 0 0 0 5px rgba(56,189,248,.14);
}
.tl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: border-color .3s, transform .3s;
}
.tl-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.tl-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tl-top h3 { font-family: var(--font-head); font-size: 1.3rem; }
.tl-org { color: var(--cyan); font-weight: 500; font-size: .96rem; margin-top: 3px; }
.tl-date {
  font-size: .82rem; color: var(--muted); white-space: nowrap; height: fit-content;
  background: var(--surface-2); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px;
}
.tl-lead { color: var(--muted); margin-bottom: 18px; }
.tl-lead strong, .tl-list strong { color: var(--text); font-weight: 600; }
.tl-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.tl-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: .98rem; }
.tl-list li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--grad); transform: rotate(45deg);
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-size: .82rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); padding: 6px 13px; border-radius: 999px; transition: .2s;
}
.chips span:hover { border-color: var(--cyan); color: #fff; }

/* ---------- Spotlight ---------- */
.spotlight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); border-radius: 24px; padding: 48px;
}
.spotlight .section-tag { color: var(--violet); }
.spotlight-text h2 { margin: 12px 0 16px; }
.spotlight-text p { color: var(--muted); margin-bottom: 22px; }
.spotlight-text strong { color: var(--text); }
.spotlight-points { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.spotlight-points li { display: flex; gap: 16px; background: rgba(8,12,24,.45); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.sp-ico { font-size: 1.4rem; line-height: 1; }
.spotlight-points strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.spotlight-points p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .3s, transform .3s;
}
.skill-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.skill-card h3 { font-family: var(--font-head); font-size: 1.08rem; margin-bottom: 16px; }
.skill-card h3::before { content: "▹ "; color: var(--cyan); }

/* ---------- Global reach map ---------- */
.map-wrap { position: relative; width: 100%; aspect-ratio: 228 / 161; max-height: 600px; margin-bottom: 28px; }
.map-panel {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background:
    url("assets/img/world.svg") center / 100% 100% no-repeat,
    radial-gradient(circle at 64% 44%, rgba(56,189,248,.10), transparent 58%),
    linear-gradient(180deg, rgba(11,17,32,.72), rgba(8,12,24,.6));
}
.map-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-arc {
  fill: none; stroke: url(#arcGrad); stroke-width: 1.4; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-dasharray: 3 6; opacity: .65;
}

.map-pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 7px; z-index: 2; }
.map-pin:hover { z-index: 5; }
.pin-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); position: relative;
  box-shadow: 0 0 0 4px rgba(56,189,248,.16), 0 0 14px rgba(56,189,248,.9);
}
.pin-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--cyan);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(.55); opacity: .9; }
  100% { transform: scale(2.7); opacity: 0; }
}
.map-pin.hub .pin-dot { width: 16px; height: 16px; background: var(--violet);
  box-shadow: 0 0 0 5px rgba(168,85,247,.22), 0 0 18px rgba(168,85,247,1); }
.map-pin.hub .pin-dot::after { border-color: var(--violet); }
.pin-label {
  font-size: .72rem; font-weight: 600; color: var(--text); white-space: nowrap;
  background: rgba(8,12,24,.78); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px;
  backdrop-filter: blur(4px); opacity: 0; transform: translateY(-2px); transition: opacity .2s, transform .2s;
}
.map-pin:hover .pin-label { opacity: 1; transform: none; }
.map-pin.hub .pin-label { opacity: 1; transform: none; color: #fff; border-color: rgba(168,85,247,.5); }

/* country pill list under the map */
.reach-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.reach-pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px;
  transition: border-color .25s, transform .25s;
}
.reach-pill:hover { border-color: var(--cyan); transform: translateY(-2px); }
.reach-pill .pd { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; }
.reach-pill.hub .pd { background: var(--violet); }
.reach-pill small { color: var(--faint); font-weight: 400; }

/* ---------- Education / growth ---------- */
.growth-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.growth-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .3s, transform .3s;
}
.growth-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.gc-ico { font-size: 1.6rem; line-height: 1; }
.growth-card h3 { font-family: var(--font-head); font-size: 1.05rem; margin: 14px 0 8px; line-height: 1.3; }
.gc-org { color: var(--muted); font-size: .92rem; }
.gc-date {
  display: inline-block; margin-top: 14px; font-size: .8rem; color: var(--cyan);
  background: var(--surface-2); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px;
}
.growth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.learn-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.learn-title { font-family: var(--font-head); font-size: 1.12rem; margin-bottom: 18px; }
.learn-card { background: rgba(8,12,24,.4); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 14px; }
.learn-card:last-child { margin-bottom: 0; }
.learn-card strong { display: block; margin: 9px 0 6px; font-size: 1rem; }
.learn-card p { color: var(--muted); font-size: .9rem; }
.learn-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.learn-badge.pursuing { color: #fbbf24; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.32); }
.learn-badge.done { color: #34d399; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.32); }
.dev-list { list-style: none; display: flex; flex-direction: column; }
.dev-list li {
  display: flex; gap: 14px; align-items: baseline; padding: 12px 0;
  border-bottom: 1px solid var(--border); color: var(--muted); font-size: .95rem;
}
.dev-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.dev-year {
  flex: 0 0 auto; font-family: var(--font-head); font-weight: 600; font-size: .78rem; color: var(--cyan);
  background: var(--surface-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 8px;
}

/* ---------- Contact ---------- */
.contact { padding-bottom: 60px; }
.contact-card {
  background: var(--grad-soft); border: 1px solid var(--border-strong); border-radius: 28px;
  padding: 56px; text-align: center; max-width: var(--maxw); margin: 0 auto;
}
.contact-card .section-tag { color: var(--violet); }
.contact-lead { color: var(--muted); max-width: 600px; margin: 16px auto 36px; font-size: 1.05rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; max-width: 760px; margin-left: auto; margin-right: auto; }
.contact-item {
  background: rgba(8,12,24,.5); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: border-color .3s, transform .3s;
}
a.contact-item:hover { border-color: var(--cyan); transform: translateY(-3px); }
.ci-ico { font-size: 1.5rem; }
.ci-label { color: var(--faint); font-size: .76rem; text-transform: uppercase; letter-spacing: 1px; }
.ci-val { color: var(--text); font-weight: 600; font-size: .92rem; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 40px 24px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-sub { color: var(--faint); font-size: .85rem; margin-top: 6px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; justify-items: center; text-align: center; }
  .hero-inner { max-width: 640px; }
  .eyebrow { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .photo-cutout { height: clamp(380px, 52vh, 520px); }
  .about-grid, .spotlight, .growth-split { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .growth-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight { padding: 36px; }
}
/* Collapse nav to a hamburger before the links get crowded */
@media (max-width: 880px) {
  .nav-links {
    position: fixed; top: 70px; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 16px;
    background: rgba(10,14,26,.97); border: 1px solid var(--border); border-radius: var(--radius);
    backdrop-filter: blur(16px); box-shadow: var(--shadow);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 11px 14px; border-radius: 10px; }
  .nav-links a:hover { background: var(--surface); }
  .nav-links .btn { margin-top: 4px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .section { padding: 70px 20px; }
  .hero { padding: 110px 20px 50px; }
  .skills-grid { grid-template-columns: 1fr; }
  .stats, .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 36px 22px; }
  .hide-mobile { display: none; }
  .tl-card, .learn-col, .about-card { padding: 24px; }
  .pin-label { display: none; }
  .map-pin.hub .pin-label { display: block; }
  .orb-chip { font-size: .68rem; padding: 6px 10px; }
  .chip-1 { left: -3%; } .chip-2 { right: -3%; } .chip-3 { left: -1%; }
}
@media (max-width: 420px) {
  .hero-meta { font-size: .82rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
