/* Animation Styles - GSAP Animation Classes */

/* =====================
   BASE ANIMATION STATES
===================== */

/* Elements that will animate on scroll */
.animate-fade-in {
  opacity: 0;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(50px);
}

.animate-slide-down {
  opacity: 0;
  transform: translateY(-50px);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-100px);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(100px);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.8);
}

.animate-rotate {
  opacity: 0;
  transform: rotateX(90deg);
  perspective: 1000px;
}

/* =====================
   SCROLL INDICATOR ANIMATION
===================== */

@keyframes scroll-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.scroll-indicator {
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* =====================
   CTA BUTTON PULSE
===================== */

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.btn-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* =====================
   GLOW EFFECT
===================== */

.text-glow {
  text-shadow: 0 0 10px rgba(233, 69, 96, 0.5),
               0 0 20px rgba(233, 69, 96, 0.3),
               0 0 30px rgba(233, 69, 96, 0.2);
}

/* =====================
   3D CARD FLIP
===================== */

.card-3d {
  transform-style: preserve-3d;
  transition: transform var(--duration-slow) var(--ease-in-out);
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

/* =====================
   GRADIENT ANIMATION
===================== */

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

/* =====================
   LOADING SPINNER
===================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* =====================
   SCROLL PROGRESS BAR
===================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gradient-accent);
  z-index: var(--z-nav);
  transition: width 0.1s ease-out;
}

/* =====================
   PARALLAX LAYERS
===================== */

.parallax-layer {
  will-change: transform;
}

/* Performance optimization */
.gpu-accelerated {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}
