.hero {
  min-height: calc(100vh - 80px);

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
}

.hero__container {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero__content {
  flex: 1;
  max-width: 750px;

  position: relative;
  z-index: 2;
}

.hero__truck {
  flex: none;
  width: 65%;
  margin-top: 250px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;

  filter:
    drop-shadow(0 15px 20px rgba(0, 0, 0, .35)) drop-shadow(0 0 25px rgba(255, 255, 255, .08));
  animation: truckMove 2.5s ease-in-out infinite;
}

@keyframes truckMove {

  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-2px);
  }

  100% {
    transform: translateY(0px);
  }
}

.truck-body {
  width: 100%;
  display: block;
  filter:
    brightness(.88) saturate(.85) contrast(.95);
  opacity: .95;
}

.wheel {
  position: absolute;
  z-index: 10;
  animation: wheelSpin 5s linear infinite;
}

.wheel-front {
  width: 15%;
  left: 64%;
  top: 58%;
}

.wheel-rear {
  width: 17.5%;
  left: 10.5%;
  top: 55.5%;
}

@keyframes wheelSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.hero__bg {
  position: absolute;
  inset: 0;

  background-image: url('../images/hero_hatter_oldal.png');
  background-size: cover;
  background-position: center 85%;
  background-repeat: no-repeat;

  z-index: 1;
  animation: roadMove 8s linear infinite;

}

@keyframes roadMove {
  from {
    transform: scale(1.03) translateX(0);
  }

  to {
    transform: scale(1.03) translateX(15px);
  }
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  z-index: 1;
}


.hero__subtitle {
  display: inline-block;

  color: #8ab6ff;

  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;

  margin-bottom: 1rem;
}

.hero__title {
  line-height: 1.5;
  color: var(--white);
  font-weight: 900;
  font-size: 5.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

.hero__highlight {
  display: inline-block;

  background-color: var(--primary);

  color: var(--white);

  padding: 1rem 2rem;

  font-size: 2.8rem;
  font-weight: 800;

  margin-bottom: 2rem;

  clip-path: polygon(5% 0,
      100% 0,
      95% 100%,
      0 100%);
}

.hero__text {
  font-size: 1.5rem;

  color: rgba(255, 255, 255, 0.9);

  max-width: 550px;

  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {

  .hero__container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__truck {
    width: 90%;
    margin-top: 2rem;
    justify-content: center;
  }

  .truck-body {
    max-width: 700px;
  }
}

/* =========================
   MOBIL HERO
========================= */

@media (max-width: 768px) {

  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .wheel {
    display: none;
  }

  .hero__bg {
    animation: none;
  }

  .hero__title {
    font-size: 2.8rem;
    line-height: 1;
  }

  .hero__container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__highlight {
    font-size: 1.4rem;
    margin: 1rem auto;
  }

  .hero__text {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero__truck {
    width: 135%;
    justify-content: center;
    margin-top: 1rem;

  }

  .truck-body {
    width: 80%;
    max-width: 400px;

  }

}

@keyframes backgroundDrift {

  from {
    transform: scale(1.05) translateX(0);
  }

  to {
    transform: scale(1.05) translateX(-30px);
  }

}



