/* ==========================================================================
   AK GREEN SOLUTIONS — Cohesive Motion & Scroll Animation Engine
   Unified easing, non-intrusive micro-interactions, and scroll reveals
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Disciplined Scroll Reveal Keyframes
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-stagger-1 { transition-delay: 0.08s; }
.reveal-stagger-2 { transition-delay: 0.16s; }
.reveal-stagger-3 { transition-delay: 0.24s; }
.reveal-stagger-4 { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   2. Pipeline Track Progress Indicator
   -------------------------------------------------------------------------- */
@keyframes beamTravelSubtle {
  0% {
    left: 0%;
    width: 0%;
    opacity: 0.4;
  }
  50% {
    width: 25%;
    opacity: 1;
  }
  100% {
    left: 95%;
    width: 0%;
    opacity: 0.4;
  }
}

.pipeline-track-beam {
  position: absolute;
  top: 35px;
  height: 2px;
  width: 20%;
  background: var(--color-emerald-600);
  border-radius: 1px;
  animation: beamTravelSubtle 4s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   3. Subtle Status Pulse
   -------------------------------------------------------------------------- */
@keyframes pulseDotLive {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.live-status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-emerald-500);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDotLive 2s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   4. Interactive Image Hotspot Ripple
   -------------------------------------------------------------------------- */
@keyframes hotspotRipple {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

.image-hotspot-pin {
  animation: hotspotRipple 2.2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   5. Accessible Reduced Motion
   -------------------------------------------------------------------------- */
@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;
  }
}
