/* Custom styles for Restoration Race Works */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1e2027;
}
::-webkit-scrollbar-thumb {
  background: #5c6170;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E85D4A;
}

/* Selection color */
::selection {
  background: #E85D4A;
  color: white;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(18, 20, 24, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transition */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden-reveal {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal.delay-100 { transition-delay: 0.1s; }
  .reveal.delay-200 { transition-delay: 0.2s; }
  .reveal.delay-300 { transition-delay: 0.3s; }
  .reveal.delay-400 { transition-delay: 0.4s; }
}

/* Service card hover glow */
.group:hover .group-hover\:bg-coral-500 {
  background-color: #E85D4A;
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6170' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Subtle pattern overlay for hero */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
