/* ==========================================================================
   FIELDVOICE AI - ANIMATIONS & INTERACTIONS
   ========================================================================== */

/* Keyframe Definitions */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(71, 24, 72, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(71, 24, 72, 0);
  }
}

@keyframes waveBar {
  0%, 100% { height: 6px; }
  50% { height: 28px; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll Reveal Classes (Intersection Observer) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Interactive Voice Waveform Animation */
.voice-wave-container {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
}

.voice-wave-bar {
  width: 4px;
  background: var(--accent-primary);
  border-radius: var(--radius-pill);
  animation: waveBar 1.2s ease-in-out infinite;
}

.voice-wave-bar:nth-child(1) { animation-delay: 0.0s; height: 12px; }
.voice-wave-bar:nth-child(2) { animation-delay: 0.2s; height: 22px; }
.voice-wave-bar:nth-child(3) { animation-delay: 0.4s; height: 32px; }
.voice-wave-bar:nth-child(4) { animation-delay: 0.1s; height: 18px; }
.voice-wave-bar:nth-child(5) { animation-delay: 0.3s; height: 26px; }
.voice-wave-bar:nth-child(6) { animation-delay: 0.5s; height: 14px; }

/* Live Status Dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  position: relative;
  display: inline-block;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.3);
  animation: pulseGlow 2s infinite;
}
