/* ============================================
   Pink Elephant Properties -- Animations
   ============================================ */

/* --- Base animation state (hidden before scroll) --- */
.animate-fade-up,
.animate-fade-left,
.animate-fade-right,
.animate-scale {
  opacity: 0;
  will-change: transform, opacity;
}

.animate-fade-up {
  transform: translateY(30px);
}

.animate-fade-left {
  transform: translateX(-30px);
}

.animate-fade-right {
  transform: translateX(30px);
}

.animate-scale {
  transform: scale(0.95);
}

/* --- Triggered state (visible after scroll) --- */
.animate-fade-up.is-visible {
  animation: fadeUp 0.6s ease forwards;
}

.animate-fade-left.is-visible {
  animation: fadeLeft 0.6s ease forwards;
}

.animate-fade-right.is-visible {
  animation: fadeRight 0.6s ease forwards;
}

.animate-scale.is-visible {
  animation: scaleIn 0.5s ease forwards;
}

/* --- Stagger delays for card grids --- */
.stagger-1 { animation-delay: 0.1s !important; }
.stagger-2 { animation-delay: 0.2s !important; }
.stagger-3 { animation-delay: 0.3s !important; }
.stagger-4 { animation-delay: 0.4s !important; }
.stagger-5 { animation-delay: 0.5s !important; }
.stagger-6 { animation-delay: 0.6s !important; }

/* --- Keyframes --- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* --- Hover lift effect --- */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* --- Hero background subtle animation --- */
@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero__float {
  animation: subtleFloat 6s ease-in-out infinite;
}

/* --- Pulse for CTAs --- */
@keyframes gentlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(203, 73, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(203, 73, 102, 0);
  }
}

.pulse {
  animation: gentlePulse 2.5s ease-in-out infinite;
}

/* --- Counter number animation (handled by JS, this is just for the visual) --- */
.counter-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* --- Underline draw animation --- */
.underline-draw {
  position: relative;
  display: inline;
}

.underline-draw::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.underline-draw.is-visible::after {
  width: 100%;
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-fade-left,
  .animate-fade-right,
  .animate-scale {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .hover-lift:hover {
    transform: none;
  }

  .hero__float {
    animation: none;
  }

  .pulse {
    animation: none;
  }
}
