/* ============================================
   Adorable Pet Grooming - Animations
   ============================================ */

/* SVG Animated Dividers */
.wave-divider {
  position: relative;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
}

/* Floating Paw Prints */
@keyframes floatPaw {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(10deg); opacity: 0.3; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
}
.float-paw {
  position: absolute;
  pointer-events: none;
  animation: floatPaw 6s ease-in-out infinite;
  color: rgba(44,110,73,0.08);
  font-size: 2rem;
}
.float-paw:nth-child(1) { animation-delay: 0s; top: 15%; left: 5%; }
.float-paw:nth-child(2) { animation-delay: 1.5s; top: 60%; right: 8%; font-size: 1.5rem; }
.float-paw:nth-child(3) { animation-delay: 3s; top: 30%; right: 20%; font-size: 2.5rem; }
.float-paw:nth-child(4) { animation-delay: 4.5s; bottom: 20%; left: 12%; font-size: 1.2rem; }

/* Parallax Container */
.parallax-wrap { position: relative; overflow: hidden; }
.parallax-bg { will-change: transform; }

/* Hero entrance animations */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  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.9); }
  to { opacity: 1; transform: scale(1); }
}

.anim-slide-up { animation: slideInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.anim-slide-left { animation: slideInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.anim-slide-right { animation: slideInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.anim-fade-in { animation: fadeIn 0.7s ease forwards; }
.anim-scale-in { animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }
.delay-6 { animation-delay: 0.6s; opacity: 0; }

/* Hover card lift */
.hover-lift { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(44,110,73,0.14); }

/* Shimmer loading */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, rgba(44,110,73,0.06) 25%, rgba(44,110,73,0.12) 50%, rgba(44,110,73,0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Counter animation */
.counter-animate { transition: all 1.5s ease-out; }

/* Page transition overlay */
@keyframes pageReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0% 0 0); }
}
.page-reveal {
  animation: pageReveal 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Pulsing green ring */
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(44,110,73,0.4); }
  70% { box-shadow: 0 0 0 12px rgba(44,110,73,0); }
  100% { box-shadow: 0 0 0 0 rgba(44,110,73,0); }
}
.ring-pulse { animation: ringPulse 2.5s infinite; }

/* Blob morphing background */
@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 40% 60% 50%; }
  75% { border-radius: 40% 60% 50% 40% / 70% 30% 50% 40%; }
}
.blob-bg {
  animation: blobMorph 12s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(44,110,73,0.15), rgba(76,149,108,0.1));
}

/* Image reveal on hover */
.img-hover-zoom { overflow: hidden; }
.img-hover-zoom img { transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.img-hover-zoom:hover img { transform: scale(1.08); }

/* Underline hover effect */
.hover-underline {
  position: relative;
  display: inline;
}
.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.hover-underline:hover::after { width: 100%; }

/* Green dot indicator */
.dot-online {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  display: inline-block;
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Quiz question fade */
@keyframes questionFade {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.quiz-question-animate { animation: questionFade 0.3s ease forwards; }

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(44,110,73,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Notification toast */
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
.toast-apg {
  position: fixed;
  top: 100px;
  right: 24px;
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  max-width: 320px;
  animation: toastIn 0.3s ease forwards;
}
.toast-apg.hiding { animation: toastOut 0.3s ease forwards; }
.toast-apg .toast-icon { font-size: 1.1rem; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section separator leaf */
.leaf-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.leaf-separator::before,
.leaf-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.leaf-separator-icon {
  color: var(--secondary);
  font-size: 1.1rem;
}

/* Tooltip */
.tooltip-apg {
  position: relative;
  display: inline-block;
  cursor: help;
}
.tooltip-apg::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}
.tooltip-apg:hover::before { opacity: 1; }

/* Animated border */
@keyframes borderAnim {
  0% { border-color: var(--primary); }
  50% { border-color: var(--secondary); }
  100% { border-color: var(--primary); }
}
.border-animate { animation: borderAnim 3s ease infinite; }
