/* Custom styles for Rafa's 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;
  }
  .vehicle-card,
  .testimonial-card {
    transform: none !important;
  }
}

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

/* Scroll reveal animations (progressive enhancement - JS adds class) */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar transition */
#navbar.scrolled {
  background: rgba(20, 21, 23, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Vehicle card hover */
.vehicle-card {
  transform: translateY(0);
}

/* Testimonial card hover */
.testimonial-card {
  transform: translateY(0);
}

/* Back to top button */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
  background: #c4c6cb;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a5ad;
}

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

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #ff6f30;
  outline-offset: 2px;
}

/* Subtle gradient text for hero */
.gradient-text {
  background: linear-gradient(135deg, #ff8c57 0%, #ff6f30 50%, #f05410 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
