/* ═══════════════════════════════════════════════════════════
   LYQORA — Digital Aurora Civilization
   Core Theme & Foundation
   ═══════════════════════════════════════════════════════════ */

:root {
  --aurora-cyan: #7CFFEA;
  --nebula-violet: #B388FF;
  --deep-void: #05060A;
  --text-light: #EAF6FF;
  --solar-rose: #FF6FB1;
  --ice-blue: #A8D8FF;
  --plasma-green: #6FFFB0;
  --star-silver: #C8D6E5;
  --deep-indigo: #1A1B3D;

  --font-heading: 'Space Grotesk', 'Sora', sans-serif;
  --font-body: 'Inter', 'Manrope', sans-serif;

  --glow-cyan: 0 0 20px rgba(124, 255, 234, 0.4), 0 0 60px rgba(124, 255, 234, 0.15);
  --glow-violet: 0 0 20px rgba(179, 136, 255, 0.4), 0 0 60px rgba(179, 136, 255, 0.15);
  --glow-rose: 0 0 20px rgba(255, 111, 177, 0.4), 0 0 60px rgba(255, 111, 177, 0.15);

  --scroll-progress: 0;
  --breath-progress: 0;
  --mouse-x: 0.5;
  --mouse-y: 0.5;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--deep-void);
  color: var(--text-light);
  overflow-x: hidden;
  cursor: default;
  min-height: 100vh;
  line-height: 1.6;
}

/* Canvas layers */
#aurora-canvas,
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#particle-canvas {
  z-index: 1;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--aurora-cyan);
  color: var(--deep-void);
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--solar-rose);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Main world container */
.lyqora-world {
  position: relative;
  z-index: 2;
}

.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* Aurora response overlay */
.aurora-response {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(124, 255, 234, 0.08) 0%,
    rgba(179, 136, 255, 0.04) 40%,
    transparent 70%
  );
  transition: opacity 0.6s ease;
}

.aurora-response.active {
  opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--aurora-cyan);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: rgba(124, 255, 234, 0.25);
  color: var(--text-light);
}
