:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --card: #020617;
  --accent: #38bdf8;
  --accent2: #a855f7;
  --accent-soft: rgba(56,189,248,0.12);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148,163,184,0.35);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.8);
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #000 55%, #020617 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background blobs and noise */

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.55;
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.bg-orb--one {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, #38bdf8 0, transparent 60%);
}

.bg-orb--two {
  width: 380px;
  height: 380px;
  top: 140px;
  right: -120px;
  background: radial-gradient(circle, #a855f7 0, transparent 65%);
}

.bg-orb--three {
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: 10%;
  background: radial-gradient(circle, #22c55e 0, transparent 70%);
  opacity: 0.35;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.65'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.page {
  min-height: 100vh;
  padding: 20px 16px 60px;
  display: flex;
  justify-content: center;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
}

/* Top nav */

.nav-shell {
  position: sticky;
  top: 8px;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.86));
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: conic-gradient(from 210deg, #38bdf8, #a855f7, #22c55e, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-mark::before {
  content: "S";
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #0b1120;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 12px rgba(15, 23, 42, 0.9);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
}

.logo-text-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}

.nav-links a:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.9));
}

.nav-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #e0f2fe;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.96));
}

.nav-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.95);
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .nav-links {
    order: 2;
  }

  .nav-pill {
    order: 3;
  }
}

main {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: stretch;
  position: relative;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-left {
  padding: 22px 22px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: fadeUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

.hero-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 60%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-kicker {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
}

.hero-kicker span {
  font-size: 11px;
}

.hero-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(28px, 3.3vw, 34px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-title-highlight {
  background: linear-gradient(120deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-body {
  font-size: 14px;
  color: #e5e7eb;
  margin-bottom: 18px;
  max-width: 40rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.hero-badge {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.94);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-primary,
.btn-ghost {
  font-size: 13px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.16s ease-out;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(120deg, #38bdf8, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 55px rgba(37, 99, 235, 0.85);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.96);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #e0f2fe;
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.hero-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-right {
  padding: 18px 18px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top right, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.95));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp 0.7s ease-out forwards;
  opacity: 0;
  transform: translateY(14px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 1);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.96));
  font-size: 11px;
}

.stat-label {
  color: var(--text-muted);
  margin-bottom: 3px;
}

.stat-value {
  font-size: 13px;
  font-weight: 600;
}

.hero-pill-highlight {
  font-size: 12px;
  padding: 9px 10px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(8, 47, 73, 0.96));
  color: #e0f2fe;
}

.hero-pill-highlight span {
  color: #f9fafb;
}

/* Sections */

section {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 1));
  box-shadow: var(--shadow-soft);
  padding: 20px 20px 22px;
  position: relative;
  overflow: hidden;
}

section + section {
  margin-top: 6px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 22rem;
  text-align: right;
}

@media (max-width: 720px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-subtitle {
    text-align: left;
  }
}

/* Projects */

.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.project-card {
  padding: 12px 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 1);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), #020617);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.18s ease-out;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.6);
}

.project-card:hover::before {
  opacity: 1;
}

.project-tagline {
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}

.project-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.project-desc {
  font-size: 13px;
  color: #e5e7eb;
  margin-bottom: 9px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.project-tag {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 1);
  color: var(--text-muted);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.project-links a {
  text-decoration: none;
  color: var(--accent);
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.96);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.project-links a:hover {
  border-color: rgba(56, 189, 248, 0.9);
  background: rgba(15, 23, 42, 1);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.4fr);
  gap: 18px;
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.about-text {
  font-size: 14px;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-text p {
  margin-bottom: 2px;
}

.about-points {
  margin-top: 6px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.about-aside {
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 1);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-aside-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 1);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text-muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 18px;
  font-size: 14px;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-main p {
  margin-bottom: 8px;
  color: #e5e7eb;
}

.contact-details {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Footer */

footer {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* Animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
