/* ==========================
   PREMIUM UI STYLE (3M Cars)
========================== */

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f7f8fa;
  color: #111;
}

/* Navbar */
.navbar {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(10px);
  color: white;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0px 8px 25px rgba(0,0,0,0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
  padding: 4px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 14px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.9;
  transition: 0.3s;
}

.nav-links a:hover {
  opacity: 1;
  color: #25D366;
}

.nav-links .active {
  color: #25D366;
  opacity: 1;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #19b656);
  padding: 10px 16px;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
  box-shadow: 0px 8px 18px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
}

/* Hero */
.hero {
  height: 78vh;
  background: linear-gradient(120deg, rgba(0,0,0,0.75), rgba(0,0,0,0.35)),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=80")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 50px;
}

.hero-content {
  max-width: 720px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 28px;
  border-radius: 22px;
  color: white;
  backdrop-filter: blur(12px);
  box-shadow: 0px 20px 60px rgba(0,0,0,0.45);
}

.hero-content h1 {
  margin: 0;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.hero-content p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.hero-buttons {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.2);
}

.btn-green {
  background: linear-gradient(135deg, #25D366, #18b456);
  border: none;
  box-shadow: 0px 12px 25px rgba(37, 211, 102, 0.25);
}

.btn-green:hover {
  background: linear-gradient(135deg, #1ebe5b, #0ea64c);
}

/* Sections */
.section {
  padding: 70px 22px;
  max-width: 1180px;
  margin: auto;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 12px;
  color: #111;
  font-weight: 900;
}

.section p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  max-width: 900px;
}

/* Service Boxes */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 25px;
}

.service-box {
  background: white;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0px 12px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: 0.3s;
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0px 18px 55px rgba(0,0,0,0.12);
}

.service-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.service-box p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* Search */
.search {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  margin: 20px 0;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.search:focus {
  border-color: #25D366;
  box-shadow: 0px 0px 0px 3px rgba(37,211,102,0.15);
}

/* Filters */
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.filters select {
  padding: 13px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
}

.filters select:focus {
  border-color: #25D366;
}

/* Car Cards */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.car-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0px 14px 45px rgba(0,0,0,0.1);
  transition: 0.3s;
  border: 1px solid rgba(0,0,0,0.05);
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 20px 60px rgba(0,0,0,0.14);
}

.car-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-card .info {
  padding: 18px;
}

.car-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: #111;
}

.car-card p {
  margin: 6px 0;
  font-size: 14px;
  color: #555;
}

.price {
  font-size: 17px;
  font-weight: 900;
  color: #d90000;
}

/* Stock badge */
.stock-badge {
  display: inline-block;
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 12px;
  font-weight: 800;
  margin-top: 10px;
}

.badge-available {
  background: #eafff1;
  color: #0f7a3d;
}

.badge-sold {
  background: #ffecec;
  color: #b00000;
}

/* Lead Form */
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 25px;
}

.lead-form input {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
}

.lead-form input:focus {
  border-color: #25D366;
  box-shadow: 0px 0px 0px 3px rgba(37,211,102,0.15);
}

.lead-form button {
  grid-column: span 2;
  padding: 15px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #25D366, #19b656);
  color: white;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0px 12px 28px rgba(37, 211, 102, 0.25);
}

.lead-form button:hover {
  transform: translateY(-2px);
}

/* Google Map */
.map-box {
  margin-top: 22px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0px 14px 45px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Footer */
.footer {
  background: #0f0f0f;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 18px;
  font-size: 13px;
  margin-top: 30px;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: linear-gradient(135deg, #25D366, #18b456);
  color: white;
  font-size: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0px 15px 40px rgba(37,211,102,0.35);
  z-index: 9999;
  transition: 0.3s;
}

.floating-whatsapp:hover {
  transform: translateY(-4px);
}

/* Car Details Page */
.details-box {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0px 18px 55px rgba(0,0,0,0.12);
  max-width: 950px;
  margin: auto;
  border: 1px solid rgba(0,0,0,0.05);
}

.details-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.details-content {
  padding: 22px;
}

.details-content h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 900;
}

.details-table {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.details-item {
  background: #f7f8fa;
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,0.05);
}

.details-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile Responsive */
@media(max-width: 700px) {
  .hero {
    padding: 22px;
    height: auto;
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .nav-links {
    display: none;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-form button {
    grid-column: span 1;
  }

  .details-table {
    grid-template-columns: 1fr;
  }
}
/* Mobile Menu Button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  display: none;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
}

/* Mobile Nav Open */
.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 18px;
  background: rgba(15,15,15,0.98);
  padding: 18px;
  border-radius: 18px;
  width: 220px;
  box-shadow: 0px 18px 55px rgba(0,0,0,0.4);
}

.nav-links.open a {
  margin: 10px 0;
}

/* Enable menu button on mobile */
@media(max-width: 700px) {
  .menu-btn {
    display: block;
  }
}
/* Bottom Sticky Bar */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px;
  display: flex;
  justify-content: space-around;
  gap: 12px;
  z-index: 99999;
  box-shadow: 0px -10px 30px rgba(0,0,0,0.35);
}

.bottom-bar a {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
}

.bottom-call {
  background: white;
  color: black;
}

.bottom-whatsapp {
  background: linear-gradient(135deg, #25D366, #18b456);
  color: white;
}

/* Show bottom bar only in mobile */
@media(max-width: 700px) {
  .bottom-bar {
    display: flex;
  }

  body {
    padding-bottom: 90px;
  }
}
/* Scroll Animation */
.fade-section {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.8s ease;
}

.fade-section.show {
  opacity: 1;
  transform: translateY(0);
}
/* ==========================
   PREMIUM ANIMATIONS
========================== */

/* Section Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(6px);
  transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Stagger effect for cards */
.stagger-item {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* Button glow animation */
.btn:hover,
.whatsapp-btn:hover {
  box-shadow: 0px 18px 55px rgba(37, 211, 102, 0.28);
}

/* Car Card hover premium effect */
.car-card:hover img {
  transform: scale(1.05);
  transition: 0.5s ease;
}

.car-card img {
  transition: 0.5s ease;
}
/* ==========================
   PREMIUM PRELOADER
========================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: 0.6s ease;
}

.loader-box {
  text-align: center;
  color: white;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.loader-logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
  border-radius: 18px;
  background: white;
  padding: 8px;
  animation: pulseLogo 1.3s infinite ease-in-out;
}

.loader-box p {
  margin-top: 14px;
  font-size: 14px;
  opacity: 0.85;
}

@keyframes pulseLogo {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}
/* Hero Animation */
.hero-content {
  animation: heroFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(35px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
/* ==========================
   STATS COUNTER SECTION
========================== */
.stats-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-box {
  background: linear-gradient(145deg, #ffffff, #f1f3f6);
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0px 16px 55px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: 0.3s;
}

.stat-box:hover {
  transform: translateY(-6px);
  box-shadow: 0px 20px 70px rgba(0,0,0,0.12);
}

.stat-box h2 {
  font-size: 42px;
  margin: 0;
  font-weight: 900;
  color: #111;
}

.stat-box p {
  margin-top: 8px;
  font-weight: 700;
  color: #444;
}
/* ==========================
   REVIEWS SLIDER
========================== */
.review-slider {
  overflow: hidden;
  margin-top: 25px;
  border-radius: 18px;
}

.review-track {
  display: flex;
  gap: 18px;
  animation: reviewScroll 18s linear infinite;
}

.review-card {
  min-width: 320px;
  background: white;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0px 16px 55px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.review-card h3 {
  margin: 0;
  font-size: 18px;
}

.review-card p {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.review-card span {
  display: block;
  margin-top: 12px;
  font-weight: 800;
  font-size: 13px;
  color: #111;
}

@keyframes reviewScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause on hover */
.review-slider:hover .review-track {
  animation-play-state: paused;
}

/* Mobile */
@media(max-width: 700px) {
  .review-card {
    min-width: 260px;
  }
}
/* ==========================
   FEATURED CAR SLIDER
========================== */
.featured-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 4px;
  scroll-behavior: smooth;
}

.featured-slider::-webkit-scrollbar {
  height: 8px;
}

.featured-slider::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}

.featured-slider .car-card {
  min-width: 300px;
  flex-shrink: 0;
}
/* ==========================
   CAR DETAILS GALLERY
========================== */
.gallery {
  width: 100%;
}

.main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 18px;
}

.thumb-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 8px;
}

.thumb-img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.thumb-img:hover {
  border: 2px solid #25D366;
  transform: scale(1.05);
}
/* Fix Buttons inside car cards */
.car-card .btn {
  background: #111;
  color: white;
  border: none;
  display: inline-block;
  margin-top: 10px;
  text-align: center;
  width: 100%;
}

.car-card .btn:hover {
  background: #222;
}

.car-card .btn-green {
  background: linear-gradient(135deg, #25D366, #18b456);
  color: white;
  width: 100%;
}
