/* assets/css/custom.css - Custom Modern Automotive Styling & Rich Animations */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --primary-red: #ef4444;
  --primary-dark: #090d16;
  --card-bg: rgba(17, 24, 39, 0.75);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #080b11;
  color: #f3f4f6;
  overflow-x: hidden;
}

.font-heading {
  font-family: 'Rajdhani', sans-serif;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-light {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-red {
  background: rgba(239, 68, 68, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Neon Glows & Gradients */
.glow-red {
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
}

.glow-red-lg {
  box-shadow: 0 0 45px rgba(239, 68, 68, 0.5);
}

.glow-blue {
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}

.text-gradient-red {
  background: linear-gradient(135deg, #ffffff 20%, #ef4444 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 20%, #f59e0b 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Skewed Automotive Badges */
.badge-skew {
  transform: skewX(-12deg);
  display: inline-block;
}

.badge-skew-content {
  transform: skewX(12deg);
  display: inline-block;
}

/* Infinite Marquee Animation */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: inline-flex;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-content-reverse {
  display: inline-flex;
  animation: marquee-scroll-rev 32s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-rev {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Ken Burns Effect for Slider */
.swiper-slide-active .ken-burns {
  animation: kenburns 12s ease-out alternate both;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4), 0 0 30px rgba(37, 211, 102, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.7), 0 0 50px rgba(37, 211, 102, 0.4);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Shine Hover Effect */
.shine-hover {
  position: relative;
  overflow: hidden;
}

.shine-hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  transition: all 0.75s ease;
}

.shine-hover:hover::after {
  left: 140%;
}

/* Car Card Hover Lift */
.car-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.car-card:hover {
  transform: translateY(-8px);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.15);
}

.car-card:hover .car-image-zoom {
  transform: scale(1.08);
}

.car-image-zoom {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #080b11;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ef4444;
}

/* Swiper Custom Navigation */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  width: 50px !important;
  height: 50px !important;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #ef4444 !important;
  border-color: #ef4444;
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem !important;
  font-weight: 700;
}

.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.4 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #ef4444 !important;
  opacity: 1 !important;
  width: 28px !important;
  border-radius: 9999px !important;
}

/* Lightbox Modal */
.modal-active {
  display: flex !important;
}
