/* VISHVA AUTO ADVISOR — Front-end Scroll Animations */

/* Only hide elements when JS is active — fallback keeps content visible without JS */
html.has-animations .fade-in-up:not(.animated-show),
html.has-animations .slide-in-left:not(.animated-show),
html.has-animations .slide-in-right:not(.animated-show),
html.has-animations .zoom-in:not(.animated-show),
html.has-animations .animate-on-scroll:not(.animated-show),
html.has-animations .step-card-animated:not(.animated-show) {
  opacity: 0;
}

.fade-in-up,
.slide-in-left,
.slide-in-right,
.zoom-in,
.animate-on-scroll,
.step-card-animated {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.has-animations .fade-in-up:not(.animated-show) {
  transform: translateY(30px);
}

html.has-animations .slide-in-left:not(.animated-show) {
  transform: translateX(-40px);
}

html.has-animations .slide-in-right:not(.animated-show) {
  transform: translateX(40px);
}

html.has-animations .zoom-in:not(.animated-show) {
  transform: scale(0.92);
}

.fade-in-up.animated-show,
.slide-in-left.animated-show,
.slide-in-right.animated-show,
.zoom-in.animated-show,
.animate-on-scroll.animated-show,
.step-card-animated.animated-show {
  opacity: 1;
  transform: none;
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Button ripple effect */
.btn-primary,
.btn-gold {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Scroll-to-top button */
.scroll-top-btn {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 1040;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #0f172a;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
}
