/* === HERO SECTION === */
.hero {
  position: relative;
  width: 100%;
  height: 90vh; /* adjust height as needed */
  background: url('../img/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* dark overlay for contrast */
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff3b3b; /* red accent */
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title span {
  color: #ff3b3b; /* red for emphasis */
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 2rem;
}

.hero-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #ff3b3b;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background-color: #e42c2c;
}

/* === WHY CHOOSE US SECTION === */
.why-us {
  background-color: #11111100;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff3b3b;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 3rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature {
  background: #1a1a1a;
  padding: 30px 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature:hover {
  transform: translateY(-8px);
  background: #222;
}

.feature i {
  font-size: 2rem;
  color: #ff3b3b;
  margin-bottom: 15px;
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.feature p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.6;
}


/* === FEATURED CARS SECTION === */
.featured-cars {
  background: #f8f8f8;
  color: #111;
  text-align: center;
  padding: 80px 20px;
}

.featured-cars .section-title {
  color: #ff3b3b;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.featured-cars .section-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.car-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.car-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-info {
  padding: 20px;
}

.car-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #111;
}

.car-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.car-price {
  font-weight: 700;
  color: #ff3b3b;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.car-btn {
  display: inline-block;
  padding: 10px 25px;
  background: #ff3b3b;
  color: #fff;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.car-btn:hover {
  background: #e22c2c;
}

/* === VIEW ALL BUTTON === */
.view-all {
  margin-top: 3rem;
}

.view-all-btn {
  display: inline-block;
  padding: 12px 35px;
  background: #ff0000;
  color: #fff;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.view-all-btn:hover {
  background: #ff3b3b;
  transform: translateY(-2px);
}


/* === ABOUT SECTION === */
.about {
  background: #111;
  color: #fff;
  padding: 80px 20px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
}

.about-image {
  flex: 1 1 45%;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.about-content {
  flex: 1 1 50%;
}

.about-content .section-title {
  font-size: 2.3rem;
  color: #ff3b3b;
  margin-bottom: 1rem;
}

.about-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 1.2rem;
}

.about-btn {
  display: inline-block;
  background: #ff3b3b;
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.about-btn:hover {
  background: #e22c2c;
}

/* Responsive layout */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image, .about-content {
    flex: 1 1 100%;
  }

  .about-content .section-title {
    margin-top: 1rem;
  }
}


/* === CTA SECTION === */
.cta {
  background: #ff3b3b;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 12px 35px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: #222;
}


/* === BRANDS SECTION === */
.brands {
  background: #ffffff; /* white background */
  color: #111; /* text color for title/subtitle */
  padding: 60px 20px;
  text-align: center;
}

.brands .section-title {
  color: #ff3b3b;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.brands-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.brands-slider::-webkit-scrollbar {
  display: none; /* hide scrollbar */
}

.brand {
  flex: 0 0 auto;
  width: 150px;
}

.brand img {
  width: 100%;
  transition: transform 0.3s ease;
}

.brand img:hover {
  transform: scale(1.1);
}



/* === FOOTER === */
.footer {
  background: #111;
  color: #ccc;
  padding: 40px 20px 20px;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-left h3 {
  color: #ff3b3b;
  margin-bottom: 0.5rem;
}

.footer-right h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
