/* ============================================================
   ANIMATION UTILITIES
   Reusable animation classes and keyframes
   ============================================================ */

/* ---- KEYFRAME DEFINITIONS ---- */

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

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

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

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

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

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

/* ---- SECTION ANIMATIONS ---- */

.section-fade {
  animation: fadeInUp 0.6s ease-out forwards;
}

.section-fade-delay {
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.fade-in-slow {
  animation: fadeIn 0.8s ease-out forwards;
}

/* ---- TEXT ANIMATIONS ---- */

.text-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.text-fade-in-delay-1 {
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.text-fade-in-delay-2 {
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.text-fade-in-delay-3 {
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

/* ---- CARD ANIMATIONS ---- */

/* Card Lift Animation
   Applies a subtle upward movement with shadow enhancement on hover
   Used on: product cards, why-chubb cards, etc.
*/
.card-lift {
  position: relative;
  transition: all 0.3s ease;
}

.card-lift:hover {
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0px 4px 12px rgba(101, 38, 217, 0.2);
}

.card-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.card-fade-in-delay-1 {
  animation: fadeInOnly 0.6s ease-out 0.1s both;
}

.card-fade-in-delay-2 {
  animation: fadeInOnly 0.6s ease-out 0.2s both;
}

.card-fade-in-delay-3 {
  animation: fadeInOnly 0.6s ease-out 0.3s both;
}

/* ---- ELEMENT ANIMATIONS ---- */

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

/* ---- TEXT HOVER EFFECTS ---- */

.text-hover {
  transition: color 0.3s ease, opacity 0.3s ease;
}

.text-hover:hover {
  color: #6526d9;
  opacity: 0.8;
}

.text-hover-subtle {
  transition: color 0.2s ease;
}

.text-hover-subtle:hover {
  color: #191919;
  font-weight: 500;
}

.text-hover-scale {
  transition: transform 0.2s ease;
}

.text-hover-scale:hover {
  transform: scale(1.02);
}
