/* CSS */
.animated-truck {
  position: relative;
  width: 100%;
  /* height: 200px; */
  /* overflow: hidden; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}
.truck-image {
  position: absolute;
  width: 300px;
  height: 150px;
  background-image: url('https://minotmufflershop.com/wp-content/uploads/2025/11/minot-truck.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  left: -350px;
  opacity: 0;
  z-index: 999;
}
.truck-heading {
  position: relative;
  z-index: 1;
}
.truck-heading h2 {
  font-size: 2.1rem;
  font-weight: bold;
  text-align: center;
  margin: 0;
  color: #333;
  letter-spacing: 1px;
  opacity: 0;
}
.animated-truck.animate .truck-heading h2 {
  opacity: 1;
}
.truck-heading h2 span {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-10px);
  color: #ff8c00;
}
.truck-heading h2 span::before {
  width: 60px;
  height: 60px;
}
.truck-heading h2 span::after {
  width: 45px;
  height: 45px;
}
/* Truck animation */
@keyframes driveTruck {
  0% {
    left: -350px;
    opacity: 1;
  }
  100% {
    left: calc(100% + 50px);
    opacity: 1;
  }
}
.animated-truck.animate .truck-image {
  animation: driveTruck 3s ease-in-out forwards;
}
/* Smoky text animation */
@keyframes smokyFadeIn {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-10px);
    color: #ff8c00;
  }
  50% {
    opacity: 1;
    filter: blur(2px);
    transform: translateY(-5px);
    color: #ff8c00;
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    color: #000000;
  }
}
/* Letter stagger delays are set via JavaScript */
.animated-truck.animate .truck-heading h2 span {
  animation: smokyFadeIn 0.8s ease-out forwards;
}
/* Letter stagger delays are set via JavaScript */

/* Letter stagger delays are set via JavaScript */