@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');

.home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--neutral-black);
  padding: 0 10rem;
}

.home-photo img {
  width: 600px;
  height: 600px;
  object-fit: cover;
  border-radius: 15px;
}

.home-content .line {
  font-size: 3rem;
  text-transform: uppercase;
  color: white;
  text-align: left;
  max-width: 90%;
}

.home-content .line h2 {
  font-family: "Orbitron", sans-serif;
}

.home-content .line span {
  font-family: "Orbitron", sans-serif;
}

.home-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem;
  color: white;
  background-color: var(--neutral-black);
  text-align: center;
  gap: 2rem;
}

h2 span {
  color: var(--secondary-dark);
}

.heading h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  position: relative;
  margin: 3rem 0;
}

.heading h1::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 80px;
  height: 4px;
  background: var(--primary);
}

.car-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
  justify-content: center;
  flex-direction: row;
  padding: 2rem 0;
}

.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(36, 35, 35, 0.384);
  margin-bottom: 1rem;
  width: 300px;
  height: auto;
  border-radius: 1rem;
  transition: all 0.3s;
}

.box:hover {
  background-color: rgba(36, 35, 35, 0.484);
  transform: translateY(-5px);
}

.box img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  transition: all 0.3s;
  border-radius: 1rem;
}

.box img:hover {
  transform: scale(1.05);
}

.box .show-cars {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  width: 100%;
  max-width: 200px;
}

.box .show-cars:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

.models-lines {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: white;
  margin: 1rem 0;
}

.categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.extra-images {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  display: none;
  width: 100%;
  padding: 1rem;
  border-radius: 1rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.extra-images.visible {
  opacity: 1;
  max-height: 500px;
  padding: 20px;
  display: flex;
}

.extra-images .extra-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
}

.extra-images .extra-image img {
  width: 100%;
  height: 100px;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
  object-fit: cover;
}

.extra-images .extra-image img:hover {
  transform: scale(1.1);
}

.extra-images .extra-image h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
}

/* Responsive Styles */
@media screen and (max-width: 1400px) {
  .home {
    padding: 0 5rem;
  }

  .home-photo img {
    width: 500px;
    height: 500px;
  }
}

@media screen and (max-width: 1200px) {
  .home {
    padding: 0 3rem;
  }

  .home-photo img {
    width: 400px;
    height: 400px;
  }

  .car-container {
    gap: 1.5rem;
  }

  .box {
    width: 280px;
  }

  .box img {
    width: 280px;
    height: 280px;
  }
}

@media screen and (max-width: 992px) {
  .home {
    flex-direction: column;
    height: auto;
    padding: 2rem;
  }

  .home-photo img {
    width: 350px;
    height: 350px;
  }

  .home-content .line {
    font-size: 2.5rem;
    text-align: center;
  }

  .heading h1 {
    font-size: 2.5rem;
    margin: 2rem 0;
  }

  .car-container {
    gap: 1.25rem;
  }

  .box {
    width: 250px;
  }

  .box img {
    width: 250px;
    height: 250px;
  }

  .models-lines {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 768px) {
  .home-content {
    padding: 1.5rem;
  }

  .home-photo img {
    width: 300px;
    height: 300px;
  }

  .home-content .line {
    font-size: 2rem;
  }

  .heading h1 {
    font-size: 2rem;
    margin: 1.5rem 0;
  }

  .car-container {
    gap: 1rem;
  }

  .box {
    width: 220px;
  }

  .box img {
    width: 220px;
    height: 220px;
  }

  .models-lines {
    font-size: 1.2rem;
  }

  .extra-images .extra-image img {
    height: 80px;
  }
}

@media screen and (max-width: 576px) {
  .home-content {
    padding: 1rem;
  }

  .home-photo img {
    width: 250px;
    height: 250px;
  }

  .home-content .line {
    font-size: 1.8rem;
  }

  .heading h1 {
    font-size: 1.8rem;
    margin: 1rem 0;
  }

  .car-container {
    gap: 0.75rem;
  }

  .box {
    width: 180px;
  }

  .box img {
    width: 180px;
    height: 180px;
  }

  .models-lines {
    font-size: 1.1rem;
  }

  .box .show-cars {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .extra-images .extra-image img {
    height: 70px;
  }

  .extra-images .extra-image h2 {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .home-photo img {
    width: 200px;
    height: 200px;
  }

  .home-content .line {
    font-size: 1.5rem;
  }

  .box {
    width: 160px;
  }

  .box img {
    width: 160px;
    height: 160px;
  }

  .extra-images .extra-image img {
    width: 200px;
    height: 60px;
  }

  .extra-images {
    padding: 0.5rem;
  }

  .extra-images.visible {
    padding: 10px;
  }
}