/* ---------------------------------------------------------------------------
   Shared tokens (spacing, fonts, layout)
--------------------------------------------------------------------------- */
:root {
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: var(--font-body);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 5rem;
  --radius:  10px;
  --container-width: 58rem;
}

/* ---------------------------------------------------------------------------
   DESIGN: Ink & Wash
   Dark  → deep navy canvas + warm gold/ochre accents
   Light → parchment + deep indigo ink
--------------------------------------------------------------------------- */
[data-design="ink"] {
  --font-heading:   'Playfair Display', Georgia, serif;

  --color-bg:       #0e1624;
  --color-surface:  #16243a;
  --color-surface-2:#1c2e4a;
  --color-text:     #e8e0d0;
  --color-text-muted:#9b8e7a;
  --color-accent:   #c49a3c;
  --color-accent-mid:#e8bc5a;
  --color-accent-dim:rgba(196,154,60,.12);
  --color-border:   #2a3a52;
  --color-on-accent:#0e1624;
  --shadow-accent:  rgba(196,154,60,.22);

  --bg-wash-a:      rgba(196,154,60,.07);
  --bg-wash-b:      rgba(80,115,85,.06);
  --bg-wash-c:      rgba(45,74,122,.08);
  --hero-wash-a:    rgba(196,154,60,.11);
  --hero-wash-b:    rgba(80,115,85,.08);
  --hero-wash-c:    rgba(45,74,122,.10);
  --hero-wash-d:    rgba(45,74,122,.04);

  --header-bg:      rgba(14,22,36,.92);
  --photo-border:   rgba(196,154,60,.38);
  --photo-ring-a:   rgba(196,154,60,.09);
  --photo-ring-b:   rgba(45,74,122,.06);
  --photo-shadow:   rgba(0,0,0,.38);
  --card-shadow:    rgba(0,0,0,.16);

  color-scheme: dark;
}

[data-design="ink"][data-theme="light"] {
  --color-bg:       #faf7f2;
  --color-surface:  #fffef8;
  --color-surface-2:#f2ebe0;
  --color-text:     #1e1208;
  --color-text-muted:#6b5744;
  --color-accent:   #2d4a7a;
  --color-accent-mid:#4a7ab5;
  --color-accent-dim:rgba(45,74,122,.10);
  --color-border:   #d4c4a8;
  --color-on-accent:#ffffff;
  --shadow-accent:  rgba(45,74,122,.16);

  --bg-wash-a:      rgba(180,130,50,.07);
  --bg-wash-b:      rgba(80,115,85,.05);
  --bg-wash-c:      rgba(45,74,122,.04);
  --hero-wash-a:    rgba(180,130,50,.11);
  --hero-wash-b:    rgba(80,115,85,.08);
  --hero-wash-c:    rgba(45,74,122,.10);
  --hero-wash-d:    rgba(45,74,122,.05);

  --header-bg:      rgba(250,247,242,.92);
  --photo-border:   rgba(45,74,122,.22);
  --photo-ring-a:   rgba(45,74,122,.06);
  --photo-ring-b:   rgba(180,130,50,.04);
  --photo-shadow:   rgba(30,18,8,.16);
  --card-shadow:    rgba(30,18,8,.06);

  color-scheme: light;
}

/* ---------------------------------------------------------------------------
   DESIGN: Tech / Glassmorphism
   Dark  → deep navy + cyan
   Light → off-white + teal
--------------------------------------------------------------------------- */
[data-design="tech"] {
  --color-bg:       #0f172a;
  --color-surface:  #1e293b;
  --color-surface-2:#263248;
  --color-text:     #e2e8f0;
  --color-text-muted:#94a3b8;
  --color-accent:   #06b6d4;
  --color-accent-mid:#67e8f9;
  --color-accent-dim:rgba(6,182,212,.12);
  --color-border:   #334155;
  --color-on-accent:#0f172a;
  --shadow-accent:  rgba(6,182,212,.25);

  --bg-wash-a:      rgba(6,182,212,.06);
  --bg-wash-b:      rgba(6,182,212,.03);
  --bg-wash-c:      rgba(6,182,212,.02);
  --hero-wash-a:    rgba(6,182,212,.12);
  --hero-wash-b:    rgba(14,165,233,.08);
  --hero-wash-c:    rgba(6,182,212,.10);
  --hero-wash-d:    rgba(6,182,212,.04);

  --header-bg:      rgba(15,23,42,.92);
  --photo-border:   rgba(6,182,212,.25);
  --photo-ring-a:   rgba(6,182,212,.10);
  --photo-ring-b:   rgba(6,182,212,.04);
  --photo-shadow:   rgba(0,0,0,.28);
  --card-shadow:    rgba(0,0,0,.20);

  color-scheme: dark;
}

[data-design="tech"][data-theme="light"] {
  --color-bg:       #f8fafc;
  --color-surface:  #ffffff;
  --color-surface-2:#f1f5f9;
  --color-text:     #0f172a;
  --color-text-muted:#475569;
  --color-accent:   #0891b2;
  --color-accent-mid:#06b6d4;
  --color-accent-dim:rgba(8,145,178,.10);
  --color-border:   #e2e8f0;
  --color-on-accent:#ffffff;
  --shadow-accent:  rgba(8,145,178,.22);

  --header-bg:      rgba(248,250,252,.92);
  --photo-border:   rgba(8,145,178,.30);
  --photo-ring-a:   rgba(8,145,178,.08);
  --photo-ring-b:   rgba(8,145,178,.03);
  --photo-shadow:   rgba(0,0,0,.15);
  --card-shadow:    rgba(0,0,0,.08);

  color-scheme: light;
}

/* --------------------------------- Base --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 106.25%; }

body {
  position: relative;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 55% 30% at 95%  8%, var(--bg-wash-a) 0%, transparent 65%),
    radial-gradient(ellipse 45% 28% at  4% 88%, var(--bg-wash-b) 0%, transparent 60%),
    radial-gradient(ellipse 65% 45% at 50% 50%, var(--bg-wash-c) 0%, transparent 72%);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tech floating blobs */
[data-design="tech"] body::before,
[data-design="tech"] body::after {
  content: '';
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: radial-gradient(circle, var(--color-accent-dim), rgba(6,182,212,0) 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
  animation: float 12s ease-in-out infinite;
}

[data-design="tech"] body::before { top: 6rem; left: -5rem; }
[data-design="tech"] body::after  { right: -6rem; bottom: 5rem; animation-delay: -5s; }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; font-weight: 700; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding-left: 1.25rem; }
strong { color: var(--color-text); }

.container { max-width: var(--container-width); margin-inline: auto; padding-inline: var(--space-2); }

.section { padding-block: var(--space-4) 0; }

.section h2 { position: relative; display: inline-block; }

.section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-mid), transparent);
  opacity: 0.7;
}

[data-design="tech"]  .section h2::after { border-radius: 999px; }
[data-design="ink"]   .section h2::after { border-radius: 3px 8px 5px 10px / 8px 3px 10px 5px; opacity: 0.6; }

.section-lead { color: var(--color-text-muted); max-width: 42rem; margin-top: var(--space-1); }

/* ----------------------------- Reading bar ------------------------------ */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 3px; background: transparent; overflow: hidden; }

.reading-progress-bar {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-mid));
  transition: width 0.12s ease-out;
}

/* -------------------------------- Header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 14px rgba(0,0,0,.12);
}

.nav { display: flex; align-items: center; gap: var(--space-2); padding-block: 0.75rem; }

.brand {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.1rem;
  color: var(--color-text); margin-right: auto; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--color-accent); }

.nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }

.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--color-text-muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--color-accent); text-decoration: none; }
.nav-links a.active { font-weight: 600; }

/* ---------------------------- Theme toggle ------------------------------ */
.theme-toggle {
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem; padding: 0;
  border: 1px solid var(--color-border); border-radius: 50%;
  background: transparent; color: var(--color-text-muted); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); }

.icon { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Sun/moon visibility */
.icon-sun  { display: none; }
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* --------------------------------- Hero --------------------------------- */
.hero { position: relative; padding-top: calc(var(--space-4) * 1.2); padding-bottom: var(--space-3); overflow: hidden; }

/* Ink: full-coverage watercolor wash */
[data-design="ink"] .hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 12% 45%, var(--hero-wash-c) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 82% 22%, var(--hero-wash-a) 0%, transparent 58%),
    radial-gradient(ellipse 45% 55% at 62% 80%, var(--hero-wash-b) 0%, transparent 55%),
    radial-gradient(ellipse 85% 75% at 50% 50%, var(--hero-wash-d) 0%, transparent 78%);
  pointer-events: none; z-index: 0;
}

/* Tech: small cyan glow blobs */
[data-design="tech"] .hero::before {
  content: '';
  position: absolute;
  width: 12rem; height: 12rem; border-radius: 999px;
  top: 3rem; right: 2rem;
  background: radial-gradient(circle, var(--hero-wash-a), transparent 70%);
  pointer-events: none; z-index: 0; filter: blur(6px);
}

[data-design="tech"] .hero::after {
  content: '';
  position: absolute;
  width: 8rem; height: 8rem; border-radius: 999px;
  bottom: 0; left: 8rem;
  background: radial-gradient(circle, var(--hero-wash-b), transparent 70%);
  pointer-events: none; z-index: 0;
}

.hero-layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: var(--space-3); align-items: center;
}

.hero-photo-wrap { display: flex; justify-content: center; }

.profile-photo {
  width: min(100%, 18rem);
  aspect-ratio: 1; object-fit: cover;
  border: 2px solid var(--photo-border);
  box-shadow:
    0 0 0 7px  var(--photo-ring-a),
    0 0 0 14px var(--photo-ring-b),
    0 22px 55px var(--photo-shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, border-radius 0.5s ease;
}

/* Shape per design */
[data-design="ink"]  .profile-photo { border-radius: 42% 58% 55% 45% / 52% 45% 55% 48%; animation: photoFloat 8s ease-in-out infinite; }
[data-design="tech"] .profile-photo { border-radius: 50%; animation: pulseGlow 6s ease-in-out infinite; }

.profile-photo:hover {
  border-color: var(--color-accent);
  box-shadow:
    0 0 0 4px var(--color-accent-dim),
    0 18px 50px var(--photo-shadow);
}

.hero-text { min-width: 0; }

.hero-kicker {
  color: var(--color-accent); font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  margin: 0 0 0.5rem; letter-spacing: 0.05em; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem); margin: 0 0 0.5rem; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--color-text), var(--color-accent), var(--color-text));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: nameShimmer 5s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600;
  font-family: var(--font-body); color: var(--color-accent);
  margin: 0 0 var(--space-2);
}

.hero-tagline { font-size: 1.05rem; color: var(--color-text-muted); margin: 0 0 var(--space-2); max-width: 44rem; }
.hero-pitch   { max-width: 42rem; color: var(--color-text-muted); margin: 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-3); }

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-block; padding: 0.65rem 1.4rem;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--color-text-muted); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px); border-color: var(--color-accent);
  color: var(--color-accent); text-decoration: none;
  box-shadow: 0 4px 14px var(--shadow-accent);
}

.btn-primary {
  background: var(--color-accent); border-color: var(--color-accent);
  color: var(--color-on-accent); box-shadow: 0 8px 18px var(--shadow-accent);
  animation: buttonGlow 3.4s ease-in-out infinite;
}

.btn-primary:hover {
  background: var(--color-accent-mid); border-color: transparent; color: var(--color-on-accent);
}

/* ----------------------- Brushstroke dividers (ink only) ---------------- */
.brush-divider {
  display: none;
  width: 100%; max-width: var(--container-width);
  margin: var(--space-4) auto 0; height: 28px; overflow: visible;
}

[data-design="ink"] .brush-divider { display: block; }

.brush-divider path { stroke: var(--color-border); }

/* -------------------------------- Cards --------------------------------- */
.card-grid {
  display: grid; gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: var(--space-3);
}

.card-grid .card, .contact-card {
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  will-change: transform, box-shadow, border-color;
}

.card-grid .card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-3); overflow: hidden;
}

/* Tech: gradient card background */
[data-design="tech"] .card-grid .card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface) 96%, white), var(--color-surface)),
    var(--color-surface);
}

/* Top shimmer bar */
.card-grid .card::before, .contact-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-mid), var(--color-accent));
  background-size: 200% 100%; opacity: 0;
  transition: opacity 0.3s ease; animation: barShimmer 2.5s linear infinite paused;
  pointer-events: none;
}

/* Inner glow */
.card-grid .card::after, .contact-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--color-accent-dim), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}

.card-grid .card:hover, .contact-card:hover {
  transform: translateY(-6px); border-color: var(--color-accent);
  box-shadow: 0 8px 32px var(--shadow-accent), 0 2px 8px var(--card-shadow);
}

.card-grid .card:hover::before, .contact-card:hover::before { opacity: 1; animation-play-state: running; }
.card-grid .card:hover::after,  .contact-card:hover::after  { opacity: 1; }

/* Project card */
.project-card { display: flex; flex-direction: column; gap: var(--space-2); }

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

.pc-identity { display: flex; align-items: flex-start; gap: 0.85rem; min-width: 0; flex: 1; }

.pc-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--color-accent-dim);
  border: 1px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
  color: var(--color-accent);
}
.pc-icon svg { width: 1.15rem; height: 1.15rem; }

.pc-identity > div { min-width: 0; }
.pc-identity h3 { margin: 0; font-size: 1.05rem; color: var(--color-text); }

.pc-company { margin: 0.1rem 0 0; font-size: 0.82rem; color: var(--color-accent); font-weight: 500; }
.pc-company a { color: inherit; text-decoration: none; }
.pc-company a:hover { text-decoration: underline; }

.pc-company-desc { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--color-text-muted); font-style: italic; }

.pc-date-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 500; color: var(--color-text-muted);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 0.25rem 0.75rem; white-space: nowrap; flex-shrink: 0;
}
.pc-date-badge svg { width: 0.85rem; height: 0.85rem; color: var(--color-accent); }

.pc-contributions-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-text-muted); margin: 0;
}

.pc-contributions { display: grid; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }

.pc-contributions li {
  position: relative; padding-left: 1.5rem;
  font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.5;
}
.pc-contributions li strong { color: var(--color-text); }

.pc-contributions li::before {
  content: ''; position: absolute; left: 0; top: 0.2rem;
  width: 1rem; height: 1rem;
  background-color: var(--color-accent);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-size: contain; mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
}

@media (max-width: 640px) {
  /* Stack the header so the fixed-width date badge stops crushing the
     identity text (title overlap + one-word-per-line + horizontal overflow) */
  .pc-header { flex-direction: column; gap: 0.6rem; }
  .pc-date-badge { align-self: flex-start; font-size: 0.72rem; }
}

.project-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.25rem;
}

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

.project-link { flex-shrink: 0; font-size: 0.82rem; font-weight: 600; color: var(--color-accent); white-space: nowrap; }
.project-link:hover { text-decoration: underline; }

.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: var(--color-accent); }

.card-meta { color: var(--color-accent); font-size: 0.8rem; font-weight: 500; margin: 0 0 var(--space-1); letter-spacing: 0.02em; }
.card p { color: var(--color-text-muted); margin: 0; }

.project-timeline {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 500; color: var(--color-text-muted); margin: 0 0 var(--space-2);
}
.project-timeline::before {
  content: ''; display: inline-block; width: 0.65rem; height: 0.65rem;
  border-radius: 50%; border: 2px solid var(--color-accent); flex-shrink: 0;
}

#projects .card-grid  { grid-template-columns: 1fr; }
#education .card-grid { grid-template-columns: 1fr; }
.skills-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .skills-grid { grid-template-columns: 1fr; } }

/* ----------------------------- Stats strip ----------------------------- */
.stats-strip {
  display: flex; justify-content: center; gap: var(--space-2);
  flex-wrap: wrap; padding-block: var(--space-3); margin-top: var(--space-3);
}

.stat {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  min-width: 8.5rem; flex: 1; max-width: 12rem;
  padding: 1.5rem 1.25rem;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  position: relative; overflow: hidden; cursor: default;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-mid), var(--color-accent));
  background-size: 200% 100%; opacity: 0; transition: opacity 0.3s ease;
  animation: barShimmer 2.5s linear infinite paused;
}
.stat::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--color-accent-dim), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}

.stat:hover {
  transform: translateY(-6px); border-color: var(--color-accent);
  box-shadow: 0 8px 32px var(--shadow-accent), 0 2px 8px var(--card-shadow);
}
.stat:hover::before { opacity: 1; animation-play-state: running; }
.stat:hover::after  { opacity: 1; }

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700; line-height: 1; position: relative;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-mid) 50%, var(--color-accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: statValueShimmer 4s ease-in-out infinite;
}

.stat-label {
  font-size: 0.72rem; color: var(--color-text-muted);
  text-align: center; text-transform: uppercase; letter-spacing: 0.07em;
}

/* --------------------------------- About -------------------------------- */
.about-body {
  max-width: 42rem; display: flex; flex-direction: column; gap: var(--space-2);
  margin-top: var(--space-3); color: var(--color-text-muted);
}
.about-body p { margin: 0; }

.highlight-list {
  list-style: none; padding: 0 0 0 var(--space-2); margin: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
  border-left: 2px solid var(--color-accent);
}
.highlight-list li { font-size: 0.95rem; color: var(--color-text-muted); }
.highlight-list li::before { content: '▸ '; color: var(--color-accent); font-size: 0.8rem; }

/* --------------------------------- Tags --------------------------------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: var(--space-2) 0 0; padding: 0; }

.tag-list li {
  padding: 0.2rem 0.65rem;
  background: linear-gradient(90deg, var(--color-accent-dim), color-mix(in srgb, var(--color-accent-dim) 70%, transparent));
  border: 1px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
  border-radius: 999px; font-size: 0.8rem; color: var(--color-accent); font-weight: 500;
}

.skill-group-label {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 2.25rem 0 0.75rem !important;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-text-muted); opacity: 0.7;
}
.skill-group-label::before, .skill-group-label::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

.tag-list--practice { margin-top: 0.25rem; }
.tag-list--practice li {
  background: color-mix(in srgb, var(--color-accent-dim) 50%, var(--color-surface-2));
  border-color: color-mix(in srgb, var(--color-accent) 35%, transparent);
  color: var(--color-text); font-weight: 500; font-size: 0.72rem;
}

/* -------------------------------- Contact ------------------------------- */
.contact-section { text-align: left; }
.contact-section > h2 { text-align: left; }

.contact-header {
  width: 100%; max-width: 36rem; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.location-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--color-text-muted); font-size: 0.8rem; font-weight: 500; margin-bottom: var(--space-2);
}
.location-badge::before { content: '📍'; font-size: 0.75rem; }

.availability-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--color-accent-dim);
  border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  color: var(--color-accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: var(--space-2);
  position: relative; overflow: hidden;
  animation: badgeFloat 3.2s ease-in-out infinite;
}
.availability-badge::before {
  content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--color-accent); display: inline-block; flex-shrink: 0;
  animation: badgeDotPulse 2s ease-in-out infinite;
}
.availability-badge::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-100%); animation: badgeShine 3s ease-in-out infinite;
}

.contact-lead { color: var(--color-text-muted); margin: 0; line-height: 1.6; text-align: center; }

.contact-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-2); margin-top: var(--space-3); text-align: left;
}

.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
  padding: var(--space-3); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  text-decoration: none; position: relative; overflow: hidden;
}
.contact-card:hover { text-decoration: none; }

.contact-icon {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  background: var(--color-accent-dim); border-radius: 8px; color: var(--color-accent); margin-bottom: 0.25rem;
}
.contact-icon svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.contact-platform { font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-handle   { font-size: 0.9rem; font-weight: 500; color: var(--color-text); }

/* -------------------------------- Footer -------------------------------- */
.site-footer {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin-top: var(--space-4); padding-block: var(--space-3);
  border-top: 1px solid var(--color-border); color: var(--color-text-muted);
  font-size: 0.85rem; text-align: center;
}
.site-footer p { margin: 0; text-align: center; width: 100%; }
.footer-text   { max-width: 100%; }
.footer-sub    { font-size: 0.8rem; margin-top: 0.3rem !important; color: var(--color-text-muted); }

.scroll-to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 20;
  display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0;
  border: 1px solid var(--color-border); border-radius: 999px;
  background: var(--color-surface); color: var(--color-accent); cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.scroll-to-top:hover   { background: var(--color-accent-dim); border-color: var(--color-accent); }
.scroll-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-to-top svg     { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------- Fade-in animation -------------------------- */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: none; }

.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .profile-photo, .btn-primary, body::before, body::after, .hero::before, .hero::after {
    animation: none !important; transition: none !important;
  }
}

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding-block: var(--space-3); }
  .hero-layout { grid-template-columns: 1fr; gap: var(--space-2); }
  .hero-photo-wrap { justify-content: flex-start; }
  .profile-photo { width: 10rem; }
  .card-grid { grid-template-columns: 1fr; }
  .project-header { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------ Animations ------------------------------ */
@keyframes float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%       { transform: translate3d(0,-18px,0) scale(1.06); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(6,182,212,.08), 0 18px 50px rgba(0,0,0,.28), inset 0 0 40px rgba(6,182,212,.04); }
  50%       { box-shadow: 0 0 0 1px rgba(6,182,212,.16), 0 22px 58px rgba(0,0,0,.34), inset 0 0 46px rgba(6,182,212,.06); }
}

@keyframes photoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

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

@keyframes statValueShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes nameShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes buttonGlow {
  0%, 100% { box-shadow: 0 8px 18px var(--shadow-accent); }
  50%       { box-shadow: 0 10px 26px var(--shadow-accent); }
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-2px); }
}

@keyframes badgeDotPulse {
  0%   { opacity: .6; transform: scale(.9);  box-shadow: 0 0 0 0 var(--color-accent-dim); }
  35%  { opacity: 1;  transform: scale(1.15); box-shadow: 0 0 0 .18rem var(--color-accent-dim); }
  70%  { opacity: .85; transform: scale(1.05); box-shadow: 0 0 0 .22rem transparent; }
  100% { opacity: .6; transform: scale(.9);  box-shadow: 0 0 0 0 transparent; }
}

@keyframes badgeShine {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
