/* === Base === */
body {
  background-color: #fff;
}

/* === Animations === */
@keyframes ping-slow {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.animate-ping-slow {
  animation: ping-slow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}

@keyframes text-glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255,255,255,0.5), 0 0 20px rgba(255,0,150,0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(255,255,255,0.7), 0 0 40px rgba(255,0,150,0.5);
  }
}
.animate-text-glow {
  animation: text-glow 3s infinite alternate;
}

@keyframes flip-overshoot {
  0%   { transform: rotateY(0deg); }
  60%  { transform: rotateY(200deg); }
  75%  { transform: rotateY(175deg); }
  85%  { transform: rotateY(185deg); }
  92%  { transform: rotateY(178deg); }
  100% { transform: rotateY(180deg); }
}

@keyframes flip-overshoot-back {
  0%   { transform: rotateY(180deg); }
  60%  { transform: rotateY(-20deg); }
  75%  { transform: rotateY(5deg); }
  85%  { transform: rotateY(-3deg); }
  92%  { transform: rotateY(2deg); }
  100% { transform: rotateY(0deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
  animation: fadeIn 0.4s ease-out forwards;
  will-change: opacity, transform;
}

/* Directional variants */
.animate-fadeInUp { animation: fadeIn 1s forwards; }
.animate-fadeInDown { animation: fadeIn 1s reverse forwards; }

/* === Delay utilities === */
.animation-delay-200  { animation-delay: 0.2s; }
.animation-delay-400  { animation-delay: 0.4s; }
.animation-delay-600  { animation-delay: 0.6s; }
.animation-delay-800  { animation-delay: 0.8s; }
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-1200 { animation-delay: 1.2s; }
.animation-delay-1400 { animation-delay: 1.4s; }
.animation-delay-1600 { animation-delay: 1.6s; }
.animation-delay-1800 { animation-delay: 1.8s; }

/* === Elements === */
.logo { filter: brightness(0) invert(0); }
.arrow { filter: invert(1) brightness(2); }

/* === Card Flip === */
.card {
  font-size: clamp(14px, 1.2vw, 18px);
}
.card-inner {
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
  perspective: 1000px;
  will-change: transform;
}
.front, .back {
  backface-visibility: hidden;
}
.back {
  transform: rotateY(180deg);
}

/* Hover flip animation */
.group:hover .card-inner {
  animation: flip-overshoot 1s ease-out forwards;
}
.group:not(:hover) .card-inner {
  animation: flip-overshoot-back 1s ease-out forwards;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.3);
  border-radius: 4px;
}

/* === Card content === */
.card p {
  font-size: clamp(18px, 0.9vw, 20px);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .card p { font-size: 18px; line-height: 1.5; }
  .card h3 { font-size: 18px; }
}

/* === Active state === */
.active-choice {
  border: 2px solid #000 !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}
.body-color-btn.active-choice img,
.interior-btn.active-choice img,
.wheel-btn.active-choice img {
  outline: 3px solid #000;
  outline-offset: 2px;
  border-radius: 9999px;
}