/* ══════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════ */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   REVEAL ON SCROLL
══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay variants */
.reveal-delay  { transition-delay: 0.15s; }
.reveal-d1     { transition-delay: 0.1s; }
.reveal-d2     { transition-delay: 0.2s; }
.reveal-d3     { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════
   NAVBAR ENTER
══════════════════════════════════════════════ */
.navbar {
  animation: fadeIn 0.6s ease both;
}

/* ══════════════════════════════════════════════
   HOVER LIFT (utility)
══════════════════════════════════════════════ */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,95,122,.14);
}

/* ══════════════════════════════════════════════
   NAV LINK UNDERLINE ANIMATION
══════════════════════════════════════════════ */
.nav-link {
  position: relative;
}

/* ══════════════════════════════════════════════
   HERO BADGE GLOW
══════════════════════════════════════════════ */
.hero-badge {
  animation: fadeUp 0.7s ease 0.2s both;
}
.hero-title {
  animation: fadeUp 0.7s ease 0.35s both;
}
.hero-sub {
  animation: fadeUp 0.7s ease 0.5s both;
}
.hero-actions {
  animation: fadeUp 0.7s ease 0.65s both;
}

/* ══════════════════════════════════════════════
   STAT NUMBER GLOW ON ANIMATE
══════════════════════════════════════════════ */
.stat-number.counting {
  animation: countUp 0.4s ease both;
}

/* ══════════════════════════════════════════════
   SERVICE CARD ACCENT BORDER (bottom)
══════════════════════════════════════════════ */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════
   CTA BANNER PULSE
══════════════════════════════════════════════ */
.cta-banner .btn-white {
  animation: scaleIn 0.5s ease 0.3s both;
}

/* ══════════════════════════════════════════════
   MOBILE MENU SLIDE
══════════════════════════════════════════════ */
.nav-links.open {
  animation: fadeUp 0.25s ease both;
}

/* ══════════════════════════════════════════════
   FOOTER LINK HOVER SLIDE
══════════════════════════════════════════════ */
.fc-list a {
  position: relative;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}
.fc-list a:hover {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════
   ABOUT BADGE ENTRANCE
══════════════════════════════════════════════ */
.about-badge {
  animation: scaleIn 0.5s ease 0.4s both;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
