@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes count-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.7s ease-out forwards;
}

.animate-slide-in-left {
  animation: slide-in-left 0.7s ease-out forwards;
}

.animate-slide-in-right {
  animation: slide-in-right 0.7s ease-out forwards;
}

.animate-count-pulse {
  animation: count-pulse 2s ease-in-out infinite;
}

.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.opacity-0-start {
  opacity: 0;
}

.stat-number.is-visible {
  animation: count-pulse 0.4s ease-out;
}

.nav-link--active {
  color: #6366f1;
  font-weight: 600;
}

.nav-link--active-mobile {
  color: #6366f1;
  font-weight: 600;
  background-color: rgba(99, 102, 241, 0.07);
}

.hero-bg {
  background-image:
    linear-gradient(135deg, rgba(26, 33, 48, 0.82) 0%, rgba(26, 33, 48, 0.55) 50%, rgba(99, 102, 241, 0.35) 100%),
    url('../assets/images/hero-auto-service-garage.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-hero-bg {
  background-image:
    linear-gradient(135deg, rgba(26, 33, 48, 0.85) 0%, rgba(99, 102, 241, 0.45) 100%),
    url('../assets/images/about-service-center-interior.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blogs-hero-bg {
  background-image:
    linear-gradient(135deg, rgba(26, 33, 48, 0.85) 0%, rgba(79, 70, 229, 0.4) 100%),
    url('../assets/images/articles-auto-knowledge-library.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
  transform: scale(1.05);
}

.swiper-button-prev-custom.swiper-button-disabled,
.swiper-button-next-custom.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.burger-line {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  transition:
    max-height 0.35s ease,
    opacity 0.35s ease;
}

.mobile-nav.is-closed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.mobile-nav.is-open {
  max-height: 480px;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-slide-in-left,
  .animate-slide-in-right,
  .animate-count-pulse,
  .stat-number.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .burger-line,
  .mobile-nav,
  .swiper-button-prev-custom,
  .swiper-button-next-custom,
  .form-toast {
    transition: none;
  }
}

.form-field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444;
}

.field-error {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: #ef4444;
}

.form-toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  max-width: 22rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background-color: #6366f1;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 10px 25px rgba(26, 33, 48, 0.18);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.form-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 24rem;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-icon {
    transition: none;
  }

  .faq-item.is-open .faq-answer {
    max-height: none;
    overflow: visible;
  }
}
