:root {
  --bg: #0f1720;
  --bg-accent: #132433;
  --panel: rgba(15, 23, 32, 0.72);
  --panel-strong: rgba(13, 29, 41, 0.95);
  --text: #ecf4f6;
  --muted: #a3bcc7;
  --line: rgba(171, 201, 210, 0.18);
  --brand: #7ce0bf;
  --brand-strong: #c2ff88;
  --warm: #f7b267;
  --shadow: 0 24px 80px rgba(4, 9, 14, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 224, 191, 0.14), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(247, 178, 103, 0.12), transparent 24%),
    linear-gradient(180deg, #0c131b 0%, #101a24 45%, #0c141d 100%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 14, 20, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand,
.site-nav a,
.contact-section a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.section {
  padding: 92px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
  padding-top: 72px;
}

.hero-copy {
  max-width: 860px;
}

.hero-copy h1,
.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.15rem, 4.35vw, 3.7rem);
  max-width: 18ch;
  line-height: 1.03;
}

.hero-text,
.panel p,
.skill-card p,
.project-card p,
.timeline-item p,
.contact-section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-section p a {
  color: var(--text);
}

.contact-section p a:hover,
.contact-section p a:focus-visible {
  color: var(--brand-strong);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #082116;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card,
.panel,
.skill-card,
.project-card,
.timeline-item,
.contact-section {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  align-self: start;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(124, 224, 191, 0.08), transparent 35%),
    var(--panel-strong);
}

.hero-card-header,
.hero-metrics {
  display: flex;
  gap: 16px;
}

.hero-card-header {
  justify-content: space-between;
  align-items: flex-start;
}

.hero-card-header p,
.hero-card-header span,
.hero-metrics span {
  margin: 0;
  color: var(--muted);
}

.hero-card-header h2 {
  margin: 8px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.focus-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.focus-pills span {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.92rem;
}

.hero-metrics strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  margin-bottom: 4px;
}

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

.hero-metrics article {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.split-section,
.section-heading,
.about-grid,
.skills-grid,
.project-grid,
.timeline,
.contact-section {
  display: grid;
  gap: 24px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 8px;
}

.section-heading h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

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

.panel,
.skill-card,
.project-card,
.timeline-item {
  padding: 28px;
  border-radius: 24px;
}

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

.skill-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.skill-card li,
.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--brand-strong);
  font-size: 0.92rem;
}

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

.project-card {
  min-height: 240px;
  background:
    linear-gradient(180deg, rgba(247, 178, 103, 0.06), transparent 25%),
    var(--panel);
}

.project-card h3,
.skill-card h3,
.timeline-item h3 {
  margin: 18px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.timeline-item {
  grid-template-columns: 92px 1fr;
  display: grid;
  align-items: start;
}

.timeline-year {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(124, 224, 191, 0.09);
  color: var(--brand-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-section {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 36px;
  margin-top: 8px;
  border-radius: 30px;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-copy h1 {
    font-size: clamp(2.05rem, 4.8vw, 3.2rem);
    max-width: 16ch;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 100%);
  }

  .topbar {
    align-items: flex-start;
    border-radius: 28px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.is-open {
    display: flex;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .section {
    padding-top: 72px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 5.8vw, 2.4rem);
    max-width: 14ch;
    line-height: 1.08;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 28px;
  }
}
