/* ==========================================================================
   ANIMATIONS.CSS - AdsFlow Media
   All animation keyframes & utility classes
   ========================================================================== */

/* ==========================================================================
   1. FLOAT ANIMATIONS
   Hero floating elements
   ========================================================================== */

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

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(15px); }
}

@keyframes floatSide {
  0%, 100% { transform: translateX(0px); }
  50% { transform: translateX(10px); }
}

/* ==========================================================================
   2. SPINNER ANIMATION
   Preloader
   ========================================================================== */

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

/* ==========================================================================
   3. PULSE ANIMATION
   WhatsApp button
   ========================================================================== */

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   4. MARQUEE ANIMATION
   Trust logos
   ========================================================================== */

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   5. CHECKMARK DRAW ANIMATION
   Success modal & thank you page
   ========================================================================== */

@keyframes checkmarkDraw {
  0% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}

@keyframes checkmarkCircle {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   6. SLIDE ANIMATIONS
   ========================================================================== */

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

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

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   7. LOADER ANIMATION
   ========================================================================== */

@keyframes loaderFadeOut {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}

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

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

/* ==========================================================================
   8. GRADIENT SHIFT ANIMATION
   Gradient borders/buttons
   ========================================================================== */

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

/* ==========================================================================
   9. CONFETTI / PARTICLE ANIMATION
   Thank you page
   ========================================================================== */

@keyframes confettiFall {
  0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -10px) rotate(90deg); }
  50% { transform: translate(-5px, -20px) rotate(180deg); }
  75% { transform: translate(15px, -5px) rotate(270deg); }
}

/* ==========================================================================
   10. SCROLL PROGRESS ANIMATION
   ========================================================================== */

@keyframes progressGlow {
  0% { box-shadow: 0 0 5px rgba(30, 94, 255, 0.3); }
  50% { box-shadow: 0 0 10px rgba(30, 94, 255, 0.5); }
  100% { box-shadow: 0 0 5px rgba(30, 94, 255, 0.3); }
}

/* ==========================================================================
   11. UTILITY ANIMATION CLASSES
   ========================================================================== */

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-float-delay { animation: float 3s ease-in-out infinite 1s; }
.animate-float-delay-2 { animation: float 3s ease-in-out infinite 2s; }
.animate-float-reverse { animation: floatReverse 3s ease-in-out infinite; }
.animate-float-side { animation: floatSide 4s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.6s ease forwards; }
.animate-slide-left { animation: slideLeft 0.6s ease forwards; }
.animate-slide-right { animation: slideRight 0.6s ease forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease forwards; }

/* ==========================================================================
   12. STAGGER DELAY CLASSES
   Sequential animations
   ========================================================================== */

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* ==========================================================================
   13. HOVER ANIMATION ENHANCEMENTS
   ========================================================================== */

.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.hover-glow { transition: box-shadow 0.3s ease; }
.hover-glow:hover { box-shadow: 0 0 20px rgba(30, 94, 255, 0.3); }
.hover-scale { transition: transform 0.3s ease; }
.hover-scale:hover { transform: scale(1.05); }

/* ==========================================================================
   14. GRADIENT BORDER ANIMATION
   Cards
   ========================================================================== */

.gradient-border {
  position: relative;
  border: none;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #1E5EFF, #0B63F6, #4F7DFF);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ==========================================================================
   15. MORPHING SHAPE
   Decorative background
   ========================================================================== */

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.morph-shape {
  animation: morph 8s ease-in-out infinite;
}
