/* ==========================================================================
   FIVENTO AI — RICH MOTION & ANIMATION SYSTEM
   Floating dashboards, voice waveforms, typing effects & stagger reveals
   ========================================================================== */

/* Floating Hero Card Micro-Motion */
@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Voice Signal Waveform Pulse */
@keyframes wavePulse {
  0%, 100% {
    height: 6px;
    opacity: 0.4;
  }
  50% {
    height: 22px;
    opacity: 1;
  }
}

/* Glowing Border Pulse */
@keyframes glowBorder {
  0%, 100% {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.05);
  }
  50% {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 35px rgba(37, 99, 235, 0.18);
  }
}

/* Node Tree Stream Animation */
@keyframes dashStream {
  to {
    stroke-dashoffset: -32;
  }
}

/* Live Signal Indicator */
@keyframes signalPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Animation Utility Classes */
.float-hero {
  animation: floatCard 6s ease-in-out infinite;
}

.pulse-card {
  animation: glowBorder 4s ease-in-out infinite;
}

.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
  animation: signalPulse 2s infinite ease-in-out;
}

/* Audio Waveform Bars Component */
.audio-waveform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}

.waveform-bar {
  width: 3px;
  background-color: var(--color-accent);
  border-radius: 99px;
  animation: wavePulse 1.2s ease-in-out infinite;
}

.waveform-bar:nth-child(1) { animation-delay: 0.0s; }
.waveform-bar:nth-child(2) { animation-delay: 0.2s; }
.waveform-bar:nth-child(3) { animation-delay: 0.4s; }
.waveform-bar:nth-child(4) { animation-delay: 0.1s; }
.waveform-bar:nth-child(5) { animation-delay: 0.3s; }

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* Minimal Background Grid Overlay */
.ai-grid-bg {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
}
