/* ============================================
   LAUDERHILL CARPET CLEANING — ANIMATIONS
   ============================================ */

/* ── KEYFRAMES ── */
@keyframes ce-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

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

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

@keyframes ce-slide-right {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ce-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes ce-blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

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

@keyframes ce-count-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ce-bar-fill {
  from { width: 0; }
  to   { width: var(--ce-bar-width, 75%); }
}

/* ── HERO SVG SHAPES ── */
.ce-hero-shape-1 {
  position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: rgba(37,99,168,0.12);
  animation: ce-blob 12s ease-in-out infinite;
}
.ce-hero-shape-2 {
  position: absolute; bottom: -60px; left: -60px;
  width: 360px; height: 360px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: rgba(13,148,136,0.1);
  animation: ce-blob 16s ease-in-out infinite reverse;
}
.ce-hero-shape-3 {
  position: absolute; top: 30%; right: 10%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
  animation: ce-float 6s ease-in-out infinite;
}

/* ── SCROLL ANIMATIONS ── */
.ce-anim-ready {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.ce-anim-up    { transform: translateY(40px); }
.ce-anim-left  { transform: translateX(-40px); }
.ce-anim-right { transform: translateX(40px); }
.ce-anim-scale { transform: scale(0.92); }

.ce-anim-ready.ce-visible {
  opacity: 1;
  transform: none;
}

/* ── STAGGER DELAYS ── */
.ce-delay-1 { transition-delay: 0.1s; }
.ce-delay-2 { transition-delay: 0.2s; }
.ce-delay-3 { transition-delay: 0.3s; }
.ce-delay-4 { transition-delay: 0.4s; }
.ce-delay-5 { transition-delay: 0.5s; }
.ce-delay-6 { transition-delay: 0.6s; }

/* ── LOADING SHIMMER ── */
.ce-shimmer {
  background: linear-gradient(90deg, var(--ce-gray-100) 25%, var(--ce-gray-200) 50%, var(--ce-gray-100) 75%);
  background-size: 200% 100%;
  animation: ce-shimmer 1.5s infinite;
  border-radius: var(--ce-radius);
}

/* ── FLOATING BADGE ── */
.ce-floating-badge {
  animation: ce-float 4s ease-in-out infinite;
}

/* ── COUNTER ANIMATION ── */
.ce-counter-animated {
  animation: ce-count-up 0.6s ease both;
}

/* ── HOVER LIFT ── */
.ce-hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ce-hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26,39,68,0.14);
}

/* ── IMAGE ZOOM ── */
.ce-img-zoom {
  overflow: hidden;
}
.ce-img-zoom img {
  transition: transform 0.6s ease;
}
.ce-img-zoom:hover img {
  transform: scale(1.06);
}

/* ── WAVE DIVIDER ── */
.ce-wave {
  display: block; width: 100%; overflow: hidden; line-height: 0;
}
.ce-wave svg { display: block; }

/* ── GRADIENT TEXT ── */
.ce-gradient-text {
  background: linear-gradient(135deg, var(--ce-blue), var(--ce-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SPIN ── */
.ce-spin {
  animation: ce-spin-slow 20s linear infinite;
}

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

/* ── HERO FADE IN ── */
.ce-hero-fade-1 { animation: ce-slide-right 0.8s ease 0.2s both; }
.ce-hero-fade-2 { animation: ce-slide-up 0.8s ease 0.4s both; }
.ce-hero-fade-3 { animation: ce-slide-up 0.8s ease 0.6s both; }
.ce-hero-fade-4 { animation: ce-slide-up 0.8s ease 0.8s both; }
.ce-hero-fade-5 { animation: ce-scale-in 0.8s ease 0.4s both; }
