/* ─── Custom animations & utilities ─── */

/* Navbar scroll effect */
#navbar {
  background: rgba(247, 247, 242, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

#navbar.scrolled {
  border-bottom-color: #e5e7eb;
  background: rgba(247, 247, 242, 0.95);
}

/* Slow bounce animation for truck */
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.animate-bounce-slow {
  animation: bounce-slow 2.5s ease-in-out infinite;
}

/* Smooth fade-in for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out both;
}

/* FAQ transition */
.faq-answer {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.faq-answer.open {
  display: block !important;
}
.faq-icon.rotated {
  transform: rotate(180deg);
}

/* Progress bar animated fill */
@keyframes fillBar {
  from { width: 0; }
}
.progress-bar {
  animation: fillBar 1s ease-out both;
}

/* Smooth scroll offset for anchor links */
html {
  scroll-padding-top: 80px;
}

/* Input focus ring override */
input:focus, textarea:focus, select:focus {
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
