@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg:       #0a0e1a;
  --surface:  #111827;
  --card:     #151d2e;
  --border:   #1e2d45;
  --muted:    #6b7fa3;
  --text:     #c8d4e8;
  --heading:  #f0f4ff;
  --violet:   #4f7cff;
  --teal:     #0eb8d4;
  --rose:     #f43f7a;
  --amber:    #f59e0b;
  --green:    #10d98a;
  --indigo:   #818cf8;
  --accent:   #4f7cff;
  --serif:    'Instrument Serif', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
  --max:      1160px;
  --nav-h:    64px;
  --r:        16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(10,14,26,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); z-index: 100;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 40px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--serif); font-size: 20px; color: var(--heading); }
.nav-logo .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); margin-left: 4px; vertical-align: middle; margin-bottom: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 6px 14px; border-radius: 8px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--card); color: var(--heading); }
.nav-links a.active { background: rgba(79,124,255,.15); color: var(--violet); }
.nav-cta { background: var(--violet) !important; color: white !important; border-radius: 100px !important; font-weight: 600 !important; padding: 9px 22px !important; }
.nav-cta:hover { opacity: .85; }
.nav-hamburger { display: none; background: none; border: none; color: var(--heading); font-size: 22px; cursor: pointer; }
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--serif); font-size: 32px; color: var(--heading); }

/* WRAP */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.page-shell { padding-top: var(--nav-h); min-height: 100vh; }

/* HERO BAND */
.hero-band {
  padding: 80px 0 64px;
  background: linear-gradient(160deg, var(--surface) 0%, #0d1628 60%, #0a1220 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero-band::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,124,255,.09) 0%, transparent 70%);
  pointer-events: none;
}

/* LABEL */
.label { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--violet); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.label::before { content: ''; width: 24px; height: 2px; background: var(--violet); border-radius: 2px; }

/* DISPLAY HEADING */
.display-heading { font-family: var(--serif); font-size: clamp(44px, 6vw, 76px); line-height: 0.95; letter-spacing: -2px; color: var(--heading); margin-bottom: 0; }
.display-heading em { font-style: italic; background: linear-gradient(135deg, var(--violet), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ACCENT STRIP */
.accent-strip { height: 3px; background: linear-gradient(90deg, var(--violet), var(--teal), var(--rose)); border-radius: 2px; margin-bottom: 52px; }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 100px; background: var(--violet); color: white; font-size: 14px; font-weight: 600; transition: opacity .2s, transform .2s; }
.btn-primary:hover { opacity: .85; transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 100px; background: transparent; color: var(--text); font-size: 14px; font-weight: 500; border: 1.5px solid var(--border); transition: border-color .2s; }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

/* TAGS */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12.5px; padding: 5px 13px; border-radius: 100px; border: 1px solid var(--border); color: var(--text); background: var(--card); font-weight: 500; transition: all .2s; }
.tag:hover { background: var(--violet); color: white; border-color: var(--violet); }

/* TIMELINE */
.tl { display: flex; flex-direction: column; margin-bottom: 52px; }
.tl-row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); transition: background .2s, padding-left .2s; border-radius: 6px; }
.tl-row:first-child { padding-top: 0; }
.tl-row:hover { background: var(--card); padding-left: 10px; }
.tl-date { font-size: 12px; color: var(--violet); font-weight: 600; padding-top: 3px; line-height: 1.4; }
.tl-org { font-size: 11px; color: var(--muted); margin-top: 3px; }
.tl-role { font-size: 15px; font-weight: 600; color: var(--heading); margin-bottom: 6px; line-height: 1.3; }
.tl-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* BLOCK TITLE */
.block-title { font-family: var(--serif); font-size: 26px; letter-spacing: -0.4px; color: var(--heading); margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

/* SKILLS */
.skills-section { margin-bottom: 32px; }
.skills-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }

/* AWARDS */
.awards-list { display: flex; flex-direction: column; }
.award-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 12px; border-bottom: 1px solid var(--border); border-radius: 8px; transition: background .2s; }
.award-row:hover { background: var(--card); }
.award-em { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.award-body strong { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 3px; }
.award-body span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* INFO GRID */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 36px; border-top: 1px solid var(--border); padding-top: 28px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--violet); }
.info-value { font-size: 14px; color: var(--heading); }
.info-value a { color: var(--violet); }
.info-value a:hover { text-decoration: underline; }



/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .display-heading { font-size: clamp(38px, 10vw, 56px); }
}
@media (max-width: 480px) { .info-grid { grid-template-columns: 1fr; } }

/* ── LIGHT MODE ───────────────────────────────────────────────── */
body.light {
  --bg:       #f5f7ff;
  --surface:  #ffffff;
  --card:     #ffffff;
  --border:   #dde3f5;
  --muted:    #6b7a9e;
  --text:     #3a4160;
  --heading:  #111827;
  --violet:   #3a5fcc;
  --teal:     #0891b2;
  --rose:     #e11d5a;
  --amber:    #d97706;
  --green:    #059669;
  --indigo:   #6366f1;
  --accent:   #3a5fcc;
}

/* Nav bg changes per mode */
body.light nav { background: rgba(245,247,255,.94); }
body.light .mobile-menu { background: var(--bg); }

/* Hero band light override */
body.light .hero-band {
  background: #ffffff;
}
/* Light mode index hero */
body.light #hero {
  background: #ffffff;
}

/* Stat cards on light index */
body.light .stat-card,
body.light .stat-sm { background: #ffffff; }

/* Quick nav cards */
body.light .qn-card { background: #ffffff; }
body.light .qn-card:hover { background: #f0f4ff; }

/* ── THEME TOGGLE BUTTON ─────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--heading);
  cursor: pointer;
  font-size: 17px;
  transition: background .2s, border-color .2s, transform .2s;
  flex-shrink: 0;
  margin-left: 8px;
  line-height: 1;
}
.theme-toggle:hover {
  border-color: var(--violet);
  background: rgba(79,124,255,.1);
  transform: rotate(15deg);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); margin-top: 80px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 40px;
  padding: 52px 0 40px;
  align-items: start;
}
.footer-logo { font-family: var(--serif); font-size: 20px; color: var(--heading); display: block; margin-bottom: 8px; }
.footer-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); margin-left: 4px; vertical-align: middle; }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.5; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--muted);
  transition: color .2s;
}
.footer-link:hover { color: var(--violet); }
.fc-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0; color: var(--violet);
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 13.5px; color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--violet); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 12px; color: var(--muted); }
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 32px; }
}
