/* ============================================
   ANIMATIONS & TRANSITIONS
   Cleaning Service Website
   ============================================ */

/* ------------------------------------------
   1. FADE-IN ANIMATIONS (Hero Content)
   ------------------------------------------ */

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

.delay-3 {
  animation-delay: 0.9s;
}

/* ------------------------------------------
   2. SCROLL REVEAL
   ------------------------------------------ */

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--delay, 0s);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------
   3. HERO SCROLL INDICATOR
   ------------------------------------------ */

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator .scroll-line {
  width: 2px;
  height: 20px;
  background: currentColor;
  border-radius: 1px;
  animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollLineMove {
  0%, 100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 0.4;
  }
}

/* ------------------------------------------
   4. NAVBAR TRANSITIONS
   ------------------------------------------ */

.navbar {
  transition: background-color 0.35s ease,
              box-shadow 0.35s ease;
}


/* ------------------------------------------
   5. CARD HOVER EFFECTS
   ------------------------------------------ */

.value-card,
.target-card,
.service-card,
.pricing-card {
  transition: transform 0.3s ease,
              box-shadow 0.3s ease;
}

.value-card:hover,
.target-card:hover,
.service-card:hover,
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ------------------------------------------
   6. BUTTON ANIMATIONS
   ------------------------------------------ */

.btn {
  transition: transform 0.2s ease,
              box-shadow 0.2s ease,
              background-color 0.2s ease,
              color 0.2s ease;
}

.btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: scale(0.98);
}

/* ------------------------------------------
   7. FORM FOCUS ANIMATIONS
   ------------------------------------------ */

input,
textarea,
select {
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
  outline: none;
}

/* ------------------------------------------
   8. TESTIMONIALS SLIDER
   ------------------------------------------ */

.testimonials-track {
  transition: transform 0.5s ease;
}

.dot {
  transition: transform 0.3s ease,
              background-color 0.3s ease;
}

.dot.active {
  transform: scale(1.35);
}

/* ------------------------------------------
   9. CURSOR GLOW
   ------------------------------------------ */

#cursorGlow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(74, 144, 217, 0.08) 0%,
    rgba(74, 144, 217, 0.02) 40%,
    transparent 70%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(2px);
}

#cursorGlow.visible {
  opacity: 1;
}

@media (max-width: 768px) {
  #cursorGlow {
    display: none !important;
  }
}

/* ------------------------------------------
   10. PARTICLE CANVAS
   ------------------------------------------ */

.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Nav toggle styles moved to fixes.css */

/* ------------------------------------------
   11. FORM SUBMIT BUTTON LOADING STATE
   ------------------------------------------ */

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

.btn-submit {
  position: relative;
}

.btn-submit.loading {
  color: transparent;
  pointer-events: none;
}

.btn-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinLoader 0.6s linear infinite;
}

/* ------------------------------------------
   13. FORM MESSAGE (Success / Error)
   ------------------------------------------ */

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

.form-message {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  animation: slideDown 0.4s ease forwards;
}

.form-message.success {
  background-color: rgba(46, 160, 67, 0.12);
  color: #1a7f37;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

.form-message.error {
  background-color: rgba(218, 54, 51, 0.12);
  color: #cf222e;
  border: 1px solid rgba(218, 54, 51, 0.3);
}
