/* ==========================================================================
   APS GLOBAL LOGISTIC — ANIMATIONS & MICRO-INTERACTIONS
   File: css/apsglobal-animations.css
   ========================================================================== */

/* Keyframe Definitions */
@keyframes apsglobalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes apsglobalFadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes apsglobalSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes apsglobalPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(252, 116, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(252, 116, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(252, 116, 0, 0);
  }
}

/* Scroll Reveal Classes (Powered by IntersectionObserver) */
.apsglobal-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.apsglobal-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.apsglobal-reveal--left {
  transform: translateX(-40px);
}

.apsglobal-reveal--left.apsglobal-reveal--visible {
  transform: translateX(0);
}

.apsglobal-reveal--right {
  transform: translateX(40px);
}

.apsglobal-reveal--right.apsglobal-reveal--visible {
  transform: translateX(0);
}

.apsglobal-reveal--delay-1 {
  transition-delay: 0.12s;
}

.apsglobal-reveal--delay-2 {
  transition-delay: 0.24s;
}

.apsglobal-reveal--delay-3 {
  transition-delay: 0.36s;
}

.apsglobal-reveal--delay-4 {
  transition-delay: 0.48s;
}

/* Slide content entry transitions */
.apsglobal-slide--active .apsglobal-slide-tag {
  animation: apsglobalFadeDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.apsglobal-slide--active .apsglobal-slide-headline {
  animation: apsglobalFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.apsglobal-slide--active .apsglobal-slide-description {
  animation: apsglobalFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.apsglobal-slide--active .apsglobal-slide-actions {
  animation: apsglobalFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

/* Button & Interactive Glow Effects */
.apsglobal-btn--pulse {
  animation: apsglobalPulseGlow 2.5s infinite;
}

/* Smooth Image hover effects */
.apsglobal-hover-zoom {
  overflow: hidden;
}

.apsglobal-hover-zoom img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.apsglobal-hover-zoom:hover img {
  transform: scale(1.05);
}

/* Floating badge decoration */
.apsglobal-floating-badge {
  display: inline-flex;
  animation: apsglobalFadeIn 1s ease-out;
}

/* Reduced Motion Override for Accessibility */
@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;
  }
  
  .apsglobal-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .apsglobal-slide-bg img {
    transform: none !important;
    transition: none !important;
  }
}

