/* ============================================================
   animations.css — TMM Animation & Transition Definitions
   ============================================================ */

/* ----------------------------------------------------------
   1. TICKER ANIMATION
   ---------------------------------------------------------- */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------------
   2. FADE UP (for elements without AOS)
   ---------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up           { animation: fadeUp 0.7s var(--ease-out) both; }
.fade-up-delay-1   { animation-delay: 0.1s; }
.fade-up-delay-2   { animation-delay: 0.2s; }
.fade-up-delay-3   { animation-delay: 0.3s; }

/* ----------------------------------------------------------
   3. COUNTER (JS drives this, CSS just enables it)
   ---------------------------------------------------------- */
.stat-number {
  transition: color 0.3s ease;
}

.stat-number.counting {
  color: var(--gold-light);
}

/* ----------------------------------------------------------
   4. BLUE PULSE
   ---------------------------------------------------------- */
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(0, 153, 255, 0); }
}

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

/* ----------------------------------------------------------
   5. AOS OVERRIDES (customize AOS library defaults)
   ---------------------------------------------------------- */
[data-aos] {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-aos="fade-up"] {
  transform: translateY(40px);
}

[data-aos="slide-in-left"] {
  transform: translateX(-60px);
  opacity: 0;
}

[data-aos="slide-in-right"] {
  transform: translateX(60px);
  opacity: 0;
}

[data-aos="slide-in-up"] {
  transform: translateY(40px);
  opacity: 0;
}

[data-aos].aos-animate {
  transform: translateY(0) translateX(0);
  opacity: 1;
}

/* ----------------------------------------------------------
   6. CARD HOVER GLOW
   ---------------------------------------------------------- */
.program-card,
.resource-card,
.testimonial-card,
.why-card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.program-card:hover,
.resource-card:hover {
  box-shadow: 0 0 40px rgba(0, 153, 255, 0.12), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

/* ----------------------------------------------------------
   7. CHART BACKGROUND PATTERN (used in hero)
   ---------------------------------------------------------- */
.hero-chart-bg {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(0, 153, 255, 0.5) 40px,
      rgba(0, 153, 255, 0.5) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(0, 153, 255, 0.3) 60px,
      rgba(0, 153, 255, 0.3) 61px
    );
  pointer-events: none;
}

/* ----------------------------------------------------------
   8. NAV SCROLL SHRINK
   ---------------------------------------------------------- */
.navbar {
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: rgba(0, 153, 255, 0.3);
}

/* ----------------------------------------------------------
   9. BUTTON ACTIVE STATE
   ---------------------------------------------------------- */
.btn:active {
  transform: scale(0.97);
}

/* ----------------------------------------------------------
   10. HAMBURGER BUTTON
   ---------------------------------------------------------- */
.ham-icon {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hamburger.open .ham-close {
  display: block;
}
