/* ==========================================================================
   KSI GROUP — ANIMATIONS & TRANSITIONS (animations.css)
   Safe & Robust: All elements are visible by default, with graceful scroll animations
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. KEYFRAME DEFINITIONS
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(105, 184, 42, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(105, 184, 42, 0.45);
  }
}

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

/* --------------------------------------------------------------------------
   02. SCROLL REVEAL STYLES (SAFE VISIBILITY)
   -------------------------------------------------------------------------- */
/* Elements are fully visible by default */
.reveal-fade-up,
.reveal-fade-left,
.reveal-fade-right,
.reveal-zoom-in {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

/* When JS scroll reveal is active */
.js-scroll-animate .reveal-fade-up:not(.in-view) {
  opacity: 0;
  transform: translateY(28px);
}

.js-scroll-animate .reveal-fade-left:not(.in-view) {
  opacity: 0;
  transform: translateX(-28px);
}

.js-scroll-animate .reveal-fade-right:not(.in-view) {
  opacity: 0;
  transform: translateX(28px);
}

.js-scroll-animate .reveal-zoom-in:not(.in-view) {
  opacity: 0;
  transform: scale(0.95);
}

.js-scroll-animate .in-view {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Stagger delays for card lists */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* --------------------------------------------------------------------------
   03. INTERACTIVE MICRO-ANIMATIONS
   -------------------------------------------------------------------------- */
.pulse-on-hover:hover {
  animation: pulseGlow 1.5s infinite;
}

.floating-anim {
  animation: floatElement 4s ease-in-out infinite;
}
