.hero {
  min-height: calc(100vh - 80px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__container {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero__content {
  flex: 1;
  max-width: 700px;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  padding: 2rem;
  border-radius: 20px;
}

.hero__truck {
  flex: none;
  width: 63%;
  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 infinite;
}

@keyframes truckMove {
  0% {
    transform: translateY(120px);
  }

  50% {
    transform: translateY(119px);
  }

  100% {
    transform: translateY(120px);
  }
}

.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: 0;
 /* animation: roadMove 5s ease-in-out infinite alternate;
}

@keyframes roadMove {
  from {
    transform: translateX(-3px);
  }

  to {
    transform: translateX(3px);
  }
}*/

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, .65) 0%,
      rgba(0, 0, 0, .45) 35%,
      rgba(0, 0, 0, .15) 100%);
  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;
  color: var(--white);
  font-weight: 900;
  font-size: 5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow:
    0 4px 20px rgba(0, 0, 0, .8),
    0 0 30px rgba(0, 0, 0, .6);
}

.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: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.5rem;
  max-width: 550px;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, .9);
  transform: translateY(-20px);
}

.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: 150%;
    margin-top: 2rem;
    justify-content: center;
  }

  .truck-body {
    max-width: 800px;
  }

  .wheel-front {
    left: 64%;
    top: 59%;
    width: 13%;
  }

  .wheel-rear {
    left: 10.5%;
    top: 56.5%;
    width: 15%;
  }
}

.hero__call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow:
    0 10px 30px rgba(11, 76, 193, .35);
  transition: .3s;
  animation: phoneEntrance 2s ease-out;
}

@keyframes phonePulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.hero__call-btn i {
  animation:
    phonePulse 2s infinite;
}


.hero__call-btn:hover {
  transform: translateY(-4px);
}


@keyframes phoneEntrance {

  from {

    opacity: 0;

    transform:
      translateX(-50px);

  }

  to {

    opacity: 1;

    transform:
      translateX(0);

  }



}

/* MOBIL HERO*/

@media (max-width: 768px) {

  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .wheel-front {
    top: 58%;
  }

  .wheel-rear {
    top: 56%;
    left: calc(12% + 2px);
  }

  .wheel {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4));
  }

  .hero__bg {
    background-image: url('../images/mobilra_.png');
    animation: none;
  }


  .hero__title {
    font-size: 2.3rem;
    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: 1rem;
    max-width: 100%;
    text-shadow:
      0 2px 10px rgba(0, 0, 0, .9);
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero__truck {
    position: relative;
    width: 115%;
    justify-content: center;
    margin-top: -80px;
    top: 20px;
    animation: truckMoveMobile 2.5s infinite;
  }

  @keyframes truckMoveMobile {

    0% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-1px);
    }

    100% {
      transform: translateY(0);
    }

  }

  .truck-body {
    width: 95%;
    max-width: 400px;
  }

  .hero__call-btn {

    width: auto;

    height: auto;

    padding: 0.9rem 1.2rem;

    border-radius: 14px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: .75rem;

    font-size: 1rem;
  }

  .call-text {
    display: inline;
  }

}

@keyframes backgroundDrift {

  from {
    transform: scale(1.05) translateX(0);
  }

  to {
    transform: scale(1.05) translateX(-30px);
  }

}
