@font-face {
  font-family: 'Plain Regular';
  src: url('/Plain Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

[show-on-pageload] {
  display: flex;
}

[hide-on-pageload] {
  display: none;
}

[nav-item]:hover .nav-item__tooltip {
  opacity: 1 !important;
  transform: translate(0px, -60%);
}

/* Disable hover behavior for wheel model control on mobile */
@media screen and (max-width: 767px) {
  [w-el='control-wheelmodel'][nav-item]:hover .nav-item__tooltip {
    opacity: 0 !important;
    transform: none;
  }
}

/* Handle dividers around hovered navbar options */

/* Hide the divider immediately AFTER a hovered navbar option */
.navbar-option:hover + .dark-divider {
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

/* Keep the hovered navbar option visible */
.dark-divider + .navbar-option:hover {
  opacity: 1;
}

/* Hide the divider immediately BEFORE a hovered navbar option */
.dark-divider:has(+ .navbar-option:hover) {
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

/* Fallback for browsers that don't support :has() selector */
.navbar-option.hovered-option ~ .dark-divider:first-of-type,
.navbar-option.hovered-option + .dark-divider {
  opacity: 0 !important;
}

.prev-divider {
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

/* Ensure dividers have a transition by default */
.dark-divider {
  transition: opacity 0.2s ease;
}

/* Prevent zoom on orientation change - CRITICAL for mobile */
@viewport {
  width: device-width;
  zoom: 1;
}

/* Prevent automatic zoom on orientation change */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Prevent zoom on orientation change for all elements */
* {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Mobile viewport stability */
@media screen and (orientation: landscape) {
  html,
  body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

@media screen and (orientation: portrait) {
  html,
  body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* Zoom Screen Overlay Styles */
.zoom-overlay,
.tilt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh; /* Small viewport height for mobile */
  height: 100dvh; /* Dynamic viewport height - fallback for newer browsers */
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.zoom-overlay.active,
.tilt-overlay.active {
  opacity: 1;
  visibility: visible;
}

.zoom-overlay-content,
.tilt-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh; /* Small viewport height for mobile */
  height: 100dvh; /* Dynamic viewport height - fallback for newer browsers */
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-overlay-images,
.tilt-overlay-images {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-overlay-car,
.zoom-overlay-wheel,
.tilt-overlay-car,
.tilt-overlay-wheel {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: object-fit 0.3s ease;
}

.zoom-overlay-wheel,
.tilt-overlay-wheel {
  z-index: 2;
}

.zoom-overlay-car,
.tilt-overlay-car {
  z-index: 1;
}

.zoom-overlay .close-btn,
.tilt-overlay .close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 10000;
}

/* Orientation-specific image stretching */
@media screen and (orientation: landscape) {
  .zoom-overlay-car,
  .zoom-overlay-wheel,
  .tilt-overlay-car,
  .tilt-overlay-wheel {
    object-fit: cover;
    object-position: center;
  }

  .zoom-overlay-images,
  .tilt-overlay-images {
    width: 100%;
    height: 100%;
  }
}

@media screen and (orientation: portrait) {
  .zoom-overlay-car,
  .zoom-overlay-wheel,
  .tilt-overlay-car,
  .tilt-overlay-wheel {
    object-fit: contain;
  }
}

/* Mobile specific adjustments */
@media screen and (max-width: 767px) {
  .zoom-overlay .close-btn,
  .tilt-overlay .close-btn {
    top: 15px;
    right: 15px;
  }
}

/* Selected state for navbar options */
.navbar-option.selected {
  background-color: #fff;
}

/* Hide dividers around selected navbar options - exactly like hover */
/* Hide the divider immediately AFTER a selected navbar option */
.navbar-option.selected + .dark-divider {
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

/* Keep the selected navbar option visible */
.dark-divider + .navbar-option.selected {
  opacity: 1;
}

/* Hide the divider immediately BEFORE a selected navbar option */
.dark-divider:has(+ .navbar-option.selected) {
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

/* Fallback for browsers that don't support :has() */
.prev-divider-selected {
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

[nav-item].selected .nav-item__tooltip .navbar-selected-indicator {
  display: block;
}

[nav-item].swatch {
  display: block;
}

.color-swatch-wrap.colorswatch.hover .swatch-container {
  height: 64px;
  min-width: 64px;
  padding: 8px;
}
.color-swatch-wrap.colorswatch.sibling-close .swatch-container {
  height: 50px;
  min-width: 50px;
}
.color-swatch-wrap.colorswatch.sibling-far .swatch-container {
  height: 46px;
  min-width: 46px;
}

.color-swatch-wrap.hover {
  width: 10em;
}
.color-swatch-wrap.sibling-close {
  width: 6em;
}
.color-swatch-wrap.sibling-far {
  width: 6em;
}

.color-swatch-wrap.centercap.hover .swatch-container {
  height: 110px;
  min-height: 110px;
  width: 110px;
  min-width: 110px;
  padding: 1px;
}
.color-swatch-wrap.centercap.sibling-close .swatch-container {
  height: 80px;
  min-height: 80px;
  width: 80px;
  min-width: 80px;
}
.color-swatch-wrap.centercap.sibling-far .swatch-container {
  height: 70px;
  min-height: 70px;
  width: 70px;
  min-width: 70px;
}

/* .transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: black;
  z-index: 9999;
} */

/* First set of hotspot styles removed - keeping only the enhanced version below */

.control-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  margin-left: 12px;
  background: rgba(0, 0, 0, 0.9);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap; /* Prevent text from wrapping */
  color: white;
  pointer-events: none;
  transition: all 0.2s ease;
  line-height: 1.4;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 200px; /* Set a maximum width */
  word-wrap: break-word; /* Ensure long words break */
  overflow-wrap: break-word; /* Modern browsers */
}

/* Add tooltip arrow */
.control-tooltip::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
}

/* Default arrow (pointing left) */
.control-tooltip:not([style*='bottom'])::before {
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid rgba(0, 0, 0, 0.9);
}

/* Mobile arrow (pointing down) */
.control-tooltip[style*='bottom']::before {
  left: 50%;
  bottom: -6px;
  top: auto;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
  border-bottom: none;
}

/* Style the label part (first line) */
.control-tooltip::first-line {
  opacity: 0.6;
}

.navbar-option {
  position: relative;
}

.navbar-option:hover .control-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Default hover transform */
.navbar-option:hover .control-tooltip:not([style*='bottom']) {
  transform: translateY(-50%) translateX(0);
}

/* Mobile hover transform */
.navbar-option:hover .control-tooltip[style*='bottom'] {
  transform: translateX(-50%) translateY(-5px);
}

/* Mobile specific tooltip styles */
@media (max-width: 767px) {
  .control-tooltip[style*='bottom'] {
    max-width: 150px;
    text-align: center;
    white-space: nowrap;
    /* overflow: hidden; */
    padding: 8px 8px;
  }

  .control-tooltip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide only car tooltip on hover for mobile */
  .navbar-option[step='car-model']:hover .control-tooltip {
    opacity: 0;
    visibility: hidden;
  }

  /* Only show tooltips when explicitly set to visible by JS */
  /* Higher specificity for car tooltip */
  [element='sidebar-item'][step='car-model'] .control-tooltip.mobile-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-5px) !important;
  }

  /* Animation for bottom control tooltips */
  [control='bottom'] .control-tooltip {
    bottom: 100%;
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-left: 0;
    margin-bottom: 10px;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  [control='bottom']:hover .control-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* Arrow for bottom control tooltips */
  [control='bottom'] .control-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
    border-bottom: none;
  }
}

/* Mobile landscape specific tooltip styles - horizontal like desktop */
@media (max-width: 767px) and (orientation: landscape) {
  .control-tooltip {
    /* Reset to desktop-like horizontal positioning */
    left: 100% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) translateX(-10px) !important;
    margin-left: 12px !important;
    margin-bottom: 0 !important;
    max-width: 200px !important;
    text-align: left !important;
  }

  /* Reset arrow to point left (like desktop) */
  .control-tooltip::before {
    left: -6px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-right: 6px solid rgba(0, 0, 0, 0.9) !important;
    border-left: none !important;
  }

  /* Override mobile-visible positioning for landscape */
  [element='sidebar-item'][step='car-model'] .control-tooltip.mobile-visible {
    transform: translateY(-50%) translateX(0) !important;
  }

  /* Reset hover transforms for landscape */
  .navbar-option:hover .control-tooltip {
    transform: translateY(-50%) translateX(0) !important;
  }

  /* Reset bottom control tooltips for landscape */
  [control='bottom'] .control-tooltip {
    bottom: auto !important;
    top: 50% !important;
    left: 100% !important;
    transform: translateY(-50%) translateX(-10px) !important;
    margin-left: 12px !important;
    margin-bottom: 0 !important;
  }

  [control='bottom']:hover .control-tooltip {
    transform: translateY(-50%) translateX(0) !important;
  }

  [control='bottom'] .control-tooltip::before {
    left: -6px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-right: 6px solid rgba(0, 0, 0, 0.9) !important;
    border-left: none !important;
  }
}

/* Target when hovering the show-view-controls element or the container itself */
[show-view-controls]:hover ~ .div-block-95,
.div-block-13:hover ~ .div-block-95,
.control-wrapper:hover .div-block-95,
.div-block-95:hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Staggered animation for individual view controls */
.div-block-97 {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

[show-view-controls]:hover ~ .div-block-95 .div-block-97,
.div-block-13:hover ~ .div-block-95 .div-block-97,
.control-wrapper:hover .div-block-95 .div-block-97,
.div-block-95:hover .div-block-97 {
  opacity: 1;
  transform: translateY(0);
}

/* Add stagger effect to individual buttons */
[show-view-controls]:hover ~ .div-block-95 .div-block-97:nth-child(1),
.div-block-13:hover ~ .div-block-95 .div-block-97:nth-child(1),
.control-wrapper:hover .div-block-95 .div-block-97:nth-child(1),
.div-block-95:hover .div-block-97:nth-child(1) {
  transition-delay: 0.05s;
}

[show-view-controls]:hover ~ .div-block-95 .div-block-97:nth-child(2),
.div-block-13:hover ~ .div-block-95 .div-block-97:nth-child(2),
.control-wrapper:hover .div-block-95 .div-block-97:nth-child(2),
.div-block-95:hover .div-block-97:nth-child(2) {
  transition-delay: 0.1s;
}

[show-view-controls]:hover ~ .div-block-95 .div-block-97:nth-child(3),
.div-block-13:hover ~ .div-block-95 .div-block-97:nth-child(3),
.control-wrapper:hover .div-block-95 .div-block-97:nth-child(3),
.div-block-95:hover .div-block-97:nth-child(3) {
  transition-delay: 0.15s;
}
/* Subtle hover effect for individual view buttons */
.div-block-97 {
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.3s ease;
  cursor: pointer;
}

.div-block-97:hover {
  transform: scale(1.1);
}

/* Add subtle animation to arrows */
.nav-view-arrow {
  transition: transform 0.2s ease;
}

.div-block-97:hover .nav-view-arrow {
  transform: translateX(2px);
}

.div-block-97:hover .nav-view-arrow.l {
  transform: translateX(-2px);
}

.div-block-97:hover .nav-view-arrow.r {
  transform: translateX(2px);
}

/* Hotspot Styles */
.hotspots-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.wheel-hotspot {
  position: absolute;
  /* left: 85%;
  top: 60%; */
  transform: translate(-50%, -50%);
  pointer-events: all;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wheel-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.wheel-hotspot:hover .hotspot-label {
  opacity: 1;
  transform: translateY(0);
}

.hotspot-pulse {
  position: absolute;
  width: 80px; /* Increased from 64px */
  height: 80px; /* Increased from 64px */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25); /* Increased from 0.15 */
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the pulse */
}

.hotspot-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3); /* Increased from 0.2 */
  animation: pulse-delayed 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 0.5s;
  transform: translate(-50%, -50%); /* Center the pulse */
}

.hotspot-icon {
  position: relative;
  width: 46px; /* Made even smaller from 46px */
  height: 46px; /* Made even smaller from 46px */
  background: rgba(255, 255, 255, 0.98); /* Increased from 0.95 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  color: black;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1; /* Ensure icon stays above pulse */
}

.hotspot-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.98); /* Increased from 0.95 */
  padding: 3px 6px; /* Reduced from 10px 20px */
  border-radius: 6px; /* Reduced from 8px */
  font-size: 12px; /* Reduced from 14px */
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  margin-bottom: 10px; /* Reduced from 12px */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2; /* Ensure label stays above everything */
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.9; /* Increased from 0.8 */
  }
  50% {
    transform: translate(-50%, -50%) scale(1.4); /* Increased from 1.3 */
    opacity: 0.3; /* Increased from 0.2 */
  }
  100% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.9; /* Increased from 0.8 */
  }
}

@keyframes pulse-delayed {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.7; /* Increased from 0.6 */
  }
  50% {
    transform: translate(-50%, -50%) scale(1.6); /* Increased from 1.5 */
    opacity: 0.2; /* Increased from 0.1 */
  }
  100% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.7; /* Increased from 0.6 */
  }
}

/* ======================
   Closeup Slider Styles
   ====================== */

/* Main slider container */
.closeup-slider {
  position: relative;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container for all slides */
.closeup-slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Individual slide styling */
.closeup-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cursor states for different interactions */
.closeup-slide.zoomed {
  cursor: zoom-out;
}

.closeup-slide.panning {
  cursor: move;
}

/* Active slide state */
.closeup-slide.active {
  opacity: 1;
}

/* Image within slides */
.closeup-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Zoomed state for images */
.closeup-slide.zoomed img {
  transform: scale(2);
}

/* Zoom control button */
.zoom-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.2s ease;
  color: #000;
}

.zoom-button:hover {
  transform: scale(1.1);
  background: #f5f5f5;
}

/* Navigation arrows */
.closeup-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.2s ease;
}

/* Navigation arrow hover state */
.closeup-nav:hover {
  background: #f5f5f5;
  transform: translateY(-50%) scale(1.1);
}

/* Position for previous/next arrows */
.closeup-nav.prev {
  left: 40px;
}

.closeup-nav.next {
  right: 40px;
}

.end-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #111;
  z-index: 10000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.end-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.end-overlay-content {
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: overlayIn 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.end-overlay-btn {
  font-family: 'Plain Regular', sans-serif;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 1px;
  cursor: pointer;
  outline: none;
  padding: 0.3em 0.8em;
  border-radius: 0;
  margin-bottom: 0.2em;
  position: relative;
  box-shadow: none;
}

.end-overlay-btn:hover {
  background: #181818;
  color: #f5f5f5;
}

.end-overlay-btn .dot {
  color: #fff;
  font-size: 1em;
  margin-left: 0.18em;
  vertical-align: middle;
  animation: blink 1.2s infinite alternate;
}

.end-overlay-subtext {
  font-family: 'Plain Regular', sans-serif;
  font-size: 0.85rem;
  color: #bbb;
  opacity: 0.7;
  font-weight: 300;
  letter-spacing: 0.2px;
}

@keyframes overlayIn {
  0% {
    transform: scale(0.95) translateY(40px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

/* ======================
   Glitch Transition Styles
   ====================== */
.glitch-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 99999999;
  pointer-events: none;
  opacity: 1;
  overflow: hidden;
  display: none;
}

.glitch-block {
  position: absolute;
  background: #1a1a1a !important;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
  visibility: hidden;
}

/* Different shades of anthracite for variety */
.glitch-block:nth-child(3n) {
  background: #1c1c1c !important;
}

.glitch-block:nth-child(4n) {
  background: #181818 !important;
}

.glitch-block:nth-child(7n) {
  background: #191919 !important;
}

/* ======================
   Preloader Styles
   ====================== */
#preloader-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999999;
}

.preloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* background: #000; */
  overflow: hidden;
}

.smoke-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000001;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  overflow: hidden;
}

.smoke-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.smoke-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.smoke-video.reverse {
  opacity: 0;
  transform: scale(1.1) scaleX(-1);
}

.scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  overflow: hidden;
  z-index: 1;
}

.scene.active {
  opacity: 1;
  visibility: visible;
}

.black-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: #000; */
}

.logo-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.logo-image {
  max-width: 60px;
  opacity: 0;
  visibility: hidden;
  display: block;
}

.text-overlay {
  font-family: 'Plain Regular', sans-serif;
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 4px;
  color: #fff;
  position: relative;
  z-index: 10;
  display: flex;
  gap: 15px;
}

.text-word {
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.8);
  display: inline-block;
}

.video-placeholder {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
}

.car-video {
  position: absolute;
  right: 0;
  left: auto;
  top: 50%;
  width: 130vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  transform: translateY(-50%) scale(1.1);
  z-index: 1;
}

.intro-text {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 2px;
}

.tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  opacity: 0;
  visibility: hidden; /* Ensure tooltips are hidden by default */
}

.tooltip-content {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Tooltip positions */
.tooltip-top .tooltip-content::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(0, 0, 0, 0.8);
}

.tooltip-bottom .tooltip-content::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(0, 0, 0, 0.8);
}

.tooltip-left .tooltip-content::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid rgba(0, 0, 0, 0.8);
}

.tooltip-right .tooltip-content::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 4px solid rgba(0, 0, 0, 0.8);
}

/* Special positioning for right-aligned bottom tooltips */
.tooltip-bottom-right {
  transform-origin: top right;
}

.tooltip-bottom-right .tooltip-content {
  position: relative;
  display: flex;
  justify-content: flex-end;
  right: 0;
}

.tooltip-bottom-right .tooltip-content::after {
  content: '';
  position: absolute;
  top: -4px;
  left: auto;
  /* Position the arrow relative to the button, not the tooltip content */
  right: 16px; /* Half of the button width (32px) */
  transform: translateX(50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(0, 0, 0, 0.8);
}

/* Ensure the tooltip text is properly aligned */
.tooltip-bottom-right .tooltip-text {
  text-align: right;
}

/* Special positioning for left-aligned bottom tooltips */
.tooltip-bottom-left {
  transform-origin: top left;
}

.tooltip-bottom-left .tooltip-content {
  position: relative;
  display: flex;
  justify-content: flex-start;
  left: 0;
}

.tooltip-bottom-left .tooltip-content::after {
  content: '';
  position: absolute;
  top: -4px;
  right: auto;
  /* Position the arrow relative to the button, not the tooltip content */
  left: 16px; /* Half of the button width (32px) */
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(0, 0, 0, 0.8);
}

/* Ensure the tooltip text is properly aligned */
.tooltip-bottom-left .tooltip-text {
  text-align: left;
}

@keyframes logoZoom {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(0.9);
  }
  80% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

[logo-loader] {
  animation: logoZoom 1s infinite ease-in-out;
  max-height: 100svh;
}

/* Car color swatch with subtle mesh overlay effect */
/* Apply mesh effect to Webflow color swatches */
.swatch-container {
  position: relative;
  overflow: hidden;
}

.carcolorswatch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  mix-blend-mode: overlay;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

/* ======================
   Share Modal Styles
   ====================== */
.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh; /* Small viewport height for mobile */
  height: 100dvh; /* Dynamic viewport height - fallback for newer browsers */
  background: rgba(0, 0, 0, 0.37);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-pseudo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.share-container {
  position: relative;
  z-index: 1;
}

.share-modal {
  background: white;
  border-radius: 16px;
  padding: 4px;
  width: 480px;
  max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.share-modal-inner {
  display: flex;
  flex-direction: column;
}

.share-modal-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.share-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.share-config-info {
  background: #f6f6f6;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
}

.share-config-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.share-config-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  white-space: nowrap;
}

.share-label {
  font-weight: 600;
  color: #333333;
}

.share-value {
  font-weight: 500;
  color: #b3b3b3;
}

.share-thumbnail {
  width: 72px;
  height: 48px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.share-options {
  background: #eaeaea;
  border-radius: 8px;
  padding: 3px;
  display: flex;
  gap: 3px;
  height: 40px;
  width: 100%;
}

.share-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 16px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #898989;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.share-option.active {
  background: white;
  color: #898989;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.share-toggle-text {
  color: #a3a3a3;
}

.share-option:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}

.share-option svg {
  flex-shrink: 0;
}

.share-option.copied {
  color: #4caf50;
}

.share-toggle-section {
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}

.share-toggle-section:hover {
  background: #f8f8f8;
}

.share-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.share-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.share-toggle-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.share-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  max-width: 252px;
}

.share-toggle-label {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #09090b;
  line-height: 1.5;
  cursor: pointer;
}

.share-toggle-text p {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #71717a;
  line-height: 1.4;
  margin: 0;
}

.share-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.share-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e4e4e7;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 2px;
  top: 2px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.share-toggle input:checked + .toggle-slider {
  background-color: #09090b;
}

.share-toggle input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

.share-link-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.share-link-box {
  background: #fdfdfd;
  border: 1px solid #dddddd;
  border-radius: 12px;
  padding: 6px 6px 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 3px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.share-link-box:hover {
  background: #f8f8f8;
  border-color: #ccc;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.share-link-box.copied {
  background: #f0f9ff;
  border-color: #4caf50;
  box-shadow: 0 4px 8px -1px rgba(76, 175, 80, 0.2);
}

.share-link-text {
  font-size: 12px;
  font-weight: 600;
  color: #adadad;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.copy-icon-btn {
  background: #f6f6f6;
  border: 1px solid #b5b5b5;
  border-radius: 6px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-icon-btn:hover {
  opacity: 1;
  background: #ececec;
}

.copy-icon-btn svg {
  width: 12px;
  height: 12px;
}

/* Email form styles */
.share-email-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.share-email-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-input,
.email-textarea {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: white;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.08);
  resize: vertical;
}

.email-input:hover,
.email-textarea:hover {
  border-color: #ccc;
}

.email-input:focus,
.email-textarea:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.email-input::placeholder,
.email-textarea::placeholder {
  color: #999;
}

.email-textarea {
  min-height: 80px;
  max-height: 150px;
}

.email-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.email-send-btn {
  background-color: #333333;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  position: relative;
  z-index: 1;
  min-width: 120px;
}

.email-send-btn:hover {
  background-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.email-send-btn:active {
  transform: translateY(1px);
}

.email-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.email-success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 20px;
  text-align: center;
}

.email-success-message .success-icon {
  width: 48px;
  height: 48px;
  color: #4caf50;
}

.email-success-message p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

/* WhatsApp share section styles */
.share-whatsapp-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.whatsapp-share-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
  text-align: center;
}

.whatsapp-share-description {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.whatsapp-share-btn {
  background-color: #fff;
  color: #2ac25f;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1;
  position: relative;
  z-index: 1;
  min-width: 180px;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.08);
}

.whatsapp-share-btn:hover {
  background-color: #f8f8f8;
  border-color: #ccc;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.whatsapp-share-btn:active {
  transform: translateY(1px);
}

.whatsapp-share-btn svg {
  flex-shrink: 0;
  color: #2ac25f;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .share-modal {
    padding: 3px;
    width: calc(100vw - 30px);
    border-radius: 12px;
  }

  .share-modal-body {
    padding: 16px 12px;
    gap: 14px;
  }

  .share-config-info {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    min-height: auto;
  }

  .share-thumbnail {
    width: 100%;
    height: 120px;
  }

  .share-option {
    font-size: 12px;
    padding: 0 8px;
    gap: 4px;
  }

  .share-option span {
    display: none;
  }

  .share-option svg {
    width: 18px;
    height: 18px;
  }

  .share-options {
    height: 36px;
    padding: 2px;
  }

  .email-input,
  .email-textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#splineSpinner {
  animation: spin 1s linear infinite;
}
