/* ============================================
   PET GROOMING HQ - ANIMATIONS
   pgh-animations.css
   ============================================ */

/* ===== KEYFRAMES ===== */
@keyframes pgh-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pgh-fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pgh-fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pgh-fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes pgh-pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

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

@keyframes pgh-wave-anim {
  0% { d: path("M0,50 C150,80 350,20 500,50 C650,80 850,20 1000,50 L1000,100 L0,100 Z"); }
  50% { d: path("M0,50 C150,20 350,80 500,50 C650,20 850,80 1000,50 L1000,100 L0,100 Z"); }
  100% { d: path("M0,50 C150,80 350,20 500,50 C650,80 850,20 1000,50 L1000,100 L0,100 Z"); }
}

@keyframes pgh-shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes pgh-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

@keyframes pgh-tick {
  0% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 0; }
}

@keyframes pgh-draw-line {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes pgh-counter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO TEXT ANIMATIONS ===== */
.pgh-hero-title .pgh-anim-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: pgh-fadeInUp 0.6s ease forwards;
}

.pgh-hero-title .pgh-anim-word:nth-child(1) { animation-delay: 0.1s; }
.pgh-hero-title .pgh-anim-word:nth-child(2) { animation-delay: 0.2s; }
.pgh-hero-title .pgh-anim-word:nth-child(3) { animation-delay: 0.3s; }
.pgh-hero-title .pgh-anim-word:nth-child(4) { animation-delay: 0.4s; }
.pgh-hero-title .pgh-anim-word:nth-child(5) { animation-delay: 0.5s; }
.pgh-hero-title .pgh-anim-word:nth-child(6) { animation-delay: 0.6s; }

.pgh-hero-badge { animation: pgh-fadeIn 0.5s ease 0.1s both; }
.pgh-hero-desc { animation: pgh-fadeInUp 0.6s ease 0.7s both; }
.pgh-hero-actions { animation: pgh-fadeInUp 0.6s ease 0.9s both; }
.pgh-hero-stats { animation: pgh-fadeInUp 0.6s ease 1.1s both; }
.pgh-hero-collage { animation: pgh-fadeInRight 0.8s ease 0.4s both; }

/* ===== FLOAT ANIMATION ===== */
.pgh-float { animation: pgh-float 4s ease-in-out infinite; }
.pgh-float-delayed { animation: pgh-float 4s ease-in-out 1.5s infinite; }

.pgh-hero-float-badge { animation: pgh-float 3.5s ease-in-out infinite; }

/* ===== PULSE DOT ===== */
.pgh-pulse-dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pgh-accent);
}

.pgh-pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--pgh-accent);
  opacity: 0.3;
  animation: pgh-pulse-ring 1.5s ease-out infinite;
}

/* ===== DECORATIVE SVG WAVE ===== */
.pgh-wave-svg { display: block; width: 100%; overflow: hidden; line-height: 0; }
.pgh-wave-svg path { animation: none; }

/* ===== SCROLL PROGRESS BAR ===== */
.pgh-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pgh-primary), var(--pgh-accent));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== LOADING SKELETON ===== */
.pgh-skeleton {
  background: linear-gradient(90deg, var(--pgh-gray-100) 25%, var(--pgh-gray-200) 50%, var(--pgh-gray-100) 75%);
  background-size: 2000px 100%;
  animation: pgh-shimmer 1.5s infinite;
  border-radius: 6px;
}

/* ===== COUNTER ANIMATIONS ===== */
.pgh-counter-num {
  display: inline-block;
  animation: pgh-counter 0.5s ease both;
}

/* ===== STAGGER CHILDREN ===== */
.pgh-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pgh-stagger.pgh-revealed > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.pgh-stagger.pgh-revealed > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.pgh-stagger.pgh-revealed > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.pgh-stagger.pgh-revealed > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.pgh-stagger.pgh-revealed > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.pgh-stagger.pgh-revealed > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }

/* ===== CARD HOVER MICRO-INTERACTIONS ===== */
.pgh-card-hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.pgh-card-hover-lift:hover {
  transform: translateY(-8px) scale(1.01);
}

/* ===== BUTTON RIPPLE ===== */
.pgh-btn {
  position: relative;
  overflow: hidden;
}

.pgh-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.pgh-btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: 0s;
}

/* ===== TESTIMONIAL CAROUSEL TRANSITION ===== */
.pgh-carousel-slide-enter {
  animation: pgh-fadeInRight 0.4s ease;
}

.pgh-carousel-slide-leave {
  animation: pgh-fadeIn 0.4s ease reverse;
}

/* ===== TEAM CARD ===== */
.pgh-team-card-img-wrap .pgh-team-social {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.pgh-team-card:hover .pgh-team-social {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== PROCESS STEPS ===== */
.pgh-process-step-num {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pgh-process-step:hover .pgh-process-step-num {
  transform: scale(1.15);
  box-shadow: 0 0 0 10px rgba(31,111,120,0.1);
}

/* ===== QUIZ ANIMATIONS ===== */
.pgh-quiz-question-enter {
  animation: pgh-fadeInUp 0.4s ease;
}

.pgh-quiz-result {
  animation: pgh-scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== CHECKLIST CHECK ANIMATION ===== */
.pgh-checklist-checkbox.pgh-checked {
  animation: pgh-bounce 0.4s ease;
}

/* ===== IMAGE REVEAL ===== */
.pgh-img-reveal {
  overflow: hidden;
  border-radius: var(--pgh-radius);
}

.pgh-img-reveal img {
  transform: scale(1.1);
  transition: transform 1s ease;
}

.pgh-img-reveal.pgh-revealed img {
  transform: scale(1);
}

/* ===== SCROLL INDICATOR ===== */
.pgh-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-family: var(--pgh-font-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  animation: pgh-float 2s ease-in-out infinite;
}

.pgh-scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.pgh-scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: pgh-fadeInUp 1.5s ease infinite;
}

/* ===== ROTATING BADGE ===== */
.pgh-rotating-badge {
  animation: pgh-spin-slow 20s linear infinite;
}

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

/* ===== ACCENT LINE ===== */
.pgh-accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--pgh-primary), var(--pgh-secondary));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.pgh-accent-line-center {
  margin-left: auto;
  margin-right: auto;
}

/* ===== PAGE TRANSITIONS ===== */
.pgh-page-enter {
  animation: pgh-fadeIn 0.4s ease;
}
