* {
  margin: 0;
  padding: 0;
}
.hero {
  height: 100vh;
  width: 120%;
  background-image: url(../images/sky3.png);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow-x: hidden;
}
.highway {
  height: 200px;
  width: 500%;
  display: block;
  background-image: url(../images/road2.jpg);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background-repeat: repeat-x;
  animation: highway 5s linear infinite;
}
@keyframes highway {
  100% {
    transform: translate(-3400px);
  }
}
.city {
  height: 250px;
  width: 500%;
  background-image: url("../images/city2.png");
  position: absolute;
  bottom: 200px;
  left: 0;
  right: 0;
  display: block;
  z-index: 1;
  background-repeat: repeat-x;
  animation: city 20s linear infinite;
}
@keyframes city {
  100% {
    transform: translateX(-1400px);
  }
}
.car {
  width: 400px;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  position: absolute;
  z-index: 2;
}

.car img {
  width: 100%;
  animation: car 1s linear infinite;
}
@keyframes car {
  100% {
    transform: translatey(-1px);
  }
  50% {
    transform: translatey(+1px);
  }
  0% {
    transform: translatey(-1px);
  }
}
.wheel {
  left: 50%;
  bottom: 102px;
  transform: translateX(-50%);
  position: absolute;
  z-index: 2;

  width: 400px; /* ✅ match .car width */
  height: 72px; /* ✅ wheel height */
}
.wheel img {
  width: 72px;
  height: 72px;
  animation: wheel 1s linear infinite;
}
.back-wheel {
  left: 42px;
  position: absolute;
}

.front-wheel {
  left: 285px;
  position: absolute;
}

@keyframes wheel {
  100% {
    transform: rotate(360deg);
  }
}
