/* ============================================================
   Tax N Ledger — Animations
   ============================================================ */

/* ============================================================
   STANDARD KEYFRAMES
   ============================================================ */

/* ---- Keyframes ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -400% center; }
  100% { background-position: 400% center; }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(201,168,76,0.2); }
  50%       { box-shadow: 0 0 30px rgba(201,168,76,0.55); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradient-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Scroll-reveal base states ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.from-left  { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.scale-in   { transform: scale(0.88); }
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Stagger delays ---- */
.d-1 { transition-delay: 0.08s !important; }
.d-2 { transition-delay: 0.16s !important; }
.d-3 { transition-delay: 0.24s !important; }
.d-4 { transition-delay: 0.32s !important; }
.d-5 { transition-delay: 0.40s !important; }
.d-6 { transition-delay: 0.48s !important; }
.d-7 { transition-delay: 0.56s !important; }

/* ---- Gold shimmer text ---- */
.shimmer-gold {
  background: linear-gradient(
    90deg,
    var(--gold-dark)    0%,
    var(--gold-light)  30%,
    var(--gold-primary) 50%,
    var(--gold-light)  70%,
    var(--gold-dark)   100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ---- Float animation ---- */
.float-anim { animation: float-y 4s ease-in-out infinite; }

/* ---- Glow on hover ---- */
.glow-card:hover { animation: glow-pulse 1.5s ease-in-out infinite; }

/* ---- Hero entrance sequence ---- */
.hero-badge        { animation: fadeInDown 0.7s ease 0.2s  both; }
.hero-heading      { animation: fadeInUp   0.8s ease 0.4s  both; }
.hero-subtext      { animation: fadeInUp   0.8s ease 0.6s  both; }
.hero-btns         { animation: fadeInUp   0.8s ease 0.75s both; }
.hero-trust-row    { animation: fadeInUp   0.8s ease 0.9s  both; }

/* ---- Scroll down arrow ---- */
.scroll-indicator  { animation: bounce-down 2.2s ease-in-out infinite; }

/* ---- WhatsApp pulse ring ---- */
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---- Mobile menu slide-in ---- */
.mobile-menu.open {
  animation: slide-down 0.3s ease;
}

/* ---- Page hero decorative orbs ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.12;
}
.orb-1 {
  width: 400px; height: 400px;
  background: var(--gold-primary);
  top: -100px; right: -100px;
  animation: float-y 8s ease-in-out infinite;
  max-width: 50vw;
}
.orb-2 {
  width: 300px; height: 300px;
  background: var(--gold-dark);
  bottom: -80px; left: -80px;
  animation: float-y 10s ease-in-out infinite reverse;
  max-width: 50vw;
}

/* ---- Counter number ---- */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ---- Card entrance on hover ---- */
.service-card,
.blog-card,
.team-card,
.value-card,
.testimonial-item,
.mv-card,
.pricing-card {
  will-change: transform;
}

/* ---- Gradient animated background (CTA) ---- */
.cta-gradient {
  background: linear-gradient(270deg, #16120a, #0a0a0a, #150f05, #0a0a0a);
  background-size: 400% 400%;
  animation: gradient-flow 8s ease infinite;
}

/* ---- Loading spinner ---- */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

/* ---- Process step icon bounce on hover ---- */
.step-badge {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-item:hover .step-badge {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(201,168,76,0.5);
}

/* ---- Gold underline draw animation ---- */
@keyframes draw-line {
  from { width: 0; }
  to   { width: 60px; }
}
.section-header.animated h2::after {
  animation: draw-line 0.5s ease 0.2s both;
}

/* ---- Typewriter cursor blink ---- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---- Tooltip fade ---- */
.wa-tooltip {
  transition: opacity 0.25s ease;
}

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