/* ============================================
   TienHui Animation Keyframes
   All animations use CSS custom properties
   from variables.css
   ============================================ */

/* --- Entrance Animations --- */

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes counterReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.8); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* --- Loop Animations --- */

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

@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(0, 200, 83, 0.15); }
}

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

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes fabBounce {
  from { opacity: 0; transform: scale(0) translateY(20px); }
  60% { transform: scale(1.15) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

/* --- Animation Utility Classes --- */

.anim-fade-slide-down { animation: fadeSlideDown 0.8s ease-out both; }
.anim-fade-slide-up { animation: fadeSlideUp 0.6s ease-out both; }
.anim-fade-in { animation: fadeIn 0.6s ease-out both; }
.anim-scale-in { animation: scaleIn 0.6s ease-out both; }
.anim-pop-in { animation: popIn 0.5s ease-out both; }
.anim-slide-right { animation: slideRight 0.5s ease-out both; }
.anim-float { animation: float 6s ease-in-out infinite; }
.anim-glow { animation: cardGlow 3s ease-in-out infinite; }
.anim-fab-bounce { animation: fabBounce 0.6s ease-out 1s both; }

/* --- Shimmer CTA (pseudo-element sweep) --- */

.shimmer-cta {
  position: relative;
  overflow: hidden;
}
.shimmer-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s ease-in-out 2s 3;
  pointer-events: none;
}

/* --- Zalo FAB Pulse Ring --- */

.zalo-fab-pulse {
  position: relative;
}
.zalo-fab-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s ease-out 2s infinite;
  z-index: -1;
}
