:root {
  color-scheme: dark;
  --bg: #080b12;
  --surface: #101827;
  --surface-strong: #172338;
  --text: #f4f7fb;
  --muted: #a9b6c8;
  --line: #25334a;
  --accent: #2dd4bf;
  --accent-strong: #38bdf8;
  --danger: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.16), transparent 34rem),
    linear-gradient(135deg, #080b12 0%, #0e1624 48%, #08111b 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 18, 0.84);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, 0.38);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(56, 189, 248, 0.14));
  border-radius: 0.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23rem;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 4.6rem);
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1.25rem, 5vw, 5rem);
}

.hero-content {
  max-width: 57rem;
}

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

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

h1 {
  max-width: 58rem;
  margin-bottom: 1.35rem;
  font-size: clamp(2.6rem, 6vw, 5.9rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.hero-text {
  max-width: 45rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.button {
  min-height: 3rem;
  padding: 0.78rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

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

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

.profile-panel {
  display: grid;
  gap: 1.15rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  background: rgba(16, 24, 39, 0.72);
  box-shadow: var(--shadow);
}

.avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
}

.profile-panel h2 {
  margin-bottom: 0.2rem;
  font-size: 1.45rem;
}

.profile-panel p,
.profile-panel dd,
.section p,
.project p,
.contact p {
  color: var(--muted);
}

.quick-facts {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.quick-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.quick-facts dd {
  margin: 0;
  text-align: right;
  font-weight: 750;
}

.section,
.contact {
  padding: clamp(3.4rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 clamp(1.25rem, 5vw, 5rem) clamp(3.4rem, 7vw, 5rem);
}

.metrics-strip article {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(16, 24, 39, 0.72);
}

.metrics-strip strong {
  color: var(--accent);
  font-size: 1.75rem;
  line-height: 1;
}

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

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 72rem;
}

.two-column p {
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.035);
}

.muted {
  background: rgba(255, 255, 255, 0.035);
}

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

.skills-grid article,
.project {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(8, 11, 18, 0.42);
}

.skills-grid article {
  min-height: 12rem;
  padding: 1.1rem;
}

.project-list {
  display: grid;
  gap: 0.85rem;
  max-width: 66rem;
}

.project {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem;
}

.project span {
  color: var(--danger);
  font-size: 1.5rem;
  font-weight: 900;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.project-tags small {
  padding: 0.26rem 0.5rem;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 0.45rem;
  background: rgba(45, 212, 191, 0.08);
  color: #c7f9f1;
  font-size: 0.76rem;
  font-weight: 750;
}

.project-link {
  display: inline-flex;
  margin-top: 0.9rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.project-link:hover {
  color: var(--accent-strong);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(249, 115, 22, 0.1));
}

.demo-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.demo-callout > div {
  max-width: 56rem;
}

.contact > div:first-child {
  max-width: 48rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1.25rem, 5vw, 5rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero,
  .two-column,
  .skills-grid,
  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .profile-panel {
    max-width: 28rem;
  }

  .contact,
  .demo-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .button {
    text-align: center;
  }

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

  footer {
    flex-direction: column;
  }
}
