/* ============================================================
   Lake Norman Pet Grooming — ce-animations.css
   ============================================================ */

/* ── Gradient Animation ── */
@keyframes ce-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ce-animated-gradient {
  background: linear-gradient(-45deg, #355C7D, #6C8EAD, #F8C471, #355C7D);
  background-size: 400% 400%;
  animation: ce-gradient-shift 8s ease infinite;
}

/* ── Text shimmer ── */
@keyframes ce-shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}

.ce-text-shimmer {
  background: linear-gradient(90deg,
    var(--ce-primary) 30%,
    var(--ce-accent)  50%,
    var(--ce-primary) 70%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ce-shimmer 3s linear infinite;
}

/* ── Pulse ── */
@keyframes ce-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
.ce-pulse { animation: ce-pulse 2.5s ease-in-out infinite; }

/* ── Bounce ── */
@keyframes ce-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.ce-bounce { animation: ce-bounce 2s ease-in-out infinite; }

/* ── Fade In Up ── */
@keyframes ce-fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ce-fade-in-up { animation: ce-fade-in-up 0.7s ease forwards; }

/* ── Stagger children ── */
.ce-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.ce-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.ce-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.ce-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.ce-stagger > *:nth-child(5) { animation-delay: 0.5s; }

/* ── Number counter animation ── */
.ce-counter { display: inline-block; }

/* ── Stat reveal ── */
@keyframes ce-count-up {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ce-stat-revealed {
  animation: ce-count-up 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ── Timeline item slide ── */
@keyframes ce-slide-from-left {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ce-slide-from-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Confetti burst ── */
@keyframes ce-confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(200px) rotate(360deg); opacity: 0; }
}

.ce-confetti-particle {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 2px;
  animation: ce-confetti-fall 1.5s ease forwards;
  pointer-events: none;
}

/* ── Progress bar fill ── */
@keyframes ce-progress-fill {
  from { width: 0%; }
}
.ce-progress-animate { animation: ce-progress-fill 1.2s ease-out forwards; }

/* ── Ripple effect ── */
.ce-ripple {
  position: relative;
  overflow: hidden;
}
.ce-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.ce-ripple:active::after { opacity: 1; }

/* ── Scroll indicator ── */
.ce-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.7);
  font-family: var(--ce-font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  animation: ce-bounce 2s ease-in-out infinite;
}

.ce-scroll-indicator-arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}

/* ── Tab transitions ── */
.ce-tab-content { display: none; }
.ce-tab-content.active { display: block; animation: ce-fade-in-up 0.4s ease; }

/* ── Hero image crossfade ── */
@keyframes ce-hero-slide {
  0%, 100% { opacity: 1; }
  33%  { opacity: 0; }
  66%  { opacity: 1; }
}

/* ── Card hover shimmer ── */
.ce-hover-shimmer {
  position: relative;
  overflow: hidden;
}
.ce-hover-shimmer::after {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.15) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.ce-hover-shimmer:hover::after { left: 125%; }

/* ── Checkmark draw ── */
@keyframes ce-draw-check {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
.ce-check-svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ce-draw-check 0.5s ease forwards 0.3s;
}

/* ── Notification pop ── */
@keyframes ce-notification-pop {
  0%   { transform: scale(0.5) translateY(20px); opacity: 0; }
  60%  { transform: scale(1.1) translateY(-4px); opacity: 1; }
  100% { transform: scale(1)   translateY(0);    opacity: 1; }
}
.ce-notification {
  animation: ce-notification-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ── Rotate spin ── */
@keyframes ce-spin { to { transform: rotate(360deg); } }
.ce-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: ce-spin 0.7s linear infinite;
}
