/* Dark Theme Variables (single mode) */
:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #0f1520;
  --bg-glass: rgba(10, 15, 26, 0.7);
  --bg-glass-border: rgba(255, 255, 255, 0.06);
  --text-primary: #f5f5f5;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --text-accent: #c4a35a;
  --border-color: rgba(255, 255, 255, 0.06);
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-hover-border: rgba(255, 255, 255, 0.12);
}

/* Base styles */
* { font-family: 'DM Sans', sans-serif; }
h1, h2, h3 { font-family: 'Fraunces', serif; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background container */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(56, 189, 248, 0.15), transparent 35%),
    radial-gradient(circle at 78% 26%, rgba(168, 85, 247, 0.13), transparent 32%),
    radial-gradient(circle at 42% 74%, rgba(16, 185, 129, 0.12), transparent 30%),
    #0a0f1a;
}

#bg-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.62), rgba(6, 10, 18, 0.45) 40%, rgba(6, 10, 18, 0.7));
  mix-blend-mode: normal;
}

.content { position: relative; z-index: 10; }

/* Text colors */
.text-theme-primary { color: var(--text-primary); }
.text-theme-secondary { color: var(--text-secondary); }
.text-theme-muted { color: var(--text-muted); }

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #f5f0e8, #d4b896, #f5f0e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hero-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.7);
}

.principle-icon {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.hero-title {
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.lucide-icon { width: 24px; height: 24px; stroke-width: 1.55; }

/* Glass effect */
.glass {
  background: rgba(10, 15, 26, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Primary button */
.btn-primary {
  background: linear-gradient(135deg, #f5f0e8, #d4b896, #f5f0e8);
  color: #0a0f1a;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(212, 184, 150, 0.4);
}

/* Card component */
.card {
  background: rgba(10, 15, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll chevrons */
.scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.scroll-chevrons svg {
  width: 24px;
  height: 24px;
  opacity: 0;
  animation: chevronFade 2s infinite;
  color: var(--text-muted);
}
.scroll-chevrons svg:nth-child(1) { animation-delay: 0s; }
.scroll-chevrons svg:nth-child(2) { animation-delay: 0.15s; }
.scroll-chevrons svg:nth-child(3) { animation-delay: 0.3s; }

@keyframes chevronFade {
  0%, 100% { opacity: 0; transform: translateY(-4px); }
  50% { opacity: 1; transform: translateY(4px); }
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 300px;
}

/* Theme toggle */
.theme-toggle {
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.theme-toggle:hover {
  color: var(--text-primary);
}
