:root {
  /* Pitch Black Theme */
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-elevated: #111111;
  --border: rgba(255, 255, 255, 0.08);
  
  /* Text */
  --text: #ffffff;
  --text-muted: #888888;
  
  /* Aurora Colors */
  --aurora-1: rgba(120, 119, 198, 0.4); /* Purple */
  --aurora-2: rgba(45, 212, 191, 0.3);  /* Teal */
  --aurora-3: rgba(56, 189, 248, 0.3);  /* Cyan */

  --radius-bento: 24px;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== AURORA MESH BACKGROUND ========== */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { width: 50vw; height: 50vh; background: var(--aurora-1); top: -10%; left: -10%; animation-delay: 0s; }
.orb-2 { width: 40vw; height: 60vh; background: var(--aurora-2); bottom: -20%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 60vw; height: 40vh; background: var(--aurora-3); top: 40%; left: 30%; animation-delay: -10s; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 10vh) scale(1.2); }
}

/* ========== LAYOUT ========== */
.page-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

/* ========== FLOATING PILL NAV ========== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 12px 24px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  top: 24px;
  z-index: 100;
}

/* ========== NAVIGATION & BRANDING ========== */
.brand {
  font-weight: 800; /* Maximize thickness */
  font-size: 1.6rem; /* Significantly larger */
  letter-spacing: -0.04em; /* Tight, modern tracking */
  color: var(--text);
  display: flex;
  align-items: center;
  text-shadow: 0 2px 10px rgba(255,255,255,0.1);
}

.brand-dot {
  color: var(--accent-3, #00e5ff); /* A pop of color on the period */
}

/* Sub-page Header Utility */
.page-header {
  padding: 80px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.3s var(--transition);
}

.nav-cta:hover {
  transform: scale(1.05);
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 100px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(to right, #fff, #71717a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 80px;
}

.btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.15);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
}

/* ========== HERO STATS BENTO ========== */
.hero-stats-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.stat-card {
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 32px;
  border-radius: var(--radius-bento);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--transition);
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  font-family: "JetBrains Mono", monospace;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.code-snippet {
  align-items: flex-start;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.code-snippet span { color: var(--aurora-2); margin-right: 8px; }
.code-lang { color: var(--text); margin-bottom: 12px; font-weight: 600; }

/* ========== BENTO GRID (Main Layout) ========== */
.section {
  margin: 120px 0;
}

.section-title {
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  grid-auto-rows: minmax(280px, auto);
}

.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-bento);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.bento-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.bento-item:hover {
  background: var(--surface-elevated);
  border-color: rgba(255,255,255,0.15);
}

.bento-item.span-2 {
  grid-column: span 2;
}

.bento-item.flex-row {
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

/* Card Content Styling */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.bento-item h3 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.bento-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-stack span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  padding: 4px 8px;
  background: #1a1a1a;
  border-radius: 4px;
  color: var(--text-muted);
}

.bento-metric {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.bento-metric strong {
  font-size: 2.5rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: -0.05em;
  line-height: 1;
}

.bento-metric span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.icon-header {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* ========== FOOTER ========== */
.footer {
  margin-top: 100px;
  text-align: center;
  padding-bottom: 40px;
}

.footer-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-bento);
  padding: 60px;
  margin-bottom: 40px;
}

.footer-content h2 {
  font-size: 3rem;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
}

.footer > p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-item.span-2 { grid-column: span 2; }
}

@media (max-width: 768px) {
  .topbar { border-radius: 16px; padding: 12px 16px; }
  .nav-links { display: none; /* Hide on mobile for cleaner look, or implement hamburger */ }
  .hero h1 { font-size: 2.8rem; }
  .hero-stats-bento { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item.span-2 { grid-column: span 1; }
  .bento-item.flex-row { flex-direction: column; align-items: flex-start; }
}