/* ============================================
   THE STRATEGIC EDGE — Premium Animations
   animations.css (add-on, never modifies style.css)
   ============================================ */

/* ── Scroll-reveal base states ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.reveal-left {
  transform: translateX(-40px);
}
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.reveal-scale {
  transform: scale(0.93) translateY(20px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.55s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: none;
}

/* ── Card hover lift ───────────────────────────── */
.card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14) !important;
}

/* ── Button shimmer ────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn:hover::after {
  left: 160%;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35) !important;
}
.btn:active {
  transform: translateY(0);
}

/* ── Gold heading shimmer ──────────────────────── */
.shimmer-heading {
  background: linear-gradient(
    90deg,
    #f59e0b 0%,
    #fde68a 40%,
    #f59e0b 60%,
    #f59e0b 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-sweep 3.5s linear infinite;
}
@keyframes shimmer-sweep {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── Navbar scroll shadow ──────────────────────── */
.navbar {
  transition: box-shadow 0.3s ease, background 0.3s ease !important;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25) !important;
}

/* ── Hero parallax container ───────────────────── */
.hero {
  background-attachment: fixed;
  will-change: transform;
}

/* ── Nav link underline slide ──────────────────── */
.nav-links a:not(.btn) {
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: #f59e0b;
  transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover::after {
  width: 100%;
}

/* ── Testimonial/alumni card pulse on hover ────── */
.testimonial-card,
.alumni-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease !important;
}
.testimonial-card:hover,
.alumni-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12) !important;
}

/* ── FAQ item smooth expand feel ──────────────── */
.faq-item {
  transition: box-shadow 0.3s ease !important;
}
.faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ── Form inputs focus glow ────────────────────── */
.form-control {
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.form-control:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
  outline: none !important;
}

/* ── Section entrance line ─────────────────────── */
.section-padding {
  position: relative;
}

/* ── Smooth page load fade ─────────────────────── */
body {
  animation: page-fade-in 0.5s ease forwards;
}
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
