/* ============================================================
   ANIMATIONS.CSS - Keyframes, Transitions, States
   Premium Accountancy Website
   ============================================================ */

/* -------- KEYFRAMES -------- */

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 12px 24px rgba(14, 116, 57, 0.28);
  }
  50% {
    box-shadow: 0 12px 24px rgba(14, 116, 57, 0.28), 0 0 0 8px rgba(37, 211, 102, 0.15);
  }
}

@keyframes scrollDot {
  0% { top: -4px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: calc(100% + 4px); opacity: 0; }
}

/* -------- GSAP INITIAL STATES -------- */

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-text span {
  display: block;
  opacity: 0;
  transform: translateY(24px);
}

/* SVG line draw */
.svg-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

/* -------- MAGNETIC BUTTON -------- */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform;
}

/* -------- TILT CARD -------- */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* -------- HOVER MICRO-INTERACTIONS -------- */

/* Image zoom on hover */
.team__image-wrapper {
  overflow: hidden;
}

.team__image-wrapper img,
.team__image-placeholder {
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team__image-wrapper:hover img,
.team__image-wrapper:hover .team__image-placeholder {
  transform: scale(1.04);
}

/* Card hover lifts */
.pricing__card,
.services__card,
.why__card,
.pain__card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

/* -------- CUSTOM CURSOR -------- */

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  pointer-events: none;
  z-index: 99999;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  display: none;
}

.custom-cursor.hovering {
  width: 44px;
  height: 44px;
  background: rgba(201, 169, 98, 0.08);
}

/* -------- REDUCED MOTION -------- */

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

  .reveal-up,
  .reveal-text span {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__shape,
  .hero__card--float,
  .hero__scroll-dot,
  .hero__badge-dot {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
