/* Custom styles for Fun Driving's Cool */

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

/* Selection color */
::selection {
  background: #22c57e;
  color: #0b1847;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #22c57e;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f2fdf9;
}
::-webkit-scrollbar-thumb {
  background: #8ee3bc;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4fd39d;
}

/* Scroll reveal base — content is visible by default, JS adds the animated class */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Navbar shadow on scroll */
#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(11, 24, 71, 0.08);
}

/* Subtle card tilt on hover */
@media (prefers-reduced-motion: no-preference) {
  .group:hover .card-lift {
    transform: translateY(-4px);
  }
}

/* Hero decorative animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hero-float {
  animation: float 6s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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