/* ═══════════════════════════════════════════════════════════════
   DUBE AUTO DETAIL — PREMIUM ANIMATIONS & EFFECTS
   Features: Hero glow, parallax, shine, counters, marquee, glassmorphism
═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   1. HERO SECTION ENHANCEMENTS
  ────────────────────────────────────────────────────────────── */

.hero__content {
  animation: heroFadeInUp 1.2s cubic-bezier(0.2, 0.9, 0.4, 1.1) both;
}

.hero__text-col {
  animation: heroFadeInUp 1.2s cubic-bezier(0.2, 0.9, 0.4, 1.1) 0.2s both !important;
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulsing glow effect on CTA button */
.btn--red {
  position: relative;
  box-shadow: 0 0 20px rgba(217, 43, 43, 0.3);
  transition: all 0.35s ease;
}

.btn--red::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(217, 43, 43, 0.5) 0%, transparent 70%);
  opacity: 0;
  animation: pulseGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

.btn--red:hover {
  box-shadow: 0 0 30px rgba(217, 43, 43, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
  background: #b52424;
}

/* ──────────────────────────────────────────────────────────────
   2. SMOOTH SCROLL REVEAL (complementing AOS)
  ────────────────────────────────────────────────────────────── */

[data-aos="fade-up"] {
  --aos-duration: 800ms;
  --aos-delay: 0ms;
  --aos-easing: cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

[data-aos="fade-up-stagger"] {
  --aos-duration: 600ms;
  --aos-easing: cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Fade up on scroll with custom easing */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  animation: revealUp 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ──────────────────────────────────────────────────────────────
   3. PARALLAX SCROLLING (mobile-disabled)
  ────────────────────────────────────────────────────────────── */

.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: background-position;
}

@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Parallax with GSAP for smoother control */
.parallax-content {
  position: relative;
  z-index: 2;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ──────────────────────────────────────────────────────────────
   4. HOVER GLOW EFFECTS ON CARDS
  ────────────────────────────────────────────────────────────── */

.card-glow {
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, 
    rgba(29, 61, 99, 0.2) 0%, 
    rgba(217, 43, 43, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card-glow:hover {
  transform: scale(1.02);
  border-color: rgba(217, 43, 43, 0.4);
  box-shadow: 
    0 0 20px rgba(217, 43, 43, 0.2),
    0 0 40px rgba(29, 61, 99, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.card-glow:hover::before {
  opacity: 1;
}

.card-glow .card-icon {
  transition: all 0.35s ease;
}

.card-glow:hover .card-icon {
  transform: rotate(12deg) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(217, 43, 43, 0.4));
}

/* Service card specific */
.service-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card:hover {
  border-color: rgba(217, 43, 43, 0.3);
  box-shadow: 
    0 0 30px rgba(217, 43, 43, 0.15),
    inset 0 0 20px rgba(217, 43, 43, 0.05);
}

/* ──────────────────────────────────────────────────────────────
   5. WATER / SHINE REFLECTION ANIMATION
  ────────────────────────────────────────────────────────────── */

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: shineSwipe 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSwipe {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Water ripple effect for badges */
@keyframes waterRipple {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.ripple-badge {
  position: relative;
}

.ripple-badge::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(217, 43, 43, 0.5);
  animation: waterRipple 2s ease-out infinite;
}

/* ──────────────────────────────────────────────────────────────
   6. COUNTER ANIMATIONS (for stats)
  ────────────────────────────────────────────────────────────── */

.counter {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-display);
}

.counter-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.stats-container {
  display: grid;
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
  background: rgba(217, 43, 43, 0.05);
  border: 1px solid rgba(217, 43, 43, 0.1);
}

.stat-card:hover {
  background: rgba(217, 43, 43, 0.1);
  transform: translateY(-5px);
}

/* ──────────────────────────────────────────────────────────────
   7. TESTIMONIAL MARQUEE (auto-scrolling)
  ────────────────────────────────────────────────────────────── */

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marqueeScroll 40s linear infinite;
  width: fit-content;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  min-width: 320px;
  flex-shrink: 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.marquee-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(217, 43, 43, 0.3);
}

.marquee-stars {
  color: #ffc107;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.marquee-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.marquee-author {
  font-weight: 600;
  color: var(--red);
  font-size: 0.85rem;
}

/* ──────────────────────────────────────────────────────────────
   8. ANIMATED BOOKING FORM (multi-step)
  ────────────────────────────────────────────────────────────── */

.form-progress {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.progress-step.active {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(217, 43, 43, 0.4);
  transform: scale(1.1);
}

.progress-step.completed {
  background: rgba(217, 43, 43, 0.3);
  border-color: var(--red);
}

.progress-line {
  height: 2px;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.progress-line::after {
  content: '';
  position: absolute;
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width 0.5s ease;
}

.form-step {
  display: none;
  animation: stepFadeIn 0.5s ease both;
}

.form-step.active {
  display: block;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vehicle-option {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vehicle-option input[type="radio"] {
  display: none;
}

.vehicle-option input[type="radio"]:checked + .vehicle-label {
  background: rgba(217, 43, 43, 0.2);
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(217, 43, 43, 0.3);
}

.vehicle-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.vehicle-label:hover {
  border-color: rgba(217, 43, 43, 0.5);
}

.vehicle-icon {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.vehicle-option input[type="radio"]:checked + .vehicle-label .vehicle-icon {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 10px rgba(217, 43, 43, 0.4));
}

.price-live {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-display);
  transition: all 0.3s ease;
}

.price-live.updated {
  animation: priceUpdate 0.5s ease;
}

@keyframes priceUpdate {
  0% {
    transform: scale(1.2);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ──────────────────────────────────────────────────────────────
   9. BEFORE & AFTER SLIDER
  ────────────────────────────────────────────────────────────── */

img-comparison-slider {
  max-width: 100%;
  margin: 2rem auto;
}

.comparison-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(217, 43, 43, 0.2);
  border: 1px solid rgba(217, 43, 43, 0.2);
}

/* ──────────────────────────────────────────────────────────────
   10. GLASSMORPHISM SECTION
  ────────────────────────────────────────────────────────────── */

.glassmorphism-section {
  position: relative;
  padding: 4rem 2rem;
  margin: 4rem 0;
}

.glassmorphism-bg {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.8);
  z-index: 0;
}

.glassmorphism-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.glass-card {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 3rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    0 0 60px rgba(217, 43, 43, 0.1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(217, 43, 43, 0.3);
  box-shadow: 
    inset 0 0 30px rgba(255, 255, 255, 0.08),
    0 0 80px rgba(217, 43, 43, 0.2);
  transform: translateY(-8px);
}

.glass-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(217, 43, 43, 0.2);
  filter: drop-shadow(0 0 15px rgba(217, 43, 43, 0.3));
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.glass-card:hover .glass-icon {
  transform: rotate(10deg) scale(1.1);
  background: rgba(217, 43, 43, 0.3);
  filter: drop-shadow(0 0 25px rgba(217, 43, 43, 0.5));
}

.glass-title {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.glass-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Grid for glass cards */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ──────────────────────────────────────────────────────────────
   11. LOADING SCREEN ENHANCEMENTS
  ────────────────────────────────────────────────────────────── */

#loading-screen {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-grey) 100%);
}

#loading-bar {
  background: linear-gradient(90deg, var(--red) 0%, rgba(217, 43, 43, 0.6) 100%);
  box-shadow: 0 0 20px rgba(217, 43, 43, 0.5);
}

@keyframes loadingPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.loading-logo {
  animation: loadingPulse 1.5s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────────────────
   12. RESPONSIVE ADJUSTMENTS
  ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .marquee-item {
    min-width: 280px;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .glass-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    gap: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .counter {
    font-size: 1.5rem;
  }

  .form-progress {
    flex-wrap: wrap;
  }

  .progress-step {
    width: 35px;
    height: 35px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .card-glow:hover {
    transform: scale(1.01);
  }

  .marquee-item {
    min-width: 260px;
    padding: 1rem;
  }

  .glass-card {
    padding: 1rem;
  }

  .counter {
    font-size: 1.2rem;
  }
}
