/* Enhanced Animations and Interactions */

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Delay classes */
.scroll-reveal.delay-100 { transition-delay: 0.1s; }
.scroll-reveal.delay-200 { transition-delay: 0.2s; }
.scroll-reveal.delay-300 { transition-delay: 0.3s; }
.scroll-reveal.delay-400 { transition-delay: 0.4s; }
.scroll-reveal.delay-500 { transition-delay: 0.5s; }
.scroll-reveal.delay-600 { transition-delay: 0.6s; }
.scroll-reveal.delay-700 { transition-delay: 0.7s; }
.scroll-reveal.delay-800 { transition-delay: 0.8s; }

/* Stagger children */
.stagger-child {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-child.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CARD HOVER EFFECTS ===== */
.step5-offer-card {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step5-offer-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(76, 175, 139, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.12);
}

.step5-include-card {
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.25s ease;
}

.step5-include-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--color-accent);
}

.step5-guarantee {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step5-guarantee:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 139, 0.15);
}

.step5-faq-item {
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.step5-faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.step5-repeat {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step5-repeat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76, 175, 139, 0.2);
}

/* ===== BUTTON ENHANCEMENTS ===== */
.step5-offer-btn,
.step5-repeat-btn,
.step5-closing-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step5-offer-btn::after,
.step5-repeat-btn::after,
.step5-closing-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.step5-offer-btn:hover,
.step5-repeat-btn:hover,
.step5-closing-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.step5-offer-btn:hover::after,
.step5-repeat-btn:hover::after,
.step5-closing-btn:hover::after {
  left: 100%;
}

.step5-offer-btn:active,
.step5-repeat-btn:active,
.step5-closing-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ===== TRUST BADGES ANIMATION ===== */
.step5-trust-badge {
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s ease;
}

.step5-trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step5-trust-icon {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step5-trust-badge:hover .step5-trust-icon {
  transform: scale(1.2);
}

/* ===== PRICE PULSE ANIMATION ===== */
@keyframes priceHighlight {
  0%, 100% {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  50% {
    text-shadow: 0 4px 30px rgba(255, 255, 255, 0.4),
                 0 0 40px rgba(255, 255, 255, 0.2);
  }
}

.step5-price-new {
  animation: priceHighlight 3s ease-in-out infinite;
}

/* ===== FAQ ICON ROTATION ===== */
.step5-faq-icon {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step5-faq-item.active .step5-faq-icon {
  transform: rotate(180deg);
}

/* ===== FLOATING ELEMENTS ===== */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(76, 175, 139, 0.3), transparent);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

/* ===== GRADIENT OVERLAY ===== */
.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(76, 175, 139, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(76, 175, 139, 0.05) 0%, transparent 50%);
  animation: gradientShift 20s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
  width: 100%;
  height: 60px;
  position: relative;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  transform: translateY(-50%);
}

/* ===== SMOOTH SCROLL BEHAVIOR ===== */
html {
  scroll-behavior: smooth;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  .scroll-reveal {
    transform: translateY(15px);
  }
  
  .stagger-child {
    transform: translateY(10px);
  }
  
  /* Reduce animations on mobile */
  .particle {
    display: none;
  }
  
  .gradient-overlay {
    animation: none;
  }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
  
  .stagger-child {
    opacity: 1;
    transform: none;
  }
  
  .particle {
    display: none;
  }
  
  .gradient-overlay {
    animation: none;
  }
}
