/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Scroll Reveal States */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  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; }

/* Continuous Marquee for Notice Strip */
@keyframes noticeTickerScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    overflow-x: auto;
  }
}

/* Pulse Indicator for Admissions / Live Notice */
.pulse-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00EDFC;
  border-radius: 50%;
  margin-right: 6px;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: #00EDFC;
  opacity: 0.6;
  animation: pulseRing 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.5); opacity: 0.8; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

/* Floating Soft Bounce for Crest / Medals */
@keyframes softFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: softFloat 4s ease-in-out infinite;
}

/* Shimmer Highlight on CTAs */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shimmerMove 3.5s infinite;
}

@keyframes shimmerMove {
  0%, 60% { left: -100%; }
  100% { left: 200%; }
}

/* Tactile Active Press */
button:active, .btn-primary:active, .btn-secondary:active, .btn-whatsapp:active {
  transform: scale(0.97);
}

/* Smooth Accordion Icon Spin */
.rotate-icon {
  transition: transform 0.3s ease;
}

.rotate-icon.rotated {
  transform: rotate(180deg);
}

/* ==========================================================================
   TYPING EFFECT ANIMATION & CURSOR
   ========================================================================== */
.typing-heading {
  display: inline-block;
  min-height: 1.25em;
  position: relative;
}

.typing-cursor {
  display: inline-block;
  color: #00EDFC;
  font-weight: 300;
  margin-left: 2px;
  animation: cursorBlink 0.8s infinite;
  vertical-align: baseline;
  transition: opacity 0.4s ease;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

