/* ==========================================================================
   RIDE ANY – SCREEN 3: CINEMATIC SERVICES CONTINUOUS TIMELINE (V7.0)
   4 Core Services: Regular Cab, Car Pooling, School Transport, Airport Transfers
   Final Section: Dramatic Down-to-Up Vertical Rise • Pure Black #000000 Luxury Story Outro
   Zero Blue Color Palette • Lime Accent rgb(222, 248, 56) with Subtle Glow
   ========================================================================== */

/* Outer Scroll Extender Wrap */
.cinematic-services-wrap {
  position: relative;
  width: 100%;
  height: 800vh;
  background: #ffffff;
}

/* Master Sticky Stage Viewport */
.cinematic-services-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  user-select: none;
}

/* Background Atmosphere Grid */
.cinematic-services-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.025) 0%, transparent 70%),
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Stage Header & Counter HUD
   ========================================================================== */
.cinematic-stage-header {
  position: absolute;
  top: 54px;
  left: 6%;
  right: 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 40;
  pointer-events: none;
}

.cinematic-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* background: #0f172a; */
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  /* box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15); */
}

.cinematic-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(222, 248, 56);
  box-shadow: 0 0 8px rgb(222, 248, 56);
}

.cinematic-meta-counter {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.cinematic-meta-counter .current-num {
  color: #0f172a;
}

/* Continuous Horizontal Road Baseline Guide */
.cinematic-baseline-guide {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16%;
  height: 2px;
  background: rgba(15, 23, 42, 0.12);
  z-index: 15;
}

.cinematic-baseline-track-dashes {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  display: flex;
  justify-content: space-around;
  opacity: 0.35;
}

.cinematic-baseline-track-dashes span {
  width: 48px;
  height: 2px;
  background: #94a3b8;
}

/* Master Stage Arena */
.cinematic-main-arena {
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  bottom: 25px;
  display: flex;
  align-items: center;
  padding: 0 6%;
  z-index: 20;
  box-sizing: border-box;
}

/* ==========================================================================
   Left Editorial Typography Theater – Zero Clipping, Slower & Smoother Scroll
   ========================================================================== */
.cinematic-editorial-col {
  position: relative;
  width: 44%;
  max-width: 520px;
  height: 100%;
  z-index: 30;
  overflow: visible !important;
}

.cinematic-text-slide {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  opacity: 0;
  pointer-events: none;
  overflow: visible !important;
  will-change: transform, opacity;
  box-sizing: border-box;
}

.cinematic-text-slide.active {
  pointer-events: auto;
}

/* Ensure no wrapper or container ever clips descenders or headings */
.cinematic-title-wrap {
  overflow: visible !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 16px 0 !important;
  line-height: normal !important;
}

/* 1. Meta Tag (e.g. — SERVICE 01 / 04 • ON-DEMAND TRAVEL) */
.cinematic-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 14px;
  overflow: visible !important;
}

.cinematic-meta-tag::before {
  content: '';
  width: 22px;
  height: 2px;
  background: #0f172a;
  display: inline-block;
}

/* 2. Headline: Bold, Modern, Crystal Clear with Full Line Height & Breathing Room */
.cinematic-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 800 !important;
  color: #090e17;
  line-height: 1.16 !important;
  letter-spacing: -0.025em;
  margin: 0 0 16px 0 !important;
  text-transform: uppercase;
  display: block;
  overflow: visible !important;
  box-sizing: border-box;
}

/* 3. Description */
.cinematic-desc {
  font-size: clamp(14.5px, 1.25vw, 17px);
  line-height: 1.6;
  color: #475569;
  margin: 0 0 24px 0;
  max-width: 440px;
  overflow: visible !important;
}

/* 4. Badge Row */
.cinematic-badge-row {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: visible !important;
}

.cinematic-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000000;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.cinematic-dash-track {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cinematic-dash-item {
  width: 20px;
  height: 3px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.cinematic-dash-item.active {
  width: 36px;
  background: #0f172a;
}

/* ==========================================================================
   Right Automotive Film Arena (Vehicles Move Continuously Across Baseline)
   ========================================================================== */
.cinematic-visual-col {
  position: relative;
  width: 56%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
}

/* Vehicle / Scene Container */
.cinematic-scene-vehicle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-46%);
  width: 100%;
  max-width: 760px;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

/* The Cinematic Viewport Frame */
.cinematic-film-frame {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.cinematic-film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dedicated Airport Transfer Framing */
.cinematic-airport-frame {
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 65px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.08);
  background: #0f172a;
}

.cinematic-airport-frame img,
.cinematic-airport-frame video,
.cinematic-airport-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  background: #0f172a;
}

/* Ground shadow along the baseline */
.cinematic-ground-shadow {
  position: absolute;
  bottom: -15px;
  left: 5%;
  right: 5%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.35) 0%, transparent 75%);
  filter: blur(8px);
  pointer-events: none;
}

/* Floating Feature Callout Pills (Anchored directly to vehicle) */
.cinematic-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 35;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.cinematic-pin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgb(74, 189, 152);
  flex-shrink: 0;
}

/* ==========================================================================
   Bottom Stage HUD / Navigation
   ========================================================================== */
.cinematic-bottom-hud {
  position: absolute;
  bottom: 24px;
  left: 6%;
  right: 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 40;
}

.cinematic-controls {
  display: flex;
  gap: 8px;
}

.cinematic-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.cinematic-nav-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: scale(1.05);
}

.cinematic-progress-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cinematic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cinematic-dot.active {
  width: 26px;
  border-radius: 6px;
  background: #0f172a;
}

.cinematic-star-emblem {
  display: flex;
  align-items: center;
}

.cinematic-hud-accent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(222, 248, 56);
  box-shadow: 0 0 8px rgb(222, 248, 56);
}

/* ==========================================================================
   FINAL SECTION: DOWN-TO-UP VERTICAL RISE • PURE BLACK #000000 LUXURY
   Ultra-Smooth, Aesthetic Masked Text Transition Design
   ========================================================================== */
.cinematic-climax-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  transform: translate3d(0, 100%, 0);
  visibility: hidden;
  will-change: transform;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 -35px 90px rgba(0, 0, 0, 0.85);
}

.cinematic-climax-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 820px;
  width: 100%;
  margin: auto;
  will-change: transform, opacity;
}

/* Mask wrap for the title to rise cleanly from below */
.cinematic-climax-title-wrap {
  overflow: hidden;
  display: block;
  width: 100%;
  margin: 0 0 18px 0;
  line-height: 1;
}

/* Accent bar */
.cinematic-climax-accent-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  margin-bottom: 22px;
  position: relative;
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  filter: blur(4px);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.cinematic-accent-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgb(88, 188, 143), 0 0 16px rgba(98, 196, 152, 0.6);
}

/* Tag: SAFE • RELIABLE • PROFESSIONAL */
.cinematic-climax-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

/* Giant Climax Title: RIDE ANY (Hero Masked Upward Reveal) */
.cinematic-climax-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(56px, 8.2vw, 118px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 6px 36px rgba(0, 0, 0, 0.9);
  display: block;
  transform: translateY(115%) scale(0.97);
  opacity: 0;
  filter: blur(8px);
  transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}

/* Description */
.cinematic-climax-desc {
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 400;
  color: #cbd5e1;
  max-width: 580px;
  line-height: 1.55;
  margin: 0 0 32px 0;
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

/* Perks Row */
.cinematic-climax-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.cinematic-climax-perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.perk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgb(93, 186, 155);
}

/* CTA Button */
.cinematic-climax-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 42px;
  border-radius: 999px;
  text-decoration: none;
  border: #10b981;
  box-shadow: 0 0 14px rgb(98 187 100 / 90%);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  filter: blur(4px);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform, opacity, filter;
}

.cinematic-climax-cta:hover {
  background: #0f172a;
  border-color: rgb(222, 248, 56);
  box-shadow: 0 0 22px rgba(222, 248, 56, 0.55);
  transform: translateY(-2px);
}

.cta-arrow {
  color: rgb(222, 248, 56);
  transition: transform 0.25s ease;
}

.cinematic-climax-cta:hover .cta-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   WHEN CLIMAX ACTIVE: STAGGERED ULTRA-SMOOTH AESTHETIC TEXT REVEALS
   ========================================================================== */
.cinematic-climax-overlay.climax-active .cinematic-climax-accent-bar {
  opacity: 1 !important;
  transform: translateY(0px) scale(1) !important;
  filter: blur(0px) !important;
  transition-delay: 0.08s !important;
}

.cinematic-climax-overlay.climax-active .cinematic-climax-tag {
  opacity: 1 !important;
  transform: translateY(0px) !important;
  filter: blur(0px) !important;
  transition-delay: 0.16s !important;
}

.cinematic-climax-overlay.climax-active .cinematic-climax-title {
  opacity: 1 !important;
  transform: translateY(0%) scale(1) !important;
  filter: blur(0px) !important;
  transition-delay: 0.24s !important;
}

.cinematic-climax-overlay.climax-active .cinematic-climax-desc {
  opacity: 1 !important;
  transform: translateY(0px) !important;
  filter: blur(0px) !important;
  transition-delay: 0.38s !important;
}

.cinematic-climax-overlay.climax-active .cinematic-climax-perks {
  opacity: 1 !important;
  transform: translateY(0px) !important;
  filter: blur(0px) !important;
  transition-delay: 0.50s !important;
}

.cinematic-climax-overlay.climax-active .cinematic-climax-cta {
  opacity: 1 !important;
  transform: translateY(0px) scale(1) !important;
  filter: blur(0px) !important;
  transition-delay: 0.62s !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
  .cinematic-services-stage {
    min-height: 560px !important;
  }
  
  .cinematic-stage-header {
    top: 24px !important;
    left: 4% !important;
    right: 4% !important;
    padding-bottom: 6px !important;
  }
  
  .cinematic-main-arena {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 4% !important;
    gap: 10px !important;
    top: 30px !important;
    bottom: 55px !important;
  }
  
  .cinematic-visual-col {
    width: 100% !important;
    max-width: 480px !important;
    height: clamp(170px, 28vh, 230px) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 1 !important;
    z-index: 20 !important;
  }
  
  .cinematic-scene-vehicle {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    max-width: 440px !important;
    will-change: transform, opacity !important;
  }
  
  .cinematic-editorial-col {
    width: 100% !important;
    max-width: 480px !important;
    height: clamp(210px, 34vh, 260px) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 2 !important;
    z-index: 25 !important;
  }
  
  .cinematic-text-slide {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  
  .cinematic-meta-tag {
    justify-content: center !important;
    font-size: 10px !important;
    margin-bottom: 8px !important;
  }
  
  .cinematic-title {
    font-size: clamp(26px, 6vw, 36px) !important;
    margin-bottom: 8px !important;
    line-height: 1.08 !important;
  }
  
  .cinematic-desc {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    margin: 0 auto 14px auto !important;
    max-width: 90% !important;
  }
  
  .cinematic-badge-row {
    justify-content: center !important;
  }
  
  .cinematic-status-pill {
    font-size: 10px !important;
    padding: 6px 14px !important;
  }
  
  .cinematic-pin {
    font-size: 8px !important;
    padding: 4px 10px !important;
  }
  
  .cinematic-baseline-guide {
    display: none !important;
  }

  .cinematic-climax-title {
    font-size: clamp(44px, 10vw, 68px) !important;
  }

  .cinematic-climax-perks {
    gap: 14px !important;
  }
}

@media (max-width: 576px) {
  .cinematic-pin {
    display: none !important;
  }
  .cinematic-visual-col {
    height: clamp(150px, 25vh, 200px) !important;
  }
  .cinematic-editorial-col {
    height: clamp(190px, 32vh, 240px) !important;
  }
  .cinematic-title {
    font-size: clamp(24px, 5.5vw, 30px) !important;
  }
  .cinematic-desc {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
  }
  .cinematic-climax-title {
    font-size: clamp(38px, 11vw, 52px) !important;
  }
  .cinematic-climax-perks {
    flex-direction: column !important;
    gap: 8px !important;
  }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
