:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: rgba(11, 22, 38, 0.75);
  --panel: rgba(15, 27, 48, 0.78);
  --panel-border: rgba(170, 206, 255, 0.14);
  --text: #eef4ff;
  --muted: #a7b4c9;
  --primary: #7cf7d4;
  --primary-strong: #39d0ff;
  --accent: #ffb86b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(57, 208, 255, 0.15), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(124, 247, 212, 0.12), transparent 20%),
    linear-gradient(180deg, #050b14 0%, #091222 45%, #06101c 100%);
  color: var(--text);
}

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.grid-overlay,
.orb {
  position: absolute;
  pointer-events: none;
}

.grid-overlay {
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 95%);
}

.orb {
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.45;
}

.orb-one {
  width: 30rem;
  height: 30rem;
  background: rgba(57, 208, 255, 0.15);
  top: -10rem;
  right: -8rem;
}

.orb-two {
  width: 22rem;
  height: 22rem;
  background: rgba(124, 247, 212, 0.14);
  left: -8rem;
  top: 32rem;
}

.topbar,
.hero,
.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0 0.6rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 247, 212, 0.2), rgba(57, 208, 255, 0.2));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand strong,
.section-heading h2,
.hero-copy h1,
.contact-card h2,
.hero-card h2,
.project-card h3,
.panel h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 0.1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--muted);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 1.5rem;
  padding: 6rem 0 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--primary);
}

.lead,
.panel p,
.project-card p,
.hero-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #03111d;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-stats li,
.hero-card,
.panel,
.project-card,
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stats li {
  padding: 1rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  font-family: "Space Grotesk", sans-serif;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.profile-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(124, 247, 212, 0.12), rgba(255, 255, 255, 0.02));
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.card-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.profile-info h2 {
  margin: 0;
  font-size: 1.7rem;
}

.profile-info p {
  margin-bottom: 0;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.profile-tags span,
.skill-chip {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dce7fb;
}

.section {
  padding: 3.4rem 0 0;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2,
.contact-card h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.about-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

.about-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.panel,
.project-card,
.contact-card {
  padding: 1.35rem;
}

.panel-accent {
  background: linear-gradient(180deg, rgba(124, 247, 212, 0.08), rgba(57, 208, 255, 0.05));
}

.panel ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

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

.project-card {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.project-index,
.project-type {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 1.15rem 0 0.6rem;
  font-size: 1.4rem;
}

.project-card a {
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 184, 107, 0.11), rgba(57, 208, 255, 0.08));
}

.contact-card p:last-child {
  max-width: 60ch;
}

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

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

@media (max-width: 900px) {
  .hero,
  .about-grid,
  .project-grid,
  .contact-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding-top: 4rem;
  }

  .topbar {
    position: static;
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero,
  .section {
    width: min(1120px, calc(100% - 1.2rem));
  }

  .nav-links {
    gap: 0.9rem;
    font-size: 0.95rem;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

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