/* =========================================================
   Simone Minuz — Portfolio
   Design tokens
   ========================================================= */
:root {
  --bg: #0a0e1a;
  --bg-2: #0d1220;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e7ecf4;
  --text-dim: #9aa6bd;
  --text-mute: #6b7690;

  --accent: #38bdf8;      /* sky */
  --accent-2: #818cf8;    /* indigo */
  --accent-3: #22d3ee;    /* cyan */
  --accent-warm: #fbbf24; /* amber highlight */
  --glow: rgba(56, 189, 248, 0.35);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #eaeef7;
  --surface: rgba(10, 20, 40, 0.02);
  --surface-2: rgba(10, 20, 40, 0.04);
  --border: rgba(10, 25, 55, 0.10);
  --border-strong: rgba(10, 25, 55, 0.18);
  --text: #0f1830;
  --text-dim: #46536e;
  --text-mute: #6b7690;
  --accent: #0284c7;
  --accent-2: #4f46e5;
  --accent-3: #0891b2;
  --glow: rgba(2, 132, 199, 0.22);
  --shadow: 0 20px 60px -24px rgba(20, 40, 80, 0.28);
}

/* =========================================================
   Reset & base
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #04121f; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }

/* =========================================================
   Ambient background
   ========================================================= */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(56,189,248,0.08), transparent 60%),
    radial-gradient(1000px 700px at 10% 110%, rgba(129,140,248,0.08), transparent 60%),
    var(--bg);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; top: -120px; right: -80px; background: radial-gradient(circle, var(--accent), transparent 70%); animation: drift 22s var(--ease) infinite alternate; }
.orb-2 { width: 460px; height: 460px; bottom: -140px; left: -100px; background: radial-gradient(circle, var(--accent-2), transparent 70%); animation: drift 26s var(--ease) infinite alternate-reverse; }
.orb-3 { width: 380px; height: 380px; top: 40%; left: 55%; background: radial-gradient(circle, var(--accent-3), transparent 70%); opacity: 0.28; animation: drift 30s var(--ease) infinite alternate; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  opacity: 0.5;
}

/* =========================================================
   Scroll progress
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 12px var(--glow);
}

/* =========================================================
   Navbar
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.4s var(--ease);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav.scrolled .nav-inner {
  margin: 10px auto;
  padding: 12px 22px;
  max-width: calc(var(--maxw) - 40px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  font-family: var(--font-mono);
  font-weight: 700; font-size: 15px;
  color: #04121f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px -6px var(--glow);
}
.brand-text { font-size: 16px; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 9px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s;
}
.theme-toggle:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.menu-btn { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface); border-radius: 11px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 500; font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform 0.28s var(--ease); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121f; font-weight: 600;
  box-shadow: 0 10px 30px -10px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--glow); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); font-size: 14px; padding: 10px 16px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-text { color: var(--text-dim); font-family: var(--font-mono); font-size: 13.5px; padding: 13px 8px; }
.btn-text:hover { color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* =========================================================
   Layout / sections
   ========================================================= */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 24px;
}
.section-head { margin-bottom: 54px; max-width: 720px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.kicker.center { justify-content: center; }
.kicker-num {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-mute);
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  padding: 150px 24px 90px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  margin-bottom: 26px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.hero-title {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.grad-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-lead strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 40px; }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-tags li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: all 0.25s;
}
.hero-tags li:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* Console card */
.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
}
.hero-card:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.card-head .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.card-title { margin-left: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mute); }
.card-body {
  padding: 18px 18px 22px;
  font-family: var(--font-mono);
  font-size: 12.8px;
  line-height: 2;
  color: var(--text-dim);
  overflow-x: auto;
}
.card-body .ln { display: block; }
.card-body .t { color: var(--text-mute); }
.card-body .ok { color: #34d399; }
.card-body .info { color: var(--accent); }
.card-body .hl { color: var(--accent-warm); font-weight: 600; }
.blink .info { animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  display: grid; place-items: start center;
  padding-top: 7px;
}
.scroll-hint span { width: 4px; height: 8px; border-radius: 3px; background: var(--accent); animation: scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* =========================================================
   About
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about-text .lead { font-size: 1.2rem; color: var(--text); margin-bottom: 20px; }
.about-text p { color: var(--text-dim); margin-bottom: 18px; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-text em { color: var(--accent); font-style: normal; }

.about-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border);
}
.about-meta > div { background: var(--bg); padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.meta-k { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); }
.meta-v { font-weight: 500; font-size: 15px; }

.about-side { display: flex; flex-direction: column; gap: 20px; }
.side-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.side-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 13px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.check-list li::after {
  content: "✓";
  position: absolute; left: 4px; top: 4px;
  font-size: 12px; font-weight: 700; color: #04121f;
}
.side-quote { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), var(--surface)); }
.side-quote svg { color: var(--accent); margin-bottom: 12px; opacity: 0.7; }
.side-quote p { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); line-height: 1.5; }

/* =========================================================
   Stats
   ========================================================= */
.stats-section { padding-top: 40px; padding-bottom: 40px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.stat::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at 50% -20%, var(--glow), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.stat:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.stat:hover::before { opacity: 1; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.stat-label { color: var(--text-dim); font-size: 14.5px; }

/* =========================================================
   Timeline
   ========================================================= */
.timeline { position: relative; padding-left: 8px; }
.timeline::before {
  content: "";
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent);
}
.tl-item { position: relative; padding-left: 42px; margin-bottom: 34px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-marker {
  position: absolute; left: 0; top: 26px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
}
.tl-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  background: var(--surface);
  transition: all 0.35s var(--ease);
}
.tl-card:hover { border-color: var(--border-strong); transform: translateX(4px); box-shadow: var(--shadow); }
.tl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tl-role { font-size: 1.3rem; margin-bottom: 4px; }
.tl-org { color: var(--accent); font-size: 14.5px; font-weight: 500; }
.tl-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  white-space: nowrap;
}
.tl-date.current { color: #34d399; border-color: color-mix(in srgb, #34d399 40%, transparent); }
.tl-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 11px;
  color: var(--text-dim);
  font-size: 14.8px;
}
.tl-points li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.tl-points strong { color: var(--text); font-weight: 600; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tl-tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 4px 11px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* =========================================================
   Skills
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.skill-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.skill-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.skill-card:hover { border-color: var(--border-strong); transform: translateY(-4px); background: var(--surface-2); }
.skill-card:hover::after { transform: scaleX(1); }
.skill-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  margin-bottom: 18px;
}
.skill-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.skill-card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-card ul li {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.25s;
}
.skill-card ul li:hover { color: var(--text); border-color: var(--accent); }

/* =========================================================
   What I do
   ========================================================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  background: var(--surface);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.work-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.work-index {
  font-family: var(--font-mono);
  font-size: 3rem; font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  position: absolute; top: 18px; right: 22px;
  transition: color 0.4s, -webkit-text-stroke 0.4s;
}
.work-card:hover .work-index { color: color-mix(in srgb, var(--accent) 18%, transparent); }
.work-card h3 { font-size: 1.15rem; margin-bottom: 12px; max-width: 80%; }
.work-card p { color: var(--text-dim); font-size: 14.5px; }

/* =========================================================
   Education
   ========================================================= */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.edu-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  transition: all 0.35s var(--ease);
}
.edu-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.edu-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 8px; }
.edu-head h3 { font-size: 1.15rem; }
.edu-date { font-family: var(--font-mono); font-size: 12px; color: var(--accent); white-space: nowrap; padding-top: 3px; }
.edu-org { color: var(--text-dim); font-size: 14px; margin-bottom: 12px; font-weight: 500; }
.edu-card p { color: var(--text-dim); font-size: 14.5px; }
.edu-card.interests { grid-column: 1 / -1; background: linear-gradient(150deg, color-mix(in srgb, var(--accent-2) 10%, transparent), var(--surface)); }
.interest-tags { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.interest-tags span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
}
.interest-tags svg { color: var(--accent); }

/* =========================================================
   Contact
   ========================================================= */
.contact-section { text-align: center; }
.contact-wrap { max-width: 760px; margin: 0 auto; }
.contact-wrap h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; }
.contact-lead { color: var(--text-dim); font-size: 1.1rem; max-width: 520px; margin: 0 auto 42px; }
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 42px;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 30px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.35s var(--ease);
}
.contact-card:not(.static):hover { transform: translateY(-4px); border-color: var(--accent); background: var(--surface-2); }
.contact-card svg { color: var(--accent); margin-bottom: 6px; }
.cc-label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); }
.cc-value { font-size: 14.5px; font-weight: 500; color: var(--text); word-break: break-word; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand > div { display: flex; flex-direction: column; }
.footer-brand strong { font-family: var(--font-display); font-size: 15px; }
.footer-brand span { font-size: 13px; color: var(--text-mute); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 14px; color: var(--text-dim); transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 13px; color: var(--text-mute); }

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 130px; gap: 40px; }
  .hero-card { transform: none; max-width: 520px; }
  .hero-card:hover { transform: none; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; width: min(80vw, 320px);
    flex-direction: column;
    padding: 100px 28px 40px;
    gap: 6px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 90;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .menu-btn { display: flex; }
  .nav-cta { display: none; }
  .section { padding: 80px 20px; }
  .section-head { margin-bottom: 40px; }
  .stats-grid, .skills-grid, .work-grid, .edu-grid, .contact-cards, .about-meta { grid-template-columns: 1fr; }
  .tl-top { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; text-align: center; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
}
