/* ==========================================================================
   ANIMATIONS & SCROLL REVEALS
   ========================================================================== */

/* Fade & Slide Transitions */
.reveal {
  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);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Pulse Animation */
@keyframes subtle-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.animate-pulse {
  animation: subtle-pulse 3s infinite ease-in-out;
}

/* SVG Line Draw Effect */
.svg-draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.svg-draw-line.drawn {
  stroke-dashoffset: 0;
}

/* Pipeline Stage Highlight Step */
.pipeline-stage {
  padding: 12px 16px;
  background-color: var(--cyra-surface);
  border: 1px solid var(--cyra-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyra-text-muted);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipeline-stage.active {
  background-color: var(--cyra-orange-light);
  border-color: var(--cyra-orange);
  color: var(--cyra-orange);
}

/* Number Counter Transition */
.counter-value {
  transition: all 0.5s ease-out;
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .svg-draw-line {
    stroke-dashoffset: 0 !important;
  }
}
