/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600&family=Space+Grotesk:wght@300;500&display=swap');

:root {
  --neon-cyan: #00f0ff;
  --neon-purple: #bd00ff;
  --bg-dark: #0a0a0a;
  --bg-panel: #121212;
  --text-dim: #a0a0a0;
  --text-bright: #ffffff;
}

/* Base Reset & Aesthetics */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Typography Overrides */
h1, h2, h3, h4, .font-sci {
  font-family: 'Orbitron', sans-serif;
}

p {
  line-height: 1.8;
  font-size: 1.125rem;
}

/* Glow Effects */
.glow-text {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.glow-border {
  box-shadow: 0 0 15px rgba(189, 0, 255, 0.2);
}

.neon-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

/* Image Animations */
.img-reveal {
  opacity: 0;
  transform: scale(0.95);
  transition: all 1s ease-out;
}

.img-reveal.visible {
  opacity: 1;
  transform: scale(1);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Selection */
::selection {
  background: var(--neon-cyan);
  color: var(--bg-dark);
}

/* Chapter transitions */
.chapter-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.chapter-content.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }
  .sidebar.open {
    transform: translateX(0);
  }
}

/* Audio Player Visualizer Placeholder */
.bar {
  width: 4px;
  background: var(--neon-cyan);
  animation: equalize 1s infinite alternate;
}
@keyframes equalize {
  0% { height: 20%; }
  100% { height: 100%; }
}
