/* ==========================================================================
   HELIOSUNTECH PLASTICS PRIVATE LIMITED - ENHANCED ANIMATION SYSTEM
   Kinetic Circularity / Staggered Scroll Reveals / 3D Card Tilts & Shimmers
   Accessibility: Complete prefers-reduced-motion coverage
   ========================================================================== */

/* 1. Luminous Pulse & Breathing */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(82, 178, 22, 0.25);
    opacity: 0.9;
  }
  50% {
    box-shadow: 0 0 20px rgba(82, 178, 22, 0.65);
    opacity: 1;
  }
}

@keyframes emerald-breathe {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(20, 107, 68, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(82, 178, 22, 0.45));
  }
}

/* 2. Floating Polymer Crystals & Nodes */
@keyframes soft-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

/* 3. Kinetic Circular Rotation */
@keyframes circular-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 4. Stream Flow for SVG Paths */
@keyframes stroke-dash-flow {
  0% {
    stroke-dashoffset: 40;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* 5. Luminous Card Shimmer */
@keyframes card-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 6. Subtle Pulse Ring */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(82, 178, 22, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(82, 178, 22, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(82, 178, 22, 0);
  }
}

/* Utility Animation Classes */
.animate-pulse-glow {
  animation: pulse-glow 2.5s infinite ease-in-out;
}

.animate-float {
  animation: soft-float 5s infinite ease-in-out;
}

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

.animate-rotate {
  animation: circular-spin 26s linear infinite;
}

.animate-breathe {
  animation: emerald-breathe 4s infinite ease-in-out;
}

.animate-ring {
  animation: pulse-ring 2.2s infinite ease-in-out;
}

/* 7. Scroll Reveal Framework with Staggering */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-smooth), transform 0.75s var(--ease-smooth);
  will-change: opacity, transform;
}

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

/* Stagger Children Support */
.stagger-container.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-container > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.stagger-container.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-container.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-container.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-container.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-container.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-container.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* 8. Stable Card Class (No 3D Tilt) */
.interactive-tilt {
  transform: none !important;
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY: PREFERS-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;
  }

  .reveal-on-scroll,
  .stagger-container > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
