/* ══════════════════════════════════════════════════════════════
   Sebastiaan Heirbaut – CV
   Apple-inspired design system
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  /* Brand */
  --accent:         #7c3aed;
  --accent-hover:   #6d28d9;
  --accent-soft:    #ede9fe;
  --accent-mid:     #c4b5fd;

  /* Surfaces */
  --bg:             #ffffff;
  --bg-alt:         #f9f9fb;
  --bg-card:        #ffffff;
  --bg-highlight:   #7c3aed;

  /* Text */
  --text-primary:   #1d1d1f;
  --text-secondary: #3d3d3f;
  --text-muted:     #86868b;
  --text-inverse:   #ffffff;

  /* Borders */
  --border:         rgba(0,0,0,.08);
  --border-strong:  rgba(0,0,0,.14);

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.14), 0 8px 24px rgba(0,0,0,.06);

  /* Spacing */
  --section-py: 100px;
  --container:  1160px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 9999px;

  /* Motion */
  --ease:     cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --dur:      .25s;

  /* Nav */
  --nav-h: 64px;

  /* Font */
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --bg:           #000000;
  --bg-alt:       #111111;
  --bg-card:      #1c1c1e;
  --text-primary: #f5f5f7;
  --text-secondary: #d1d1d6;
  --text-muted:   #636366;
  --border:       rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --shadow-sm:  0 1px 4px rgba(0,0,0,.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.6);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.7);
  --accent-soft:  rgba(124,58,237,.2);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }

/* ── Container ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Preloader ───────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s var(--ease);
}
#preloader.out { opacity: 0; pointer-events: none; }
.preloader-ring {
  width: 40px; height: 40px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="dark"] .nav.scrolled {
  background: rgba(0,0,0,.72);
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: var(--nav-h);
  gap: 40px;
  position: relative;
  flex-wrap: wrap;
}

/* Desktop: absolutely centre the links so logo-left / links-centre / actions-right */
@media (min-width: 769px) {
  .nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex: none;
  }
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.03em;
  flex-shrink: 0;
  /* Explicit height so the first flex row stays var(--nav-h)
     tall even when the nav grows to show the mobile menu */
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-logo:hover { color: var(--text-primary); }
.logo-dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
/* Mobile: links wrap to their own full-width row inside the nav */
@media (max-width: 768px) {
  .nav-links.open {
    flex: 0 0 100%;
    order: 99;
  }
}
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  height: var(--nav-h); /* anchors the first row at the correct height */
}

.nav-lang {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-full);
  transition: all var(--dur);
}
.nav-lang:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-icon-btn {
  width: 34px; height: 34px;
  border: none; background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  transition: all var(--dur);
}
.nav-icon-btn:hover { background: var(--accent-soft); color: var(--accent); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--dur);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
  transition: background var(--dur) var(--ease);
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse at center, var(--accent) 0%, transparent 70%);
  opacity: 0.1;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 80px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-text { flex: 1; max-width: 600px; }

.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 40px;
  letter-spacing: -.01em;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-social {
  display: flex;
  gap: 12px;
}
.hero-social a {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
  transition: all var(--dur);
}
.hero-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* Hero photo */
.hero-visual { flex-shrink: 0; position: relative; }
.hero-photo-frame {
  position: relative;
  width: 340px; height: 340px;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.hero-photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), #a78bfa, var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: ring-spin 8s linear infinite;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hero scroll cue */
.hero-scroll {
  display: flex; justify-content: center; padding-bottom: 32px;
  color: var(--text-muted); font-size: 1.2rem;
  animation: bounce 2s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── CV download dropdown ────────────────────────────────────── */
.cv-download-wrap {
  position: relative;
  display: inline-flex;
}
.cv-chevron {
  transition: transform var(--dur) var(--ease);
  font-size: .75rem;
}
.cv-download-wrap.open .cv-chevron { transform: rotate(180deg); }

.cv-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 200;
}
.cv-download-wrap.open .cv-dropdown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cv-dropdown a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--text-primary);
  transition: background var(--dur);
  border-bottom: 1px solid var(--border);
}
.cv-dropdown a:last-child { border-bottom: none; }
.cv-dropdown a:hover { background: var(--accent-soft); color: var(--text-primary); }
.cv-dropdown-flag { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.cv-dropdown a span { display: flex; flex-direction: column; gap: 1px; }
.cv-dropdown a strong { font-size: .88rem; font-weight: 600; }
.cv-dropdown a small { font-size: .75rem; color: var(--text-muted); font-weight: 400; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--r-full);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,.4);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid var(--border-strong);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  color: var(--accent);
  padding: 11px 22px;
  border-radius: var(--r-full);
  font-size: .85rem;
  font-weight: 700;
  transition: all var(--dur);
  border: none; cursor: pointer;
}
.btn-white:hover {
  background: #f3f0ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ── Section base ────────────────────────────────────────────── */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-alt); }

.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 56px;
}

/* ── About ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.about-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--text-primary);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.about-body p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Strengths ───────────────────────────────────────────────── */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.strength-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.strength-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  opacity: 0;
  transition: opacity var(--dur);
}
.strength-card:hover { border-color: var(--accent-mid); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.strength-card:hover::before { opacity: 1; }
.strength-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.strength-num {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -.06em;
  color: var(--accent);
  opacity: .22;
  line-height: 1;
  position: relative;
}
.strength-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  position: relative;
  transition: background var(--dur);
  flex-shrink: 0;
}
.strength-card:hover .strength-icon { background: var(--accent); color: #fff; }
.strength-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
}

/* ── Skills pill grid ────────────────────────────────────────── */
.skills-bento {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.skill-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 10px 20px;
  transition: all var(--dur) var(--ease);
  cursor: default;
}
.skill-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.skill-item-icon {
  color: var(--accent);
  font-size: .8rem;
  opacity: .75;
  transition: opacity var(--dur);
  flex-shrink: 0;
}
.skill-item:hover .skill-item-icon { opacity: 1; }

.skill-item-body { display: flex; flex-direction: column; justify-content: center; }
.skill-item-body span {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.skill-item:hover .skill-item-body span { color: var(--accent); }

/* Languages */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.lang-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.lang-flag { font-size: 1.3rem; }
.lang-name { font-size: .88rem; font-weight: 600; color: var(--text-primary); }
.lang-card .progress-track { grid-column: 1 / -2; grid-row: 2; }
.lang-pct { font-size: .78rem; font-weight: 700; color: var(--accent); }
.lang-card { grid-template-rows: auto auto; }
.lang-card .progress-track { grid-column: 1 / 3; }

/* Progress bars */
.progress-track {
  height: 5px;
  background: var(--border-strong);
  border-radius: var(--r-full);
  overflow: hidden;
  width: 100%;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  border-radius: var(--r-full);
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ── Timeline ────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 160px 32px 1fr;
  gap: 0 20px;
  min-height: 100px;
}
.timeline-aside {
  padding-top: 6px;
  text-align: right;
}
.timeline-period {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
  display: inline-block;
}
.timeline-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex-shrink: 0;
  margin-top: 6px;
}
.timeline-line {
  flex: 1;
  width: 2px;
  background: var(--border-strong);
  margin: 8px 0;
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur);
}
.timeline-card:hover { border-color: var(--accent-mid); box-shadow: var(--shadow-md); }
.timeline-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.timeline-company { font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }
.timeline-company .fa { margin-right: 4px; }
.timeline-desc { font-size: .88rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Education cards ─────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur);
}
.edu-card:hover { border-color: var(--accent-mid); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.edu-card-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px;
}
.edu-period {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.edu-icon {
  width: 32px; height: 32px;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: .85rem;
}
.edu-card h3 { font-size: .95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.3; }
.edu-inst { font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
.edu-inst .fa { margin-right: 4px; }
.edu-desc { font-size: .83rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Interests ───────────────────────────────────────────────── */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur);
}
.interest-card:hover { border-color: var(--accent-mid); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.interest-icon {
  width: 52px; height: 52px;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 auto 16px;
  transition: all var(--dur);
}
.interest-card:hover .interest-icon { background: var(--accent); color: #fff; }
.interest-card h3 { font-size: .95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.interest-card p { font-size: .83rem; color: var(--text-muted); line-height: 1.6; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: -36px;
  margin-bottom: 56px;
  max-width: 480px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur);
  color: var(--text-primary);
  cursor: pointer;
}
.contact-card:hover { border-color: var(--accent-mid); transform: translateX(4px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.contact-body a, .contact-body span { font-size: .9rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-body a:hover { color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -.02em;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
  transition: all var(--dur);
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.footer-copy { font-size: .78rem; color: var(--text-muted); }

/* ── Reveal animation ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .container { padding: 0 28px; }
  .hero-photo-frame { width: 280px; height: 280px; }
  .hero-inner { gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-heading h2 { position: static; }
  .timeline-item { grid-template-columns: 120px 28px 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .container { padding: 0 20px; }

  /* Hide nav links by default on mobile */
  .nav-links { display: none; }

  /*
   * The dropdown IS the nav — it doesn't live below the bar,
   * it IS the bar extending downward. When .menu-open is added
   * by JS, the nav grows in height (overflow: visible) and the
   * frosted-glass background already on the nav covers the whole
   * expanded area. One element, zero seams.
   */
  .nav.menu-open {
    /* Ensure frosted-glass even when page is at top (not yet .scrolled) */
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(0,0,0,.08);
  }
  [data-theme="dark"] .nav.menu-open {
    background: rgba(0,0,0,.72);
  }

  /* Links are now a static child of the nav — no separate positioned panel */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: static;         /* inside the nav, not fixed */
    background: none;         /* inherits the nav's frosted glass */
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    padding: 2px 0 14px;
  }
  .nav-links.open a {
    padding: 11px 24px;
    font-size: .95rem;
    text-align: center;
    color: var(--text-secondary);
  }
  .nav-links.open a:hover,
  .nav-links.open a.active { color: var(--accent); }
  .nav-burger { display: flex; }

  .hero-inner { flex-direction: column-reverse; gap: 40px; padding-top: 48px; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-social { justify-content: center; }
  .hero-photo-frame { width: 200px; height: 200px; margin: 0 auto; }

  .highlight-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .highlight-actions { margin-left: 0; }

  .section-title { margin-bottom: 36px; }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-bento { gap: 8px; }
  .edu-grid { grid-template-columns: 1fr; }
  .interests-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-aside { text-align: left; }
  .timeline-dot-wrap { display: none; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.6rem; }
  .strengths-grid { grid-template-columns: 1fr 1fr; }
  .interests-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: 1fr; }
}
