/* ------------------ GLOBAL ------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0f0f0f;
  color: #fff;
  overflow-x: hidden;
}

/* ------------------ NAVBAR ------------------ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.85);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s;
}

.logo {
  color: #ffcc00;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.logo span {
  color: #fff;
}

.nav-link {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-link li a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link li a:hover {
  color: #ffcc00;
}

.nav-btn {
  background-color: #ffcc00;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.nav-btn:hover {
  background-color: #fff;
  transform: scale(1.05);
}

/* ------------- MENU TOGGLE (MOBILE) ------------- */
.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-icon span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin-bottom: 4px;
  border-radius: 5px;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .nav-link {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #111;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
  }

  .nav-link.open {
    display: flex;
    animation: slideDown 0.4s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ------------------ HERO SECTION ------------------ */
.hero {
  height: 100vh;
  background: url('images/pexels-mikebirdy-120049.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  top: 0;
  left: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  color: #ffcc00;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-btn {
  background-color: #ffcc00;
  border: none;
  color: #000;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-btn:hover {
  background-color: #fff;
  transform: scale(1.05);
}

/* ------------------ BRANDS ------------------ */
.brands {
  padding: 100px 50px;
  text-align: center;
}

.brands h2 {
  color: #ffcc00;
  margin-bottom: 10px;
}

.brand-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.brand-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-10px);
  background: #222;
}

.brand-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.brand-card h3 {
  margin-top: 15px;
}

/* ------------------ FEATURED CARS ------------------ */
.featured-cars {
  padding: 100px 50px;
  background: #111;
  text-align: center;
}

.cars-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.car-card {
  background: #1c1c1c;
  border-radius: 15px;
  padding: 15px;
  transition: transform 0.3s, background 0.3s;
}

.car-card:hover {
  transform: translateY(-10px);
  background: #222;
}

.car-card img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.price {
  color: #ffcc00;
  margin: 10px 0;
}

.car-btn {
  background-color: #ffcc00;
  color: #000;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.car-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

/* ------------------ ABOUT SECTION ------------------ */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 50px;
  gap: 40px;
  background: #0f0f0f;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  color: #ffcc00;
  margin-bottom: 15px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
}

@media (max-width: 900px) {
  .about {
    flex-direction: column;
  }
}

/* ------------------ SERVICES ------------------ */
.services {
  text-align: center;
  padding: 100px 50px;
  background: #111;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 15px;
  transition: all 0.3s;
}

.service:hover {
  transform: translateY(-10px);
  background: #222;
}

.service i {
  font-size: 2rem;
  color: #ffcc00;
  margin-bottom: 10px;
}

/* ------------------ CONTACT ------------------ */
.contact {
  padding: 100px 50px;
  text-align: center;
  background: #0f0f0f;
}

.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 10px;
  outline: none;
}

.contact-form button {
  background: #ffcc00;
  color: #000;
  padding: 12px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.contact-form button:hover {
  background: #fff;
  transform: scale(1.05);
}

/* ------------------ FOOTER ------------------ */
footer {
  background: #111;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #999;
}
footer a {
  color: #ffcc00;
  text-decoration: none;
}