body {
  font-family: Tahoma, sans-serif;
  padding-top: 90px; /* fixed navbar */
}

/* ================= Navbar ================= */
.custom-navbar {
  background: transparent;
}

.navbar-inner {
  background: #fff;
  padding: 10px 22px;
  border-radius: 60px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.logo {
  height: 60px;
}

.navbar-nav .nav-link {
  font-weight: 600;
  margin: 0 10px;
}

/* ================= Hero ================= */
.hero {
  background: url('../images/cars.jpg') center/cover no-repeat;
  height: 100vh;
  position: relative;
}

.hero-overlay {
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.55));
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.hero-badge {
  display: inline-block;
  background: rgba(0,123,255,0.15);
  border: 1px solid rgba(0,123,255,0.4);
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.hero-buttons .btn {
  margin: 5px 10px;
  padding: 12px 30px;
  font-weight: 700;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.hero-stats strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
}

.hero-stats span {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ================= Cars Cards ================= */
.car-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.10);
  transition: 0.3s;
  overflow: hidden;
}

.car-card:hover {
  transform: translateY(-5px);
}

.car-card img {
  height: 220px;
  object-fit: cover;
}

.price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #198754;
}

/* ================= Cars Slider ================= */
.cars-slider-container {
  position: relative;
}

.cars-slider-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  cursor: grab;
  padding: 10px 0;
}

.cars-slider-viewport::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.cars-slider-viewport.dragging {
  cursor: grabbing;
}

.cars-slider {
  display: flex;
  gap: 25px;
  padding: 10px 6px;
}

.car-slide {
  flex: 0 0 320px;
  min-width: 320px;
}

/* Arrows (Right/Left sides) */
.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #0d6efd;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.22);
  transition: 0.25s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  /* Hover-only visibility */
  opacity: 0;
  pointer-events: none;
}

.slider-left { right: -10px; }  /* RTL: يمين */
.slider-right { left: -10px; }  /* RTL: شمال */

.cars-slider-container:hover .slider-btn {
  opacity: 1;
  pointer-events: auto;
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.08);
  background: #084298;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  .slider-btn {
    display: none;
  }
  .car-slide {
    flex: 0 0 280px;
    min-width: 280px;
  }
}

/* ================= Floating WhatsApp ================= */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
  animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: #111;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulse Animation */
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
  70% { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
/* ================= Navbar Responsive Fix ================= */

/* Desktop (Floating Centered) */
@media (min-width: 992px) {
  .custom-navbar {
    background: transparent;
  }

  .navbar-inner {
    background: #fff;
    padding: 10px 22px;
    border-radius: 60px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    width: auto;
    margin: 0 auto;
  }

  .logo {
    height: 60px;
  }
}

/* Mobile & Tablet (Normal Full Width Navbar) */
@media (max-width: 991px) {
  body {
    padding-top: 75px; /* يقلل المسافة فوق في الموبايل */
  }

  .custom-navbar {
    background: #fff !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }

  .navbar-inner {
    width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 10px 12px !important;
  }

  .navbar-brand {
    margin: 0 !important;
  }

  .navbar-nav .nav-link {
    margin: 6px 0; /* شكل القائمة لما تفتح */
  }

  .logo {
    height: 45px; /* أصغر للموبايل */
  }
}
/* ================= Mobile Navbar Layout Fix ================= */
@media (max-width: 991px) {

  /* خلي التوجل (☰) على الشمال */
  .navbar-toggler {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  /* خلي اللوجو يفضل على اليمين */
  .navbar-brand {
    margin-right: auto !important;
    margin-left: 0 !important;
  }
}

