:root {
  --bg: #0b1020;
  --bg-soft: #0f1730;
  --panel: #131c38;
  --panel-2: #172145;
  --text: #eaf0ff;
  --muted: #9fb0d4;
  --indigo: #6366f1;
  --indigo-2: #818cf8;
  --teal: #2dd4bf;
  --amber: #fbbf24;
  --pink: #f472b6;
  --line: rgba(255,255,255,0.08);
  --grad: linear-gradient(120deg, #6366f1 0%, #22d3ee 60%, #2dd4bf 100%);
  --grad-2: linear-gradient(120deg, #818cf8, #f472b6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, .brand { font-family: "Sora", "Inter", sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
strong { color: #fff; font-weight: 700; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 16px 6vw;
  background: rgba(11,16,32,0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.nav.scrolled { background: rgba(11,16,32,0.9); border-bottom-color: var(--line); padding: 12px 6vw; }
.brand { font-size: 24px; font-weight: 800; color: #fff; }
.brand span { color: var(--teal); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #06122b; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; font-size: 15px;
  border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(45,212,191,0.25);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99,102,241,0.35); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--indigo-2); background: rgba(129,140,248,0.08); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 6vw 80px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(50rem 30rem at 80% -10%, rgba(99,102,241,0.35), transparent 60%),
    radial-gradient(45rem 28rem at 5% 20%, rgba(45,212,191,0.28), transparent 55%),
    radial-gradient(40rem 30rem at 60% 110%, rgba(244,114,182,0.18), transparent 60%);
  animation: floaty 14s ease-in-out infinite alternate;
}
@keyframes floaty { to { transform: translateY(-16px) scale(1.03); } }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.eyebrow {
  display: inline-block; color: var(--teal); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; font-size: 13px; margin-bottom: 14px;
  border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px;
  background: rgba(45,212,191,0.06);
}
.hero h1 {
  font-size: clamp(48px, 9vw, 104px); line-height: 1; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.hero-role { font-size: clamp(16px, 2.4vw, 22px); color: var(--indigo-2); font-weight: 600; margin-bottom: 22px; }
.hero-tagline { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 720px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 13px; color: var(--text); background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px;
}

/* STATS */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  padding: 0 6vw; margin: -40px auto 0; max-width: 1300px; position: relative; z-index: 5;
}
.stat {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 20px; text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.stat .num {
  font-family: "Sora", sans-serif; font-size: clamp(30px, 4vw, 44px); font-weight: 800;
  background: var(--grad-2); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* SECTIONS */
.section { padding: 100px 6vw; max-width: 1200px; margin: 0 auto; }
.section.alt { background: var(--bg-soft); max-width: none; }
.section.alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 48px; }
.kicker { color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); margin-top: 10px; max-width: 720px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.about-grid p { font-size: 18px; color: var(--muted); }

/* TIMELINE */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--indigo), var(--teal));
}
.tl-item { position: relative; margin-bottom: 26px; }
.tl-dot {
  position: absolute; left: -33px; top: 22px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 5px rgba(45,212,191,0.15);
}
.tl-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tl-card:hover { transform: translateY(-3px); border-color: rgba(129,140,248,0.4); box-shadow: 0 18px 40px rgba(0,0,0,0.3); }
.tl-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.tl-top h3 { font-size: 19px; }
.tl-date { color: var(--teal); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tl-org { color: var(--indigo-2); font-weight: 500; margin: 4px 0 12px; font-size: 15px; }
.tl-card ul { list-style: none; display: grid; gap: 9px; }
.tl-card li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.tl-card li::before { content: "▹"; position: absolute; left: 0; color: var(--teal); }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  transition: transform .2s, border-color .2s;
}
.skill-card:hover { transform: translateY(-3px); border-color: rgba(45,212,191,0.4); }
.skill-card h4 { font-size: 16px; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 13px; color: var(--text); background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25); padding: 6px 12px; border-radius: 999px;
}
.domain { margin-top: 40px; text-align: center; }
.domain h4 { margin-bottom: 16px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.domain-tags { justify-content: center; }
.domain-tags span { background: rgba(45,212,191,0.1); border-color: rgba(45,212,191,0.3); font-size: 14px; padding: 8px 16px; }

/* EDUCATION */
.edu-card {
  display: flex; align-items: center; gap: 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; max-width: 760px;
}
.edu-icon { font-size: 40px; }
.edu-card h3 { font-size: 20px; }

/* FOOTER */
.footer { text-align: center; padding: 90px 6vw; background: radial-gradient(60rem 30rem at 50% 120%, rgba(99,102,241,0.25), transparent 60%); }
.footer h2 { font-size: clamp(28px, 5vw, 46px); margin-bottom: 12px; }
.footer-sub { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.footer .hero-cta { justify-content: center; }
.copyright { color: var(--muted); font-size: 14px; margin-top: 34px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; right: 6vw; background: var(--panel); padding: 18px 24px; border-radius: 14px; border: 1px solid var(--line); gap: 16px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav .btn-sm { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .tl-top { flex-direction: column; }
}
