/* Background Visual Effects — Aurora Blobs, Page Glows, Noise Texture */

/* === AURORA BLOBS === */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.aurora-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
  top: -15%;
  left: -10%;
  opacity: 0.07;
  animation: aurora1 25s ease-in-out infinite alternate;
}

.aurora-blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
  opacity: 0.06;
  animation: aurora2 30s ease-in-out infinite alternate;
}

.aurora-blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0, 229, 255, 0.15) 50%, transparent 70%);
  top: 40%;
  left: 50%;
  opacity: 0.05;
  animation: aurora3 20s ease-in-out infinite alternate;
}

@keyframes aurora1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15vw, 10vh) scale(1.15); }
  100% { transform: translate(-5vw, 20vh) scale(0.9); }
}

@keyframes aurora2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12vw, -8vh) scale(1.1); }
  100% { transform: translate(8vw, -15vh) scale(0.95); }
}

@keyframes aurora3 {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-30%, -60%) scale(1.2); }
  100% { transform: translate(-70%, -40%) scale(0.85); }
}

/* === DOT GRID PATTERN === */
.bg-effects::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.12;
  pointer-events: none;
}

/* === PAGE-SPECIFIC RADIAL GLOWS === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background 1.5s ease;
}

body[data-current-route="home"]::before {
  background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 55%);
}

body[data-current-route="about"]::before {
  background:
    radial-gradient(ellipse at 25% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 75% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 45%);
}

body[data-current-route="experience"]::before {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 60%, rgba(0, 229, 255, 0.04) 0%, transparent 40%);
}

body[data-current-route="projects"]::before {
  background: radial-gradient(ellipse at 50% 45%, rgba(139, 92, 246, 0.04) 0%, rgba(0, 229, 255, 0.02) 40%, transparent 60%);
}

body[data-current-route="contact"]::before {
  background: radial-gradient(ellipse at 50% 85%, rgba(0, 229, 255, 0.04) 0%, transparent 50%);
}

/* === VIGNETTE === */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(10, 10, 22, 0.5) 100%);
}

/* === PAGE TITLE SWEEP EXIT === */
.page-title {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-title.sweep-out {
  clip-path: inset(0 0 100% 0);
}


/* === NOISE OVERLAY === */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.035;
  width: 100%;
  height: 100%;
}
