:root {
  --bg: #05070c;
  --bg-alt: #0b1420;
  --ink: #e6f0ff;
  --muted: #a2b4c9;
  --accent: #2ee6a6;
  --accent-strong: #22c6ff;
  --warm: #f2a457;
  --card: #0b1320;
  --border: rgba(46, 230, 166, 0.2);
  --shadow: rgba(4, 6, 12, 0.8);
  --grid: rgba(46, 230, 166, 0.08);
  --glow: rgba(46, 230, 166, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, #101a2a 0%, #0a101b 40%, var(--bg) 100%),
    linear-gradient(160deg, var(--bg), var(--bg-alt));
  color-scheme: dark;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

h1,
h2 {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--ink);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  opacity: 0.65;
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.shape-one {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(46, 230, 166, 0.45),
    transparent 70%
  );
  animation: float 14s ease-in-out infinite;
}

.shape-two {
  width: 520px;
  height: 520px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(34, 198, 255, 0.4),
    transparent 70%
  );
  animation: float 18s ease-in-out infinite reverse;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px 80px;
}

.hero {
  max-width: 640px;
  margin-bottom: 48px;
  animation: rise 0.6s ease-out both;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 230, 166, 0.16);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(34, 198, 255, 0.25);
}

.project-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
  background: linear-gradient(160deg, #0f1a2c, var(--card));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 20px 40px -26px var(--shadow),
    0 0 24px -18px var(--glow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: rise 0.6s ease-out both;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 48px -26px var(--shadow),
    0 0 32px -12px var(--glow);
  border-color: rgba(46, 230, 166, 0.5);
}

.project-card:nth-child(1) {
  animation-delay: 0.08s;
}

.project-card:nth-child(2) {
  animation-delay: 0.16s;
}

.project-card:nth-child(3) {
  animation-delay: 0.24s;
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-tagline {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.project-cli {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-weight: 600;
  color: var(--accent-strong);
  background: rgba(34, 198, 255, 0.16);
  padding: 6px 10px;
  border-radius: 8px;
}

.project-desc {
  margin: 0;
  color: var(--muted);
}

.footer {
  margin-top: 52px;
  font-size: 14px;
  color: var(--muted);
}

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

.footer a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.footer-text {
  padding-left: 2px;
}

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

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-12px, 16px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@media (max-width: 720px) {
  .page {
    padding: 64px 20px 72px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero,
  .project-card,
  .bg-shape {
    animation: none;
  }

  .project-card {
    transition: none;
  }
}
