/* Variables */
:root {
  --primary-blue: #2563eb;
  --primary-hover: #1d4ed8;
  --dark-text: #0f172a;
  --light-gray: #f8fafc;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Utility Classes */
.hover-white:hover {
  color: #fff !important;
}

.text-primary {
  color: var(--primary-blue) !important;
}
.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  transition: var(--transition);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Navbar */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}
.navbar-brand {
  letter-spacing: -1px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 40px;
  right: 40px;
  background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Search Widget (Glassmorphism) */
.search-widget {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.search-widget .form-control, .search-widget .form-select {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  background: #f8fafc;
  transition: var(--transition);
}
.search-widget .form-control:focus, .search-widget .form-select:focus {
  background: #fff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Vehicle Cards */
.vehicle-card {
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.vehicle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border-color: #e2e8f0;
}

.vehicle-img-wrapper {
  height: 240px;
  overflow: hidden;
  position: relative;
  background-color: var(--light-gray);
}

.vehicle-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-card:hover .vehicle-img-wrapper img {
  transform: scale(1.08);
}

.vehicle-price {
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--primary-blue);
}

.vehicle-features {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 20px;
}
.vehicle-features span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 500;
}

/* Categories */
.category-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: var(--dark-text);
  transition: var(--transition);
  display: block;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue), #60a5fa);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
  border-color: transparent;
}

.category-card:hover::before {
  opacity: 1;
}

.category-card i, .category-card .fw-semibold {
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.category-card:hover i, .category-card:hover .fw-semibold {
  color: #fff !important;
}

.category-card i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--primary-blue);
}

/* Trust Badges */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  background: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  color: #334155;
}
.trust-badge i {
  color: #22c55e;
  font-size: 1.4rem;
}

/* Locations */
.location-card {
  transition: var(--transition);
  border: 1px solid #f1f5f9 !important;
}
.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
  border-color: #e2e8f0 !important;
}
.location-card i {
  transition: var(--transition);
}
.location-card:hover i {
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .search-widget {
    margin-top: 20px;
    padding: 20px;
  }
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 100px; /* Pushed up to avoid sticky bottom bar on vehicle page */
    right: 20px;
    font-size: 28px;
  }
}
