:root {
  --bg: #0a0614;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.16);
  --text: #ebf2ff;
  --muted: #9aa7bf;
  --accent: #a78bfa;
  --accent-2: #c084fc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 12% 12%, #251742 0, transparent 40%),
    radial-gradient(circle at 90% 16%, #2e1650 0, transparent 35%),
    radial-gradient(circle at 50% 100%, #120a28 0, transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: Manrope, sans-serif;
  scroll-behavior: smooth;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.24;
}

.orb-1 {
  left: -120px;
  top: -120px;
  background: #8a63ff;
}

.orb-2 {
  right: -120px;
  bottom: -120px;
  background: #bb6dff;
}

.topbar {
  position: sticky;
  top: 14px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--panel-border);
  background: rgba(5, 8, 13, 0.65);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a,
.menu-btn {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

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

.menu-btn {
  display: none;
}

.hero {
  padding: 98px 0 70px;
}

.kicker {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  font-size: clamp(32px, 5.6vw, 64px);
  line-height: 1.04;
  margin: 12px 0 20px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: 1px solid var(--panel-border);
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04101b;
  border: 0;
}

.section {
  padding: 32px 0;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.7vw, 44px);
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
}

.cards {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.card h3 {
  margin: 8px 0 10px;
}

.card p {
  color: var(--muted);
  line-height: 1.62;
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 132, 252, 0.6);
  background: rgba(170, 122, 255, 0.12);
}

.project-card:active {
  transform: translateY(0);
}

.project-link {
  color: var(--accent);
  font-weight: 700;
}

.tag {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chips span {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 600;
}

.about {
  margin-top: 18px;
}

.link-card {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 132, 252, 0.6);
  background: rgba(170, 122, 255, 0.12);
}

.contact-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.95;
  filter: brightness(0) saturate(100%) invert(97%) sepia(7%) saturate(817%)
    hue-rotate(189deg) brightness(107%) contrast(92%);
}

.footer {
  padding: 32px 0 50px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}

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

@media (max-width: 840px) {
  .container {
    width: min(1120px, 94vw);
  }

  .topbar {
    top: 8px;
    margin-top: 8px;
    padding: 10px 12px;
  }

  .nav {
    display: none;
    position: absolute;
    right: 12px;
    top: 52px;
    flex-direction: column;
    background: rgba(14, 10, 27, 0.96);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 10px;
    min-width: 180px;
  }

  .nav.open {
    display: flex;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero {
    padding: 70px 0 42px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.08;
  }

  .lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 24px 0;
  }

  .card {
    padding: 16px;
  }

  .link-card {
    min-height: 72px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
