/* ==========================================================================
   GLOBAL AIRTECH SYSTEMS - ANIMATIONS & TRANSITIONS
   GSAP helpers, smooth reveals, responsive motion control
   ========================================================================== */

/* Pre-animation states for GSAP ScrollTrigger elements */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
}

[data-animate="fade-in"] {
  opacity: 0;
}

[data-animate="fade-right"] {
  opacity: 0;
  transform: translateX(-30px);
}

[data-animate="fade-left"] {
  opacity: 0;
  transform: translateX(30px);
}

[data-animate="scale-up"] {
  opacity: 0;
  transform: scale(0.95);
}

/* Fallback visible state when GSAP has loaded or if JS is disabled */
.js-loaded [data-animate] {
  will-change: opacity, transform;
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.img-loading {
  background: linear-gradient(90deg, #f0f3f6 25%, #e6ebf0 50%, #f0f3f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Subtle pulse for critical CTA buttons */
@keyframes pulse-subtle {
  0% { box-shadow: 0 0 0 0 rgba(242, 140, 40, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(242, 140, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 140, 40, 0); }
}

.pulse-cta {
  animation: pulse-subtle 2.5s infinite;
}

/* Accessibility: Respect 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;
  }
  
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}
