/* ==========================================================================
   REAL CRM - KEYFRAME ANIMATIONS & INTERACTIVE GLOW EFFECTS
   ========================================================================== */

/* Keyframe Floating Badge */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

/* Pulse Glow Keyframe */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.6), 0 0 80px rgba(6, 182, 212, 0.3);
  }
}

/* Audio Waveform Bars Animation */
@keyframes wave {
  0% { height: 10px; }
  100% { height: 48px; }
}

.wave-bar:nth-child(1) { animation-delay: 0.1s; }
.wave-bar:nth-child(2) { animation-delay: 0.3s; }
.wave-bar:nth-child(3) { animation-delay: 0.5s; }
.wave-bar:nth-child(4) { animation-delay: 0.2s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.6s; }
.wave-bar:nth-child(7) { animation-delay: 0.15s; }

/* Safe Scroll Reveal (Prevents collapse if JS is slow) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-loaded .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.js-loaded .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Background Particle Canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.orb-cyan {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  top: 10%;
  left: 5%;
}

.orb-gold {
  width: 450px;
  height: 450px;
  background: var(--primary);
  top: 40%;
  right: 5%;
}
