:root {
  --bg: #07090d;
  --bg-soft: #0c1017;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.075);
  --text: #f4f7fb;
  --muted: #99a3b2;
  --accent: #76a9ff;
  --success: #90d3a4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1120px;
  --transition: 280ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(118, 169, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #0a0d14 0%, #07090d 55%, #07090d 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.5);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(7, 9, 13, 0.82);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hero {
  padding: 7.5rem 0 4rem;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 169, 255, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: var(--shadow);
  padding: 5.4rem 1.5rem 2.5rem;
  text-align: center;
  isolation: isolate;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: auto 50% -100px;
  transform: translateX(-50%);
  width: 580px;
  height: 220px;
  background: radial-gradient(circle, rgba(118, 169, 255, 0.09), transparent 68%);
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.15rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  max-width: 11ch;
  margin: 0 auto 1.1rem;
}

.hero p {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  max-width: 720px;
  margin: 0 auto;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  min-height: 48px;
  padding: 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

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

.btn-primary {
  background: linear-gradient(180deg, #7bb0ff 0%, #6297ed 100%);
  border-color: transparent;
  color: #07111f;
  box-shadow: 0 14px 28px rgba(118, 169, 255, 0.25);
  font-weight: 700;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
}

.hero-strip {
  margin-top: 2.8rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-strip span strong {
  color: var(--text);
  font-weight: 600;
}

section {
  padding: 2rem 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: -0.045em;
}

.section-heading p {
  color: var(--muted);
  max-width: 640px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.project-card {
  grid-column: span 6;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(118, 169, 255, 0.24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.project-cover {
  aspect-ratio: 16 / 10;
  padding: 1rem;
  display: flex;
  align-items: end;
  background:
    radial-gradient(circle at top right, rgba(118, 169, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #101523 0%, #0c1120 55%, #090d17 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  font-size: 0.82rem;
  color: #dce7ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.project-body {
  padding: 1.25rem;
}

.project-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.project-title {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.project-status {
  color: var(--success);
  font-size: 0.88rem;
  white-space: nowrap;
}

.project-description {
  color: var(--muted);
  margin-bottom: 1rem;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.tags li {
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f3;
  font-size: 0.82rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.project-links a {
  color: var(--text);
  opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
}

.project-links a:hover {
  opacity: 1;
  transform: translateX(2px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: start;
}

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  padding: 1.35rem;
}

.panel h3 {
  font-size: 1.08rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.panel p,
.panel li {
  color: var(--muted);
}

.stack-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stack-list li {
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #e2e8f3;
  font-size: 0.88rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
}

.contact-links a {
  padding: 0.82rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe4f3;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.contact-links a:hover {
  transform: translateX(4px);
  border-color: rgba(118, 169, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

.site-footer {
  padding: 3rem 0 4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

@media (max-width: 900px) {
  .project-card {
    grid-column: span 12;
  }

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

  .section-heading {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 700px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 0.9rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-shell {
    padding: 4rem 1rem 2.2rem;
    text-align: left;
  }

  .hero h1,
  .hero p {
    margin-left: 0;
  }

  .hero-actions,
  .hero-strip {
    justify-content: start;
  }
}
