:root {
  --bg: #0b1020;
  --bg-soft: #121932;
  --panel: rgba(18, 25, 50, 0.82);
  --panel-strong: #171f3d;
  --text: #edf2ff;
  --muted: #a7b2d1;
  --accent: #73e0c2;
  --accent-strong: #4fb89c;
  --border: rgba(167, 178, 209, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(115, 224, 194, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(90, 126, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #0b1020 0%, #090d18 100%);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.page-shell {
  overflow: clip;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(11, 16, 32, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(115, 224, 194, 0.2), rgba(90, 126, 255, 0.28));
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.25s ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.5rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  padding-top: 7rem;
  min-height: calc(100vh - 4.75rem);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.timeline-item h3,
.project-card h3,
.skill-card h3 {
  margin: 0;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 5.4rem);
  max-width: 10ch;
}

.hero-title {
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: #d7def4;
  font-weight: 600;
}

.hero-tagline {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.button-primary {
  color: #06110d;
  background: linear-gradient(135deg, var(--accent), #9ef7df);
  box-shadow: 0 12px 28px rgba(115, 224, 194, 0.25);
}

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

.panel-card,
.about-card,
.skill-card,
.project-card,
.contact-card,
.timeline {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-card {
  padding: 1.75rem;
}

.panel-label {
  margin: 0 0 1rem;
  color: #d7def4;
  font-weight: 700;
}

.focus-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-list li + li {
  margin-top: 0.8rem;
}

.focus-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted);
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(115, 224, 194, 0.08);
}

.section-heading {
  max-width: 42rem;
}

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

.about-grid,
.skills-grid,
.projects-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

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

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

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

.about-card,
.skill-card,
.project-card,
.contact-card {
  padding: 1.7rem;
}

.about-card p,
.project-card p,
.contact-copy {
  margin: 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.tag-list li {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dfe6fb;
  font-size: 0.95rem;
}

.project-card {
  position: relative;
  min-height: 16rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(115, 224, 194, 0.32);
  background: rgba(24, 33, 66, 0.95);
}

.project-index {
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-card h3 {
  margin-bottom: 0.8rem;
}

.timeline {
  position: relative;
  margin-top: 2rem;
  padding: 1.2rem 1.4rem 1.2rem 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(115, 224, 194, 0.12));
}

.timeline-item {
  position: relative;
  padding: 1rem 0;
}

.timeline-item + .timeline-item {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-dot {
  position: absolute;
  left: -1.9rem;
  top: 1.45rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(115, 224, 194, 0.08);
}

.contact-card {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.contact-links a {
  color: #dfe6fb;
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
}

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

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

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

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

@media (max-width: 760px) {
  .section {
    padding: 4.5rem 0;
  }

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

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.9rem;
    padding: 1.1rem;
    background: rgba(11, 16, 32, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero {
    padding-top: 5rem;
    min-height: auto;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .timeline {
    padding-left: 2.5rem;
  }

  .timeline::before {
    left: 1.2rem;
  }

  .timeline-dot {
    left: -1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
