@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #eef2f6;
  --bg-alt: #dde7f2;
  --ink: #0b1424;
  --muted: #4b5768;
  --accent: #18c6d5;
  --accent-dark: #0c8ea0;
  --accent-warm: #ff8a3d;
  --card: rgba(255, 255, 255, 0.78);
  --card-dark: rgba(9, 20, 36, 0.8);
  --shadow: 0 28px 70px rgba(10, 24, 44, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffffff 0%, transparent 60%),
    radial-gradient(circle at 75% 18%, #d4f2f6 0%, transparent 55%),
    linear-gradient(160deg, var(--bg), var(--bg-alt));
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 96px;
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: -200px 0 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(12, 142, 160, 0.08) 0,
    rgba(12, 142, 160, 0.08) 1px,
    transparent 1px,
    transparent 80px
  );
  opacity: 0.35;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px 0;
  position: relative;
  z-index: 2;
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid rgba(12, 142, 160, 0.6);
  border-radius: 14px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(9, 20, 36, 0.85);
  color: #e9f9ff;
  box-shadow: 0 0 18px rgba(24, 198, 213, 0.6);
  animation: pulseGlow 3.5s ease-in-out infinite;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero {
  padding: 0 48px 40px;
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 198, 213, 0.24), transparent 65%);
  top: -120px;
  right: -140px;
  animation: drift 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.hero-copy h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.4rem, 3.6vw, 4.2rem);
  margin: 16px 0 20px;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.hero-copy .accent {
  display: block;
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 16px rgba(24, 198, 213, 0.5);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

.cta-group {
  display: flex;
  gap: 16px;
  margin: 24px 0 32px;
}

.btn {
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease,
    color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-warm));
  color: #08121f;
  box-shadow: 0 18px 30px rgba(24, 198, 213, 0.35);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(24, 198, 213, 0.45);
}

.btn.ghost {
  border: 1px solid rgba(11, 20, 36, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.btn.ghost:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(11, 20, 36, 0.16);
}

.stats {
  display: flex;
  gap: 32px;
}

.stat-value {
  font-size: 2rem;
  font-family: "Orbitron", sans-serif;
  margin: 0;
}

.stat-label {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portrait-frame {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(12, 142, 160, 0.2);
}

.portrait {
  height: 260px;
  border-radius: var(--radius-md);
  background: linear-gradient(130deg, #0b1424, #18c6d5, #ff8a3d);
  background-size: 200% 200%;
  position: relative;
  overflow: hidden;
  animation: gradientShift 10s ease infinite;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  mix-blend-mode: screen;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0.4;
  animation: scan 6s linear infinite;
}

.portrait-caption {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-note {
  background: rgba(9, 20, 36, 0.88);
  color: #e9f9ff;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(24, 198, 213, 0.2);
  box-shadow: 0 18px 36px rgba(11, 20, 36, 0.25);
}

.card-note span {
  color: rgba(233, 249, 255, 0.7);
}

.section {
  padding: 0 48px;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 640px;
}

.section h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 12px 0;
}

.repo-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.repo-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 142, 160, 0.18);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
}

.repo-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 26px 60px rgba(11, 20, 36, 0.2);
}

.repo-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.repo-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.repo-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

.repo-card.loading {
  justify-content: center;
  align-items: center;
  font-weight: 600;
}

.about {
  margin-top: 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.chips span {
  background: rgba(24, 198, 213, 0.16);
  color: var(--accent-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
}

.about-card {
  background: var(--card-dark);
  color: #e9f9ff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid rgba(24, 198, 213, 0.2);
}

.about-card ul {
  padding-left: 18px;
  color: rgba(233, 249, 255, 0.75);
}

.hire {
  margin: 80px 0;
}

.hire-inner {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(12, 142, 160, 0.2);
}

.hire-inner::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 198, 213, 0.24), transparent 70%);
  top: -80px;
  right: -80px;
  animation: drift 14s ease-in-out infinite;
}

.hire-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.small-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 20px;
}

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

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes scan {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(12px);
  }
}

@keyframes drift {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 14px rgba(24, 198, 213, 0.5);
  }
  50% {
    box-shadow: 0 0 28px rgba(24, 198, 213, 0.85);
  }
  100% {
    box-shadow: 0 0 14px rgba(24, 198, 213, 0.5);
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 24px;
  }

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

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

  .section {
    padding: 0 24px;
  }

  .stats {
    flex-direction: column;
    gap: 12px;
  }

  .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hire-inner {
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.3rem;
  }
}
