:root {
  --bg: #0b0f17;
  --bg-2: #121827;
  --text: #f5f7ff;
  --muted: #b7bfdc;
  --accent: #5f8dff;
  --accent-2: #18e0c4;
  --card: rgba(15, 20, 33, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 25px 60px rgba(4, 6, 14, 0.6);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1c2433 0%, var(--bg) 55%, #07090f 100%);
  color: var(--text);
  min-height: 100vh;
}

.ambient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(95, 141, 255, 0.22), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(24, 224, 196, 0.18), transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(95, 141, 255, 0.12), transparent 50%),
    repeating-linear-gradient(35deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 14px);
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 23, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.logo-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-role {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #3b6bff);
  color: #fff;
  box-shadow: 0 18px 30px rgba(95, 141, 255, 0.35);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 70px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding: 86px 0 40px;
}

.hero h1 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  line-height: 1.05;
  margin: 12px 0 18px;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 500;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px;
}

.panel-card.subtle {
  background: rgba(255, 255, 255, 0.03);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(24, 224, 196, 0.2);
  color: var(--accent-2);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.panel-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-value {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  margin: 0;
}

.metric-label {
  margin: 6px 0 0;
  color: var(--muted);
}

.mini-chart {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 18px;
  height: 110px;
}

.mini-chart span {
  flex: 1;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(95, 141, 255, 0.9), rgba(95, 141, 255, 0.15));
}

.panel-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-row span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(95, 141, 255, 0.16);
  border: 1px solid rgba(95, 141, 255, 0.3);
  font-size: 0.9rem;
}

.sparkline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 6px;
  height: 70px;
  margin-bottom: 10px;
}

.sparkline span {
  background: linear-gradient(180deg, rgba(24, 224, 196, 0.9), rgba(24, 224, 196, 0.2));
  border-radius: 8px;
}

.sparkline span:nth-child(1) { height: 30%; }
.sparkline span:nth-child(2) { height: 55%; }
.sparkline span:nth-child(3) { height: 45%; }
.sparkline span:nth-child(4) { height: 75%; }
.sparkline span:nth-child(5) { height: 60%; }
.sparkline span:nth-child(6) { height: 85%; }

.panel-foot {
  color: var(--muted);
  margin: 0;
}

.section {
  padding: 60px 0 20px;
}

.section-head {
  max-width: 720px;
}

.section-head h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin: 10px 0 12px;
}

.section-head p {
  color: var(--muted);
}

.highlight-grid,
.skills-grid,
.projects-grid,
.edu-grid {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin-top: 0;
}

.banner-card {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(24, 224, 196, 0.1);
  border: 1px solid rgba(24, 224, 196, 0.28);
  color: var(--text);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(95, 141, 255, 0.16);
  border: 1px solid rgba(95, 141, 255, 0.35);
  font-size: 0.9rem;
  font-weight: 600;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  border-color: transparent;
}

.project-card {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.project-card.hidden {
  opacity: 0.2;
  transform: scale(0.98);
  pointer-events: none;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--accent-2);
  font-weight: 600;
}

.timeline {
  margin-top: 30px;
  display: grid;
  gap: 20px;
}

.timeline-card {
  border-left: 3px solid rgba(95, 141, 255, 0.6);
  padding-left: 18px;
}

.timeline-title h3 {
  margin: 0 0 6px;
}

.timeline-title p {
  color: var(--muted);
  margin: 0 0 12px;
}

.timeline-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.cta-card {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(95, 141, 255, 0.95), rgba(24, 224, 196, 0.95));
  color: #0b0f17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-card .btn.primary {
  background: #0b0f17;
  color: #fff;
  box-shadow: none;
}

.cta-card .btn.ghost {
  border-color: rgba(11, 15, 23, 0.5);
  color: #0b0f17;
}

.site-footer {
  text-align: center;
  padding: 30px 20px 60px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .panel-metrics {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    padding-top: 60px;
  }

  .cta-card {
    padding: 24px;
  }
}
