:root {
  --bg-0: #070914;
  --bg-1: #0f1630;
  --surface: rgba(16, 20, 39, 0.75);
  --surface-strong: rgba(10, 14, 29, 0.9);
  --text-main: #f3f6ff;
  --text-muted: #b2bddb;
  --line: rgba(191, 204, 255, 0.22);
  --accent: #77a8ff;
  --accent-2: #a57cff;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1200px 700px at 15% -5%, rgba(105, 132, 255, 0.18), transparent 65%),
    radial-gradient(1000px 650px at 85% 10%, rgba(135, 95, 255, 0.16), transparent 60%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 55%, #170a2f 100%);
  line-height: 1.65;
}

.bg-orb {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  z-index: -1;
}

.orb-a {
  left: -12rem;
  top: -10rem;
  background: rgba(100, 153, 255, 0.16);
}

.orb-b {
  right: -10rem;
  top: 20rem;
  background: rgba(155, 95, 255, 0.13);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1100px, 92vw);
  margin: 1.1rem auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 11, 24, 0.72);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  border: 1px solid rgba(191, 204, 255, 0.35);
  background:
    linear-gradient(150deg, rgba(132, 169, 255, 0.38), rgba(166, 120, 255, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(70, 89, 168, 0.35);
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(191, 204, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 30px rgba(96, 122, 230, 0.45);
  outline: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  transition: color 220ms ease, background 220ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--text-main);
  background: rgba(130, 156, 255, 0.18);
  outline: none;
}

.section {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 6.5rem 0;
}

.hero {
  padding-top: 8rem;
  min-height: 82vh;
  display: grid;
  align-content: center;
  gap: 1.15rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9db1ff;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  margin: 0;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  color: var(--text-main);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(125deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 34px rgba(106, 140, 255, 0.28);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline {
  border: 1px solid rgba(191, 204, 255, 0.35);
  background:
    linear-gradient(150deg, rgba(132, 169, 255, 0.38), rgba(166, 120, 255, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(70, 89, 168, 0.35);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: rgba(191, 204, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 30px rgba(96, 122, 230, 0.45);
  outline: none;
}

.section-head {
  margin-bottom: 2rem;
  display: grid;
  gap: 0.35rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card,
.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(5px);
}

.project-card {
  padding: 1.25rem;
  display: grid;
  gap: 0.7rem;
}

.project-card p {
  margin: 0;
  color: var(--text-muted);
}

.project-card a {
  justify-self: start;
  text-decoration: none;
  color: #bfd0ff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(191, 204, 255, 0.22);
  border-radius: 999px;
  background: rgba(115, 141, 241, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.project-card a::after {
  content: "->";
  font-size: 0.82rem;
  opacity: 0.82;
  transform: translateX(0);
  transition: transform 180ms ease, opacity 180ms ease;
}

.project-card a:hover,
.project-card a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(191, 204, 255, 0.48);
  background: rgba(124, 154, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 8px 24px rgba(76, 106, 216, 0.28);
  outline: none;
}

.project-card a:hover::after,
.project-card a:focus-visible::after {
  opacity: 1;
  transform: translateX(3px);
}

.about {
  padding-bottom: 8rem;
}

.about-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--surface-strong);
}

.about-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 70ch;
}

.site-footer {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
  color: #8f9cca;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .site-header {
    padding: 0.7rem;
  }

  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding: 0.48rem 0.7rem;
    font-size: 0.9rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 75vh;
    padding-top: 6.2rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    width: 94vw;
  }

  .btn-outline {
    display: none;
  }

  .section {
    width: 94vw;
    padding: 5.2rem 0;
  }
}