/* Global styles */
html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #0d0d0d;
  color: #f5f5f5;
  scroll-behavior: smooth;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: rgba(0, 0, 0, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
header .logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: #f5f5f5;
  margin: 0;
}
header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
header nav a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
header nav a:hover {
  color: #f0b90b; /* gold accent color */
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('https://images.pexels.com/photos/358070/pexels-photo-358070.jpeg');
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  text-align: center;
}
.hero h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: #d0d0d0;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border: none;
  background-color: #f0b90b;
  color: #0d0d0d;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #d89c09;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: #111;
}
.features h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.feature {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 6px;
  flex: 1 1 280px;
  max-width: 280px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.feature .icon {
  font-size: 2rem;
  color: #f0b90b;
  margin-bottom: 0.5rem;
}
.feature h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.feature p {
  color: #b0b0b0;
  font-size: 0.9rem;
}

/* About Section */
.about {
  padding: 4rem 0;
  background-color: #0d0d0d;
}
.about h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.about p {
  color: #c0c0c0;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Cars Section */
.cars {
  padding: 4rem 0;
  background-color: #111;
}
.cars h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}
.cars .small-text {
  text-align: center;
  margin-bottom: 2rem;
  color: #888;
  font-size: 0.9rem;
}
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.car-card {
  background-color: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.car-card:hover {
  transform: translateY(-5px);
}
.car-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.car-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.car-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}
.car-content p {
  margin: 0.3rem 0;
  color: #b0b0b0;
  font-size: 0.9rem;
}
.car-content .price {
  margin-top: auto;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f0b90b;
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background-color: #0d0d0d;
}
.contact h2 {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #f5f5f5;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f0b90b;
}
.contact button {
  align-self: flex-start;
  background-color: #f0b90b;
  color: #0d0d0d;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.contact button:hover {
  background-color: #d89c09;
}

/* Footer */
footer {
  background-color: #080808;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .hero h2 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .feature-grid {
    flex-direction: column;
    align-items: center;
  }
}