/* ===================================================
   AFFORDABLE MOTORS DEALS — styles.css
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --red:        #e63946;
  --red-dark:   #c1121f;
  --red-glow:   rgba(230,57,70,0.35);
  --dark:       #0d0d1a;
  --dark-2:     #13132a;
  --dark-3:     #1a1a38;
  --dark-card:  #16162e;
  --white:      #ffffff;
  --gray-1:     #f8f9fa;
  --gray-2:     #e9ecef;
  --gray-3:     #adb5bd;
  --gray-4:     #6c757d;
  --text:       #e2e3f0;
  --text-muted: #8a8baa;
  --font-head:  'Rajdhani', sans-serif;
  --font-body:  'Inter', sans-serif;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 8px 32px rgba(0,0,0,0.4);
  --shadow-red: 0 8px 32px rgba(230,57,70,0.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ---------- Utility ---------- */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 540px; margin: 0 auto; }
.gradient-text {
  background: linear-gradient(135deg, var(--red), #ff6b6b, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: var(--shadow-red);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff6b6b, var(--red));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--red-glow); }
.btn-primary svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.btn-ghost svg { width: 18px; height: 18px; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* ===================================================
   NAVBAR
   =================================================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s;
}
#navbar.scrolled {
  background: rgba(13,13,26,0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(230,57,70,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo .logo-icon {
  width: 64px;
  height: 40px;
  flex-shrink: 0;
}
.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 1px;
}
.logo-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1;
}
.logo-tagline {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.85;
}
/* Footer logo */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-wrap .logo-icon { width: 64px; height: 40px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-links a:hover, .nav-links a:hover::after { color: var(--white); transform: scaleX(1); }
.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark)) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: var(--shadow-red);
}
.nav-cta:hover { opacity: 0.85; }
.nav-cta::after { display: none; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===================================================
   HERO
   =================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 65% 50%, #200a28 0%, #0d0d1a 65%);
  padding: 100px 0 60px;
}

/* Animated background rings */
.hero-rings { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(230,57,70,0.12);
  animation: ring-expand 8s ease-out infinite;
}
.ring-1 { width: 600px; height: 600px; right: -100px; top: 50%; transform: translateY(-50%); animation-delay: 0s; }
.ring-2 { width: 900px; height: 900px; right: -250px; top: 50%; transform: translateY(-50%); animation-delay: 1.5s; }
.ring-3 { width: 1200px; height: 1200px; right: -400px; top: 50%; transform: translateY(-50%); animation-delay: 3s; }
@keyframes ring-expand {
  0%   { opacity: 0; transform: translateY(-50%) scale(0.8); }
  20%  { opacity: 1; }
  80%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-50%) scale(1.05); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
}
@keyframes float-particle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* Two-column layout */
.hero-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,57,70,0.12);
  border: 1px solid rgba(230,57,70,0.4);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.78rem;
  font-family: var(--font-head);
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--red);
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 24px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  width: fit-content;
}
.stat { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--red); }
.stat p { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.5px; margin-top: 2px; }
.stat-divider { width: 1px; height: 38px; background: rgba(255,255,255,0.1); }

/* ---- Car Visual (right column) ---- */
.hero-car-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
}
.hero-car-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  animation: car-float 5s ease-in-out infinite;
  filter: drop-shadow(0 24px 60px rgba(230,57,70,0.35));
}
@keyframes car-float {
  0%, 100% { transform: translateY(0) perspective(1200px) rotateY(-6deg) rotateX(2deg); }
  50%       { transform: translateY(-14px) perspective(1200px) rotateY(-4deg) rotateX(1deg); }
}
.hero-car-img {
  width: 100%;
  border-radius: 18px;
  display: block;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
/* Light sweep shimmer */
.car-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 18px;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 30%,
    rgba(255,255,255,0.07) 50%,
    transparent 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: car-shine 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes car-shine {
  0%   { background-position: 200% 0; }
  40%  { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}
/* Ground glow */
.car-glow {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 50px;
  background: radial-gradient(ellipse, rgba(230,57,70,0.55) 0%, transparent 70%);
  filter: blur(18px);
  z-index: 1;
  animation: glow-pulse 5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; width: 70%; }
  50%       { opacity: 1;   width: 80%; }
}
/* Reflection */
.car-reflection {
  position: absolute;
  bottom: -62px;
  left: 0; right: 0;
  z-index: 1;
  overflow: hidden;
  height: 60px;
  border-radius: 0 0 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 100%);
  transform: scaleY(-1);
  filter: blur(3px) brightness(0.4);
  pointer-events: none;
}
.car-reflection img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-dot {
  width: 22px; height: 38px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  position: relative;
}
.scroll-dot::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px;
  background: var(--red);
  border-radius: 2px;
  animation: scroll-anim 1.8s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%   { top: 6px; opacity: 1; }
  60%  { top: 20px; opacity: 0.4; }
  100% { top: 6px; opacity: 0; }
}

/* ===================================================
   BRANDS BAR
   =================================================== */
.brands-bar {
  background: var(--dark-2);
  border-top: 1px solid rgba(230,57,70,0.2);
  border-bottom: 1px solid rgba(230,57,70,0.2);
  padding: 16px 0;
  overflow: hidden;
}
.brands-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.brands-track span {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s;
}
.brands-track:hover { animation-play-state: paused; }
.brands-track span:hover { color: var(--red); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================================================
   INVENTORY
   =================================================== */
#inventory {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
}
.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1.5px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
}
.car-card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
  cursor: pointer;
}
.car-card:hover {
  transform: translateY(-8px);
  border-color: rgba(230,57,70,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px var(--red-glow);
}
.card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.car-card:hover .card-img-wrap img { transform: scale(1.08); }
.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  box-shadow: var(--shadow-red);
}
.card-badge.new-badge {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  box-shadow: 0 4px 14px rgba(0,180,216,0.4);
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(230,57,70,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.car-card:hover .card-overlay { opacity: 1; }
.card-overlay span {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
}
.card-body { padding: 20px; }
.card-year-make { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.5px; }
.card-model {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin: 4px 0 12px;
}
.card-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.card-specs span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-specs svg { width: 13px; height: 13px; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.card-price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
}
.card-btn {
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(230,57,70,0.12);
  border: 1.5px solid rgba(230,57,70,0.4);
  color: var(--red);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}
.card-btn:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.car-card.hidden { display: none; }
.inventory-cta {
  text-align: center;
  margin-top: 56px;
}
.inventory-cta p { color: var(--text-muted); margin-bottom: 16px; }

/* ===================================================
   ABOUT
   =================================================== */
#about {
  padding: 100px 0;
  background: var(--dark-2);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.6s;
}
.about-img-wrap:hover img { transform: scale(1.04); }
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230,57,70,0.15), transparent);
  z-index: 1;
}
.about-years-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  z-index: 2;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-red);
}
.years-num { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--white); }
.years-text { font-size: 0.72rem; color: rgba(255,255,255,0.8); letter-spacing: 1px; text-transform: uppercase; }
.about-content .section-title { text-align: left; }
.about-text { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(230,57,70,0.12);
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-item strong { display: block; color: var(--white); font-size: 0.9rem; margin-bottom: 3px; }
.feature-item p { font-size: 0.8rem; color: var(--text-muted); }

/* ===================================================
   REVIEWS
   =================================================== */
#reviews {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
}
.stars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 1.4rem;
  color: #ffd700;
}
.reviews-count { font-size: 0.85rem; color: var(--text-muted); }
.reviews-carousel { position: relative; min-height: 240px; }
.review-card {
  display: none;
  max-width: 780px;
  margin: 0 auto;
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  position: relative;
  animation: fadeSlide 0.4s ease;
}
.review-card.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 20px; left: 36px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(230,57,70,0.12);
  font-family: Georgia, serif;
}
.review-stars { color: #ffd700; font-size: 1.1rem; margin-bottom: 14px; }
.review-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
}
.reviewer { display: flex; align-items: center; gap: 14px; }
.reviewer-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.reviewer strong { color: var(--white); display: block; }
.reviewer span { font-size: 0.8rem; color: var(--text-muted); }
.carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { border-color: var(--red); background: var(--red); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dot.active { background: var(--red); width: 24px; border-radius: 4px; }

/* ===================================================
   HOURS & LOCATION
   =================================================== */
#hours {
  padding: 100px 0;
  background: var(--dark-2);
}
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.hours-card {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
}
.hours-table td {
  padding: 12px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hours-table td:first-child { color: var(--text-muted); }
.hours-table td:last-child { text-align: right; color: var(--white); font-weight: 500; }
.hours-table tr.highlight td { color: var(--red); font-weight: 600; }
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-muted);
  transition: color 0.25s;
}
.contact-item:hover { color: var(--red); }
.contact-item svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  border: 1px solid rgba(255,255,255,0.07);
}

/* ===================================================
   CONTACT FORM
   =================================================== */
#contact {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark-3) 100%);
}
.form-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.5px; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  -webkit-appearance: none;
}
.form-group select option { background: var(--dark-card); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; font-size: 1.05rem; padding: 16px; }
.form-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }
.form-success { text-align: center; padding: 40px; }
.success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-red);
}
.form-success h3 { font-family: var(--font-head); font-size: 1.8rem; color: var(--white); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* ===================================================
   FOOTER
   =================================================== */
#footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .footer-logo-wrap { margin-bottom: 16px; }
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.25s; }
.footer-links a:hover { color: var(--red); }
.footer-contact p, .footer-contact a { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 6px; transition: color 0.25s; }
.footer-contact a:hover { color: var(--red); }
.footer-hours-brief { margin-top: 10px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

/* ===================================================
   CAR DETAIL MODAL
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-container {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 60px var(--red-glow);
}
.modal-overlay.open .modal-container { transform: scale(1); }
.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s;
  z-index: 10;
}
.modal-close:hover { background: var(--red); }
.modal-inner { padding: 0 0 32px; }
.modal-img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-body { padding: 28px 36px; }
.modal-badge {
  display: inline-block;
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.35);
  color: var(--red);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.modal-title { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.modal-price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--red); margin-bottom: 20px; }
.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.modal-spec { text-align: center; }
.modal-spec-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.modal-spec-value { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); font-weight: 600; }
.modal-description { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.modal-features { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.modal-feature-tag {
  padding: 5px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.modal-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===================================================
   CHATBOT
   =================================================== */
#chatbot-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
}
#chatbot-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px var(--red-glow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
#chatbot-toggle:hover { transform: scale(1.08); box-shadow: 0 12px 36px var(--red-glow); }
#chatbot-toggle svg { width: 26px; height: 26px; }
.chat-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: #ffd700;
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: bounce-badge 1.5s ease-in-out infinite;
}
@keyframes bounce-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
#chatbot-box {
  position: absolute;
  bottom: 76px; right: 0;
  width: 340px;
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px var(--red-glow);
  animation: chat-slide-up 0.3s ease;
}
@keyframes chat-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chatbot-header {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.chatbot-avatar svg { width: 20px; height: 20px; }
.chatbot-header strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 1rem; }
.chatbot-header span { font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.chatbot-messages {
  padding: 16px;
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg { max-width: 88%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-msg p {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.87rem;
  line-height: 1.5;
}
.chat-msg.bot p { background: rgba(255,255,255,0.06); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user p { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: var(--white); border-bottom-right-radius: 4px; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.quick-reply {
  padding: 5px 12px;
  background: rgba(230,57,70,0.1);
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--red);
  transition: var(--transition);
}
.quick-reply:hover { background: var(--red); color: var(--white); }
.chatbot-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
#chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 9px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
}
#chat-input:focus { border-color: var(--red); }
#chat-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
#chat-send:hover { background: var(--red-dark); }
#chat-send svg { width: 15px; height: 15px; }
.chat-typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; }
.typing-dot {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* ===================================================
   ANIMATIONS — scroll reveal
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap img { height: 340px; }
  .hours-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 320px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { margin: 0 auto; }
  .hero-car-visual { display: flex; justify-content: center; padding-bottom: 40px; }
  .hero-car-wrap { max-width: 560px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,13,26,0.98); backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,0.08); padding: 12px 0; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-links a::after { display: none; }
  .nav-hamburger { display: flex; }
  .hero-layout { padding: 0 20px; }
  .hero-stats { flex-direction: row; gap: 20px; }
  .stat-divider { width: 1px; height: 30px; }
  .inventory-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrapper { padding: 28px 20px; }
  .modal-specs-grid { grid-template-columns: 1fr 1fr; }
  .modal-body { padding: 20px 24px; }
  .footer-container { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  #chatbot-box { width: 300px; right: -8px; }
  .review-card { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .modal-img { height: 240px; }
  .modal-specs-grid { grid-template-columns: 1fr; }
  .hours-card { padding: 28px 20px; }
}
