:root {
  --primary-color: #ff4d4d;
  --secondary-color: #2c3e50;
  --accent-color: #ffd700;
  --text-color: #333333;
  --background-color: #f8f9fa;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
}

hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("../public/images/pattern.png");
  opacity: 0.1;
}

hero h1 {
  font-size: 4em;
  color: white;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease-in;
}

.gallery-container {
  padding: 2rem;
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.gallery-container h2 {
  text-align: center;
  color: var(--secondary-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.scroll-btn {
  position: absolute;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.left-btn {
  left: 0;
}

.right-btn {
  right: 0;
}

.gallery {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-behavior: smooth;
}

.gallery::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.gallery-item {
  flex: 0 0 auto;
  width: 400px;
  scroll-snap-align: center;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.car-info {
  padding: 1.5rem;
  text-align: center;
}

.car-info h3 {
  color: var(--secondary-color);
  margin: 0;
  font-size: 1.5rem;
}

.car-info p {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add responsive design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5em;
  }

  .gallery-item {
    width: 300px;
  }

  .gallery-item img {
    height: 200px;
  }

  .gallery-container h2 {
    font-size: 2rem;
  }

  .scroll-btn {
    height: 40px;
    width: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    width: 250px;
  }

  .gallery-item img {
    height: 150px;
  }

  .car-info h3 {
    font-size: 1.2rem;
  }

  .car-info p {
    font-size: 1rem;
  }
}
