/* ==========================================================================
   VestaPayCare — Premium Animations & Micro-Interactions
   ========================================================================== */

/* --- Keyframe Animations --- */

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

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.2); }
  50% { box-shadow: 0 0 40px rgba(14, 165, 233, 0.4); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger Delays */
.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }
.reveal.delay-400 { transition-delay: 0.4s; }
.reveal.delay-500 { transition-delay: 0.5s; }

/* --- Hero Entrance Animations --- */
.hero-badge {
  animation: fade-in-down 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title {
  animation: fade-in-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-description {
  animation: fade-in-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-actions {
  animation: fade-in-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-stats {
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* --- Floating Animation Utility --- */
.float {
  animation: float 4s ease-in-out infinite;
}

.float-delayed {
  animation: float 4s ease-in-out 1s infinite;
}

/* --- Glow Pulse Utility --- */
.glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* --- Animated Gradient Text --- */
.text-animated-gradient {
  background: linear-gradient(135deg, var(--accent-300), var(--accent-400), var(--gold-400), var(--accent-300));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}

/* --- Shimmer Loading Effect --- */
.shimmer {
  background: linear-gradient(
    90deg,
    var(--neutral-100) 25%,
    var(--neutral-200) 50%,
    var(--neutral-100) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* --- Button Ripple Effect --- */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-spread 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-spread {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- Card Hover Glow --- */
.glass-card:hover,
.dark-card:hover {
  box-shadow: var(--shadow-2xl), 0 0 30px -5px rgba(14, 165, 233, 0.15);
}

/* --- Smooth Scrollbar Hide (Mobile) --- */
@media (max-width: 768px) {
  .nav-menu::-webkit-scrollbar {
    display: none;
  }
  .nav-menu {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
