/* ============================================
   PROPHET GUESTS - ANIMATIONS
   ============================================ */

/* ------------------------------------------
   FADE UP
   ------------------------------------------ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-up-delay-1 {
  animation: fadeUp 0.6s ease-out 0.1s forwards;
  opacity: 0;
}

.animate-fade-up-delay-2 {
  animation: fadeUp 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-fade-up-delay-3 {
  animation: fadeUp 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

/* ------------------------------------------
   FADE IN
   ------------------------------------------ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* ------------------------------------------
   SCALE IN
   ------------------------------------------ */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* ------------------------------------------
   SLIDE IN LEFT
   ------------------------------------------ */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-left {
  animation: slideInLeft 0.5s ease-out forwards;
}

/* ------------------------------------------
   SLIDE IN RIGHT
   ------------------------------------------ */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-right {
  animation: slideInRight 0.5s ease-out forwards;
}

/* ------------------------------------------
   PULSE
   ------------------------------------------ */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* ------------------------------------------
   BOUNCE
   ------------------------------------------ */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* ------------------------------------------
   SHAKE
   ------------------------------------------ */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.animate-shake {
  animation: shake 0.4s ease-in-out;
}

/* ------------------------------------------
   ROTATE
   ------------------------------------------ */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-rotate {
  animation: rotate 1s linear infinite;
}

/* ------------------------------------------
   WHATSAPP PULSE
   ------------------------------------------ */
@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-pulse {
  animation: whatsappPulse 2s ease-out infinite;
}

/* ------------------------------------------
   COUNT UP
   ------------------------------------------ */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number.animate {
  animation: countUp 0.6s ease-out forwards;
}

/* ------------------------------------------
   INTERSECTION OBSERVER REVEAL
   ------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ------------------------------------------
   STAGGER CHILDREN
   ------------------------------------------ */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.is-visible > *:nth-child(1) {
  animation: fadeUp 0.5s ease-out 0.1s forwards;
}

.stagger-children.is-visible > *:nth-child(2) {
  animation: fadeUp 0.5s ease-out 0.2s forwards;
}

.stagger-children.is-visible > *:nth-child(3) {
  animation: fadeUp 0.5s ease-out 0.3s forwards;
}

.stagger-children.is-visible > *:nth-child(4) {
  animation: fadeUp 0.5s ease-out 0.4s forwards;
}

.stagger-children.is-visible > *:nth-child(5) {
  animation: fadeUp 0.5s ease-out 0.5s forwards;
}

.stagger-children.is-visible > *:nth-child(6) {
  animation: fadeUp 0.5s ease-out 0.6s forwards;
}

/* ------------------------------------------
   HOVER LIFT
   ------------------------------------------ */
.hover-lift {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ------------------------------------------
   HOVER SCALE
   ------------------------------------------ */
.hover-scale {
  transition: transform var(--transition-fast);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ------------------------------------------
   IMAGE ZOOM
   ------------------------------------------ */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform var(--transition-slow);
}

.img-zoom:hover img {
  transform: scale(1.1);
}

/* ------------------------------------------
   UNDERLINE ANIMATION
   ------------------------------------------ */
.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-normal);
}

.hover-underline:hover::after {
  width: 100%;
}

/* ------------------------------------------
   SHIMMER LOADING
   ------------------------------------------ */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--color-grey-light) 25%,
    var(--color-cream) 50%,
    var(--color-grey-light) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ------------------------------------------
   REDUCED MOTION
   ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}
