:root {
  --bg: #0b1020;
  --panel: #121933;
  --panel-2: #0f1630;
  --text: #edf2ff;
  --muted: #a8b4d8;
  --line: rgba(255,255,255,0.08);
  --accent: #7c9cff;
  --accent-2: #5ce1e6;
  --shadow: 0 20px 60px rgba(0,0,0,0.25);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124,156,255,0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(92,225,230,0.12), transparent 25%),
    linear-gradient(180deg, #08101f 0%, #0b1020 100%);
}

a { color: inherit; text-decoration: none; }
p { line-height: 1.7; }
.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }
.section { padding: 5.5rem 0; }
.section.alt { background: rgba(255,255,255,0.02); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-heading h2, .hero h1, .contact-panel h2 { margin: 0 0 1rem; line-height: 1.1; }
.section-heading { margin-bottom: 2rem; }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(8, 12, 24, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
}
.brand { font-weight: 800; font-size: 1.05rem; }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }

.hero { padding: 6rem 0 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); max-width: 12ch; }
.hero-copy { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #071221; }
.btn-secondary { background: rgba(255,255,255,0.03); }
.highlights {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.1rem;
  color: var(--muted);
}
.hero-card { display: grid; gap: 1rem; }
.stat-card p { color: var(--muted); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-grid div {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}
.stat-grid span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.stat-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.about-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.skills-grid, .project-grid, .edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.skills-grid h3, .project-card h3, .timeline-item h3, .edu-grid h3, .publication-card h3 { margin-top: 0; }
.timeline { display: grid; gap: 1.25rem; }
.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.timeline-item ul { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.timeline-item li { margin-bottom: 0.75rem; }
.tag {
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.project-card a { color: var(--accent); font-weight: 700; }
.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.contact-links { display: grid; gap: 0.9rem; }
.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-panel,
  .contact-panel,
  .skills-grid,
  .project-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .nav { display: none; }
  .hero { padding-top: 4rem; }
  .timeline-top { flex-direction: column; }
}
