/* ============================================================
   Abdul Wahab — AI Portfolio
   Refined dark, restrained electric accent, generous space
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --accent: #4F8CFF;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --accent-line: rgba(79, 140, 255, 0.30);
  --accent-glow: rgba(79, 140, 255, 0.45);
  --accent-2: #76E0C2; /* used very sparingly in diagrams */

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --ff-head: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Hanken Grotesk", system-ui, sans-serif;
  --ff-mono: "Space Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

/* Dark (default) */
:root,
[data-theme="dark"] {
  --bg: #08090C;
  --bg-2: #0B0D11;
  --surface: #101319;
  --surface-2: #151922;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ECEEF2;
  --text-dim: #9097A3;
  --text-faint: #5B6270;
  --grid-line: rgba(255, 255, 255, 0.035);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* Light */
[data-theme="light"] {
  --bg: #F6F7F9;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FBFCFE;
  --border: rgba(15, 20, 30, 0.10);
  --border-strong: rgba(15, 20, 30, 0.16);
  --text: #0D1117;
  --text-dim: #5A636F;
  --text-faint: #98A1AD;
  --accent: #2D6BF0;
  --accent-soft: rgba(45, 107, 240, 0.10);
  --accent-line: rgba(45, 107, 240, 0.28);
  --accent-glow: rgba(45, 107, 240, 0.28);
  --grid-line: rgba(15, 20, 30, 0.045);
  --shadow: 0 30px 70px -34px rgba(20, 30, 60, 0.30);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent-soft); color: var(--text); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-line);
}
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 18px; }
.section-head p { color: var(--text-dim); margin-top: 18px; font-size: 1.05rem; max-width: 52ch; text-wrap: pretty; }
.pad { padding-block: clamp(80px, 11vw, 150px); }

/* ---------- Background grid ---------- */
.gridlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 90%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 90%);
}
.page { position: relative; z-index: 1; }

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

/* ---------- Nav ---------- */
header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--ff-head); font-weight: 600; letter-spacing: -0.01em; }
.brand .mono {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}
.brand .mono::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 70%);
}
.brand small { display: block; font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-faint); text-transform: uppercase; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 9px 14px;
  border-radius: 8px;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
[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; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--border-strong);
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--accent-glow); filter: brightness(1.06); }

.nav-cta { display: inline-flex; }
.hamburger { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--text); }
.hamburger svg { width: 20px; height: 20px; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 95;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: var(--gutter);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.drawer.open { transform: translateX(0); }
.drawer a { font-family: var(--ff-head); font-size: 1.9rem; color: var(--text-dim); padding: 12px 0; border-bottom: 1px solid var(--border); transition: color 0.2s, padding-left 0.3s var(--ease); }
.drawer a:hover { color: var(--text); padding-left: 12px; }
.drawer .close { position: absolute; top: 22px; right: var(--gutter); width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; }
.drawer-actions { display: flex; gap: 12px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 92px; padding-bottom: 64px; }
#neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 30%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, transparent 50%, var(--bg) 98%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 880px; }
.hero .eyebrow { opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease) 0.15s forwards; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.0;
  margin: 24px 0 0;
  letter-spacing: -0.03em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: block; opacity: 0; transform: translateY(108%); animation: riseLine 0.9s var(--ease) forwards; }
.hero h1 .line:nth-child(1) span { animation-delay: 0.25s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.38s; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  margin-top: 28px; font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--text-dim); max-width: 56ch; text-wrap: pretty;
  opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease) 0.6s forwards;
}
.hero-roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
  opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease) 0.7s forwards; }
.role-tag {
  font-family: var(--ff-mono); font-size: 12.5px; color: var(--text-dim);
  padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
}
.role-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px;
  opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease) 0.85s forwards; }
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: rise 1s var(--ease) 1.2s forwards;
}
.scroll-hint .bar { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-hint .bar::after { content:""; position:absolute; top:-40%; left:0; width:1px; height:40%; background: var(--accent); animation: scrolldot 2s var(--ease) infinite; }
@keyframes scrolldot { to { top: 110%; } }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes riseLine { to { opacity: 1; transform: translateY(0); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s 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; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-bio p { font-size: 1.18rem; color: var(--text); line-height: 1.7; text-wrap: pretty; }
.about-bio p + p { margin-top: 20px; color: var(--text-dim); font-size: 1.05rem; }
.about-bio .now {
  margin-top: 30px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); display: flex; gap: 14px; align-items: center;
}
.about-bio .now .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); position: relative; flex: none; }
.about-bio .now .pulse::after { content:""; position:absolute; inset:-6px; border-radius:50%; border:1px solid var(--accent-2); animation: ping 2s ease-out infinite; }
@keyframes ping { 0%{transform:scale(0.6);opacity:.8} 100%{transform:scale(1.6);opacity:0} }
.about-bio .now span { font-size: 0.95rem; color: var(--text-dim); }
.about-bio .now b { color: var(--text); font-weight: 600; }

.expertise { display: grid; gap: 14px; }
.exp-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  background: var(--surface); transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.exp-card:hover { border-color: var(--accent-line); transform: translateX(4px); }
.exp-card .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.exp-card .ico svg { width: 22px; height: 22px; }
.exp-card h4 { font-size: 1.05rem; }
.exp-card p { font-size: 0.9rem; color: var(--text-dim); margin-top: 6px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 70px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); }
.stat { background: var(--bg); padding: 28px clamp(16px, 2.5vw, 32px); }
.stat .num { font-family: var(--ff-head); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; letter-spacing: -0.02em; }
.stat .num .suf { color: var(--accent); }
.stat .lbl { font-size: 0.82rem; color: var(--text-dim); margin-top: 4px; }

/* ---------- Projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.proj-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); cursor: pointer; position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.proj-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.proj-viz { aspect-ratio: 16 / 8.6; position: relative; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.proj-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.proj-card:hover .proj-viz svg { transform: scale(1.03); transition: transform 0.6s var(--ease); }
.proj-card:hover .proj-viz img { transform: scale(1.03); transition: transform 0.6s var(--ease); }
.proj-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tech-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tech { font-family: var(--ff-mono); font-size: 11px; color: var(--text-dim); padding: 4px 9px; border: 1px solid var(--border); border-radius: 6px; }
.proj-body h3 { font-size: 1.3rem; }
.proj-body .role { font-family: var(--ff-mono); font-size: 11.5px; color: var(--accent); letter-spacing: 0.04em; margin-top: 7px; }
.proj-body p.desc { color: var(--text-dim); font-size: 0.95rem; margin-top: 12px; flex: 1; text-wrap: pretty; }
.metrics { display: flex; gap: 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.metric .mv { font-family: var(--ff-head); font-weight: 600; font-size: 1.25rem; }
.metric .mv .suf { color: var(--accent); }
.metric .ml { font-size: 0.72rem; color: var(--text-faint); margin-top: 2px; }
.proj-open { display: flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 0.85rem; color: var(--text-dim); font-family: var(--ff-mono); }
.proj-open svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.proj-card:hover .proj-open { color: var(--accent); }
.proj-card:hover .proj-open svg { transform: translate(3px, -3px); }

/* Modal */
.modal-scrim {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, #000 60%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(900px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transform: translateY(20px) scale(0.98); transition: transform 0.4s var(--ease);
}
.modal-scrim.open .modal { transform: none; }
.modal-viz { aspect-ratio: 16 / 6.5; border-bottom: 1px solid var(--border); position: relative; background: var(--bg); overflow: hidden; }
.modal-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--border); z-index: 2; }
.modal-body { padding: clamp(24px, 4vw, 40px); }
.modal-body .role { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; }
.modal-body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 10px; }
.modal-body .long { color: var(--text-dim); margin-top: 18px; font-size: 1.05rem; line-height: 1.7; text-wrap: pretty; }
.modal-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); }
.modal-metrics .m { background: var(--bg-2); padding: 22px; }
.modal-metrics .mv { font-family: var(--ff-head); font-weight: 600; font-size: 1.7rem; }
.modal-metrics .mv .suf { color: var(--accent); }
.modal-metrics .ml { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }
.modal-tech { margin-top: 26px; }
.modal-tech h5 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.modal-screens { margin-top: 30px; }
.modal-screens h5 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.screen-grid { display: grid; gap: 14px; }
.screen { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.screen:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.screen img { display: block; width: 100%; height: auto; }

/* ---------- Current work / startups ---------- */
.startups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.startup {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
  background: var(--surface); position: relative; overflow: hidden; transition: border-color 0.3s var(--ease);
}
.startup:hover { border-color: var(--accent-line); }
.startup::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg, var(--accent), transparent); }
.startup .status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; }
.startup .status .live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); position: relative; }
.startup .status .live::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid var(--accent-2); animation: ping 2s ease-out infinite; }
.startup h3 { font-size: 1.5rem; margin-top: 18px; }
.startup p { color: var(--text-dim); margin-top: 12px; font-size: 0.98rem; text-wrap: pretty; }
.startup .tech-row { margin-top: 20px; margin-bottom: 0; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.skill-group { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; background: var(--surface); }
.skill-group h4 { font-size: 1.1rem; display: flex; align-items: center; gap: 12px; }
.skill-group h4 .gi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.skill-group h4 .gi svg { width: 18px; height: 18px; }
.skill-list { margin-top: 22px; display: grid; gap: 14px; }
.skill-row { }
.skill-row .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 9px; }
.skill-row .name { font-size: 0.92rem; line-height: 1.35; flex: 1 1 auto; min-width: 0; }
.skill-row .lvl { font-family: var(--ff-mono); font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; flex: none; white-space: nowrap; padding-top: 3px; }
.bar { height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.1s var(--ease); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 0; }
.tl-item { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding-bottom: 50px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-when { font-family: var(--ff-mono); font-size: 13px; color: var(--text-dim); padding-top: 4px; }
.tl-when .badge { display: inline-block; margin-top: 8px; font-size: 10.5px; color: var(--accent-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }
.tl-main { position: relative; padding-left: 34px; border-left: 1px solid var(--border); padding-bottom: 4px; }
.tl-item:last-child .tl-main { border-left-color: transparent; }
.tl-dot { position: absolute; left: -6.5px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--accent-glow); }
.tl-main h3 { font-size: 1.3rem; }
.tl-main .org { color: var(--accent); font-size: 0.95rem; margin-top: 4px; font-family: var(--ff-mono); }
.tl-main ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.tl-main ul li { position: relative; padding-left: 20px; color: var(--text-dim); font-size: 0.96rem; text-wrap: pretty; }
.tl-main ul li::before { content:""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-line); }
.tl-main ul li b { color: var(--text); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 760px; margin-inline: auto; }
.contact h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.contact .sub { color: var(--text-dim); margin-top: 20px; font-size: 1.15rem; max-width: 46ch; margin-inline: auto; text-wrap: pretty; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 56px; text-align: left; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: all 0.3s var(--ease); }
.contact-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.contact-card .ci { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.contact-card .ci svg { width: 20px; height: 20px; }
.contact-card .cl { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); display: block; }
.contact-card .cv { font-size: 0.98rem; margin-top: 4px; color: var(--text); word-break: break-all; display: block; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding-block: 56px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.foot-nav a { font-size: 0.92rem; color: var(--text-dim); transition: color 0.2s; }
.foot-nav a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.foot-bottom small { color: var(--text-faint); font-size: 0.85rem; font-family: var(--ff-mono); }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--text-dim); transition: all 0.3s var(--ease); }
.foot-social a:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }
.foot-social svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: grid; }
  .about-grid { grid-template-columns: 1fr; }
  .proj-grid, .startups, .skills-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .tl-when { padding-top: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .modal-metrics { grid-template-columns: 1fr; }
  .metrics { gap: 16px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
