:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1a2b;
  --panel: rgba(15, 28, 46, 0.78);
  --panel-strong: rgba(19, 36, 58, 0.94);
  --text: #eef6ff;
  --muted: #a8b7ca;
  --subtle: #71839b;
  --line: rgba(166, 190, 220, 0.18);
  --brand: #59d8ff;
  --brand-2: #7c5cff;
  --accent: #9df2c9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(89, 216, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(124, 92, 255, 0.24), transparent 30rem),
    linear-gradient(135deg, #07111f 0%, #091525 44%, #050914 100%);
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 70%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 72px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.18);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #06111f;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 32px rgba(89, 216, 255, 0.32);
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-header nav a:hover {
  color: var(--text);
}

.section {
  padding: 72px 0;
}

.section-grid,
.impact-grid,
.skills-grid {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  min-height: 540px;
  padding: 24px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(2.15rem, 4.2vw, 3.85rem);
  line-height: 1.18;
  letter-spacing: -0.032em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.hero-lede,
.section-lede,
.cta-section p,
article p,
.timeline-item p,
.skills-grid p,
.project-list p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-lede {
  max-width: 740px;
  margin-bottom: 34px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #04101d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 18px 60px rgba(89, 216, 255, 0.22);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.hero-card,
.impact-grid article,
.skills-grid div,
.timeline-card,
.project-list article,
.cta-section {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -28% 20%;
  height: 220px;
  background: radial-gradient(circle, rgba(89, 216, 255, 0.26), transparent 68%);
}

.card-label {
  color: var(--subtle);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  gap: 18px;
  margin: 0;
}

.metrics div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.metrics dt {
  color: var(--brand);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.impact-grid,
.skills-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-grid article,
.skills-grid div {
  padding: 24px;
  border-radius: 24px;
}

.impact-grid article:nth-child(1),
.impact-grid article:nth-child(4) {
  background: var(--panel-strong);
}

.experience-section {
  position: relative;
}

.timeline-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.timeline-item {
  padding: 30px;
  background: rgba(13, 26, 43, 0.94);
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
  border-radius: 24px;
}

.project-list span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #06111f;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 900;
}

.cta-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 64px;
  padding: 34px;
  border-radius: var(--radius);
}

.cta-section h2 {
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1.16;
}

@media (max-width: 980px) {
  .hero,
  .cta-section,
  .timeline-card {
    grid-template-columns: 1fr;
  }

  .impact-grid,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
    margin-bottom: 40px;
  }

  .site-header nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .section {
    padding: 52px 0;
  }

  .impact-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-list article {
    grid-template-columns: 1fr;
  }

  .cta-actions,
  .button {
    width: 100%;
  }
}

li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.metrics dd {
  line-height: 1.7;
}
