/* Core Keyframe Animations and Entrance Reveals for AMRUT-SAKSHAM website */

/* 1. Scroll-reveal Class Definitions */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

/* Animations configurations */
.reveal-fade {
  transform: translateY(0);
}

.reveal-slide-up {
  transform: translateY(40px);
}

.reveal-slide-down {
  transform: translateY(-40px);
}

.reveal-slide-left {
  transform: translateX(-40px);
}

.reveal-slide-right {
  transform: translateX(40px);
}

.reveal-zoom {
  transform: scale(0.95);
}

/* Intersecting State Class applied by Javascript */
.reveal.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delay modifiers for sequential item entrance animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* 2. Floating Apply button pulse animation */
/* @keyframes pulse-btn {
  0% {
    box-shadow: 0 0 0 0 rgba(211, 109, 43, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(211, 109, 43, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(211, 109, 43, 0);
  }
} */

@keyframes pulse-btn {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 73, 11, 0.55);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(200, 73, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 73, 11, 0);
  }
}

.pulse-animation {
  animation: pulse-btn 2s infinite;
}

/* 3. Hero Subtitle Gradient Flow animation */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 4. Scroll indicator mouse wheel bobbing animation */
@keyframes mouse-scroll {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

.mouse-scroll-wheel {
  animation: mouse-scroll 1.6s infinite ease-in-out;
}

/* 5. Generic floating motion for ambient vector items */
@keyframes float-ambient {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.float-ambient-slow {
  animation: float-ambient 6s infinite ease-in-out;
}

.float-ambient-fast {
  animation: float-ambient 4s infinite ease-in-out;
}

/* 6. Infinite Horizontal Text Marquee sliding */
@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 50s linear infinite;
}

/* 7. Ripple Effect Span styles inside buttons */
.ripple-span {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  pointer-events: none;
  animation: ripple-grow 0.6s ease-out;
}

@keyframes ripple-grow {
  to {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* 8. Spinner animation for loading indicator */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* 9. Hero image slider zoom scale transition */
@keyframes hero-zoom-bg {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.hero-slide.active .hero-bg-img {
  animation: hero-zoom-bg 15s ease-in-out infinite;
}
