/* Base */
:root {
  --bg: #0b0c10;
  --bg-elev: #0f1116;
  --text: #e6e8eb;
  --muted: #a1a6ad;
  --brand: #6ee7f9;
  --brand-2: #a78bfa;
  --accent: #22d3ee;
  --card: #11131a;
  --border: #232634;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-elev: #f6f7f9;
  --text: #0b0c10;
  --muted: #4b5563;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --accent: #2563eb;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -20%, rgba(103,232,249,.08), transparent 60%),
              radial-gradient(800px 600px at -10% 10%, rgba(167,139,250,.08), transparent 60%),
              var(--bg);
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: 96px 0; scroll-margin-top: 96px; }
.section.alt { background: var(--bg-elev); }
.section-title { font-size: 32px; margin: 0 0 12px; }
.section-lead { color: var(--muted); margin: 0 0 28px; }

.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(10px); background: color-mix(in oklab, var(--bg) 88%, transparent); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0b0c10; font-weight: 800; font-family: "JetBrains Mono", monospace; }
.logo-text { font-weight: 700; letter-spacing: .2px; }

.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.nav-list a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.nav-list a:is(:hover, :focus-visible, .active) { color: var(--text); background: color-mix(in oklab, var(--card) 60%, transparent); }

.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border); background: var(--card); border-radius: 10px; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); }

.theme-toggle { width: 40px; height: 40px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text); }
.theme-toggle svg { width: 20px; height: 20px; display: none; fill: currentColor; }
[data-theme="light"] .icon-sun, [data-theme="dark"] .icon-moon { display: block; }

/* Hero */
.hero { position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; }
.hero-copy h1 { font-size: 56px; line-height: 1.05; margin: 0 0 12px; }
.hero-sub { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.hero-ctas { display: flex; gap: 12px; margin: 12px 0 18px; }
.quick-meta { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 18px; color: var(--muted); }
.hero-art { position: relative; height: 420px; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; border-radius: 16px; border: 1px solid var(--border); }
.orb { position: absolute; filter: blur(18px); opacity: .6; }
.orb-a { width: 180px; height: 180px; top: -30px; right: 30px; background: radial-gradient(circle at 30% 30%, var(--brand), transparent 60%); }
.orb-b { width: 200px; height: 200px; bottom: -20px; left: -10px; background: radial-gradient(circle at 70% 70%, var(--brand-2), transparent 60%); }
.hero-img { position: absolute; right: 16px; bottom: 16px; width: 320px; height: 320px; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }

.gradient-text { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.card-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card .meta { color: var(--muted); font-size: 14px; }
.bullets { margin: 12px 0 0; padding-left: 18px; color: var(--text); }
.bullets li { margin: 6px 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 12px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: color-mix(in oklab, var(--card) 70%, transparent); }
.tags.compact { margin: 0; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Timeline */
.timeline { display: grid; gap: 16px; position: relative; }
.timeline:before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding-left: 16px; }
.timeline-item .time { color: var(--muted); }
.timeline-item .content { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--card); transition: transform .08s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 70%, transparent), color-mix(in oklab, var(--brand-2) 70%, transparent)); color: #0b0c10; border-color: transparent; font-weight: 600; }
.btn.ghost { background: color-mix(in oklab, var(--card) 60%, transparent); }
.text-link { color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--border); }
.text-link:hover { border-bottom-color: currentColor; }

/* Footer */
.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 92%, transparent); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 280px; order: -1; }
  .hero-img { right: 50%; transform: translateX(50%); bottom: 10px; width: 220px; height: 220px; }
  .cards-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 1fr; padding-left: 0; }
  .timeline:before { left: 0; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav-list { position: absolute; right: 16px; top: 68px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: none; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
  .nav-list.open { display: flex; }
  .section { padding: 72px 0; }
  .cards-grid, .projects-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 40px; }
}


