:root {
  color-scheme: dark;
  --ink: #f4f7fb;
  --muted: #9ca7b8;
  --soft: #c8d0dc;
  --surface: rgba(8, 12, 18, 0.58);
  --surface-strong: rgba(13, 18, 27, 0.78);
  --line: rgba(244, 247, 251, 0.12);
  --cyan: #6ee7f9;
  --green: #86efac;
  --coral: #fb7185;
  --gold: #fbbf24;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #03060a;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 6, 10, 0.2), rgba(3, 6, 10, 0.94) 72%),
    radial-gradient(circle at 72% 16%, rgba(110, 231, 249, 0.14), transparent 32%),
    radial-gradient(circle at 18% 38%, rgba(251, 113, 133, 0.11), transparent 28%),
    #03060a;
  content: "";
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(110, 231, 249, 0.58);
  outline-offset: 4px;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  width: min(1080px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-actions,
.tag-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--soft);
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
}

.nav-links {
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 8, 13, 0.56);
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.hero {
  display: grid;
  min-height: calc(100vh - 80px);
  align-items: center;
  padding: 86px 0 120px;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3.6rem, 8.5vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 760;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

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

.button.primary {
  border-color: rgba(110, 231, 249, 0.5);
  background: rgba(110, 231, 249, 0.12);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(110, 231, 249, 0.11);
}

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

.section {
  padding: 94px 0;
  scroll-margin-top: 90px;
}

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

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

.intro-grid article,
.project-card,
.skills-list > div,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.intro-grid article {
  padding: 24px;
}

.metric {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 2.35rem;
  font-weight: 790;
}

.intro-grid p,
.project-card p,
.skills-list p,
.contact-section p {
  color: var(--muted);
  line-height: 1.72;
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

.project-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.project-card.featured {
  background:
    linear-gradient(145deg, rgba(110, 231, 249, 0.16), rgba(251, 113, 133, 0.08)),
    var(--surface-strong);
}

.project-type {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 720;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
}

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

.skills-list > div {
  padding: 24px;
}

.contact-section {
  margin: 80px 0 44px;
  padding: 48px;
  background:
    linear-gradient(145deg, rgba(134, 239, 172, 0.12), rgba(110, 231, 249, 0.1)),
    var(--surface-strong);
}

.contact-section h2 {
  max-width: 820px;
}

.contact-section p {
  max-width: 650px;
}

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

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

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

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .intro-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 24px, 1080px);
  }

  .nav {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
    width: min(100% - 24px, 1080px);
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.6rem);
  }

  .section {
    padding: 64px 0;
  }

  .project-card {
    min-height: 260px;
  }

  .contact-section {
    padding: 30px 22px;
  }
}
