/* Custom styles for Fast Lane Auto Sales */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(3, 9, 18, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Hero gradient orbs animation */
.hero-gradient-orb {
  animation: float 8s ease-in-out infinite;
}

.hero-gradient-orb:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.hero-gradient-orb:nth-child(3) {
  animation-delay: -5s;
  animation-duration: 12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero entrance */
.hero-badge {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-badge:nth-child(2) { animation-delay: 0.4s; }

h1 {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

h1 + p {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.7s;
}

.hero-badge ~ p {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.7s;
}

.hero-badge ~ * > a:first-of-type {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.9s;
}

.hero-badge ~ * > a:last-of-type {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1.0s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal (below the fold only) */
.reveal-section {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-section {
    opacity: 0;
    transform: translateY(30px);
  }

  .reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-section:nth-child(2) { transition-delay: 0.1s; }
  .reveal-section:nth-child(3) { transition-delay: 0.2s; }
  .reveal-section:nth-child(4) { transition-delay: 0.3s; }
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #060e1a;
}

::-webkit-scrollbar-thumb {
  background: #1e3a5f;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2d4a6f;
}

/* Selection color */
::selection {
  background: rgba(52, 211, 153, 0.3);
  color: #fff;
}
