:root {
  --bg: #020617;
  --bg-soft: #07111f;
  --panel: rgba(8, 18, 35, 0.82);
  --panel-strong: #0a1629;
  --border: rgba(96, 165, 250, 0.18);
  --border-strong: rgba(96, 165, 250, 0.32);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.22), transparent 22%),
    linear-gradient(160deg, #01040b 0%, #020617 48%, #040b14 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 88%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 40px;
}

.hero {
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.06));
  border: 1px solid var(--border-strong);
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  padding-top: 56px;
}

.hero-copy,
.hero-panel,
.section-panel,
.feature-card,
.project-card {
  position: relative;
  overflow: hidden;
}

.hero-copy {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8, 18, 35, 0.88), rgba(4, 12, 24, 0.88));
  box-shadow: var(--shadow);
}

.hero-copy::after,
.hero-panel::after,
.section-panel::after,
.feature-card::after,
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.08), transparent 32%, transparent 65%, rgba(56, 189, 248, 0.05));
  pointer-events: none;
}

.eyebrow,
.section-tag,
.panel-title,
.project-kicker,
.highlight-label {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
}

.lead {
  max-width: 60ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #00111f;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.32);
}

.btn.outline {
  border-color: var(--border-strong);
  background: rgba(8, 18, 35, 0.6);
  color: var(--text);
  box-shadow: none;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.highlight-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(3, 10, 22, 0.72);
}

.highlight-label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.highlight-card strong {
  display: block;
  line-height: 1.45;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8, 18, 35, 0.84), rgba(4, 11, 23, 0.9));
  box-shadow: var(--shadow);
}

.panel-title {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stack-list li,
.project-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--text);
}

.code-card code {
  display: block;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.9);
  color: #7dd3fc;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.9;
}

.section {
  padding: 24px 0;
}

.section-header {
  margin-bottom: 22px;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.section-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(7, 15, 30, 0.84), rgba(3, 9, 19, 0.9));
  box-shadow: var(--shadow);
}

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

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

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

.feature-card {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 18, 36, 0.86), rgba(4, 10, 21, 0.9));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.52);
}

.feature-card h3,
.project-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.project-card {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(10, 22, 41, 0.92), rgba(4, 10, 20, 0.94));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-copy {
  max-width: 58ch;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.72);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--border-strong);
}

footer {
  padding: 24px 0 8px;
  text-align: center;
  color: var(--muted);
}

.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,
  .expertise-grid,
  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .project-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    border-radius: 26px;
    padding: 18px;
  }

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

  .hero {
    padding-top: 12px;
  }

  .hero-grid {
    padding-top: 30px;
  }

  .hero-copy,
  .panel-card,
  .section-panel,
  .feature-card,
  .project-card {
    padding: 22px;
  }

  .hero-buttons,
  .contact-links {
    flex-direction: column;
  }

  .btn,
  .contact-link {
    width: 100%;
  }
}
