/* ============================================================
   ED CLEAR & CLEAN SERVICES — ANIMATIONS
   ============================================================ */

/* ── HERO TEXT STAGGER ── */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: wordReveal 0.6s ease forwards;
}
@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ── PARALLAX ── */
.parallax-bg {
  will-change: transform;
}

/* ── COUNTER ── */
.counter-wrap {
  display: inline-block;
}

/* ── HERO SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: scrollFade 2s ease infinite;
  cursor: pointer;
  z-index: 3;
}
.scroll-arrow {
  width: 28px;
  height: 28px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}
@keyframes scrollFade {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ── SPARKLE ELEMENTS ── */
.sparkle {
  position: absolute;
  pointer-events: none;
  animation: sparkleAnim 3s ease-in-out infinite;
}
.sparkle::before, .sparkle::after {
  content: '✦';
  position: absolute;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
}
@keyframes sparkleAnim {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* ── BUBBLE FLOAT ── */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent);
  border: 1px solid rgba(255,255,255,0.2);
  animation: bubbleRise linear infinite;
  pointer-events: none;
}
@keyframes bubbleRise {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  100% { transform: translateY(-600px) scale(0.3); opacity: 0; }
}

/* ── IMAGE MASK REVEAL ── */
.mask-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.mask-reveal.visible {
  clip-path: inset(0 0% 0 0);
}

/* ── SPLIT LAYOUT HOVER ── */
.split-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}
.split-image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.split-image:hover img { transform: scale(1.05); }
.split-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--orange);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-family: var(--font-head);
  box-shadow: var(--shadow-orange);
  animation: badgeBounce 2s ease infinite;
}
@keyframes badgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── CATEGORY CARD HOVER ── */
.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  height: 440px;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover img { transform: scale(1.08); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  transition: background 0.4s ease;
}
.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(42,122,55,0.9) 0%, rgba(42,122,55,0.3) 60%, transparent 100%);
}
.category-card-content h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.category-card-content p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.category-card-content .btn {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.4s ease;
}
.category-card:hover .category-card-content .btn {
  opacity: 1;
  transform: translateY(0);
}
.category-card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

/* ── FORM STYLES ── */
.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(61,170,78,0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group.shake input,
.form-group.shake select,
.form-group.shake textarea {
  animation: shake 0.4s ease;
  border-color: #ef4444;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ── SUCCESS STATE ── */
.form-success {
  text-align: center;
  padding: 48px 24px;
  display: none;
}
.form-success.show { display: block; }
.success-checkmark {
  width: 72px;
  height: 72px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  animation: checkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes checkPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ── MAP MARKER ── */
.map-marker-bounce {
  animation: markerBounce 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.5s both;
}
@keyframes markerBounce {
  0% { transform: translateY(-40px); opacity: 0; }
  60% { transform: translateY(6px); }
  80% { transform: translateY(-4px); }
  100% { transform: translateY(0); opacity: 1; }
}

/* ── HERO VIDEO ── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* ── ABOUT STATS ── */
.stats-bar {
  background: linear-gradient(135deg, var(--green-dark), var(--dark-2));
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stats-bar-item { position: relative; }
.stats-bar-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(255,255,255,0.15);
}
.stats-bar-item .stat-number { color: var(--white); }
.stats-bar-item .stat-label { color: rgba(255,255,255,0.65); }

@media (max-width: 768px) {
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stats-bar-item:not(:last-child)::after { display: none; }
  .category-card { height: 320px; }
}
