/* Keyframe Animations */

@keyframes bgPulse {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes floatSlow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes drawSvg {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fillSvg {
  to {
    fill-opacity: 1;
  }
}

@keyframes cursorBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2), inset 0 0 15px rgba(139, 92, 246, 0.1);
  }
  50% {
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.4), inset 0 0 20px rgba(217, 70, 239, 0.2);
  }
}

/* Audio Visualizer Wave Animation */
@keyframes waveUp {
  0%, 100% {
    transform: scaleY(0.2);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Neon pulse for Status Dot */
@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 4px #10b981, 0 0 12px rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 8px #10b981, 0 0 20px rgba(16, 185, 129, 0.9);
  }
}

/* Slow continuous rotation for crosshair elements */
@keyframes spinSlow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Animation Classes */
.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.float-slow-animation {
  animation: floatSlow 8s ease-in-out infinite;
}

.pulse-glow-animation {
  animation: pulseGlow 4s infinite alternate;
}

.status-pulse {
  animation: statusPulse 2s infinite ease-in-out;
}
