/* ==========================================================================
   SOLARTECH ENERGY - LIGHTWEIGHT MICRO-ANIMATIONS & KEYFRAMES (v1.2.0)
   ========================================================================== */

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.ste-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

@keyframes sunRays {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ste-spin-slow {
  animation: sunRays 20s linear infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.ste-float {
  animation: floatGentle 4s ease-in-out infinite;
}

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

/* Reveal on Scroll Helpers */
.ste-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;
}

.ste-reveal.ste-revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Accessible Reduced Motion Settings (WCAG 2.1 AA) */
@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;
  }
  .ste-pulse-glow,
  .ste-spin-slow,
  .ste-float {
    animation: none !important;
  }
  .ste-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
