/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  overflow-x: hidden; /* Si uusan bogga dhinac ugu siiban mobile-ka */
}

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10%;
  height: 80px;
  background-color: #222;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo span {
  color: #ff6600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links li a:hover, .nav-links li a.active {
  color: #ff6600;
}

/* Hamburger Icon (Mobile Kaliya) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001; /* Inuu menu-ka ka sareeyo */
}

.hamburger .line {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 4px 0;
  transition: 0.4s; /* Animation-ka X-ka */
}

/* Hero Section */
.hero {
  height: 80vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1500&q=80') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
}

/* Featured Cars & Buttons (Sidaydii hore) */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #ff6600;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s ease;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 10%;
}

/* =========================================== */
/* RESPONSIVE - MOBILE MENU (Halkan ka bilow)  */
/* =========================================== */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed; /* Inuu bogga oo dhan daboolo */
    right: -100%; /* Wuu qarsoon yahay markii hore */
    top: 0;
    height: 100vh;
    width: 70%; /* Inta uu menu-ka ka daboolayo screen-ka */
    background-color: #222;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }

  /* Marka JavaScript-ka uu ku daro class-ka 'active' */
  .nav-links.active {
    right: 0;
  }

  /* Animation-ka Hamburger-ka (X icon) */
  .hamburger.is-active .line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .hamburger.is-active .line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active .line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
}
/* Page Header Settings */
.page-title {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.page-title h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Cars Container */
.cars-container {
  padding: 50px 10%;
}

.car-info {
  padding: 20px;
  text-align: left;
}

.car-info h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 5px;
}

.specs {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ff6600;
}

.price span {
  font-size: 0.8rem;
  color: #777;
}

/* Hover Effect for Images */
.car-img {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.car-img img {
  transition: transform 0.5s ease;
}

.car-card:hover .car-img img {
  transform: scale(1.1);
}