/**
 * Gym Website Animations & Scroll Reveals
 */

/* IntersectionObserver reveal target states */
.aos-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.aos-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes (automatically used in templates or applied dynamically) */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }

/* Pulse animation for the WhatsApp Enquiry / main buttons */
@keyframes button-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 0, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(228, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(228, 0, 0, 0);
  }
}

.pulse-btn {
  position: relative;
  overflow: visible;
}

.pulse-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  animation: button-pulse 1.8s infinite;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .pulse-btn::after {
    animation: none;
  }
}

/* Hover effects */
.scale-on-hover {
  transition: var(--transition-normal);
}

.scale-on-hover:hover {
  transform: scale(1.03);
}

/* Floating animation for subtle icons */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-icon {
  animation: float 4s ease-in-out infinite;
}
