/* Custom styles for 1-Stop Driving School */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
  background: #D4943A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C25E3A;
}

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

/* Service card hover effects */
.service-card {
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(194, 94, 58, 0.12);
}

/* Geometric shape animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-2deg); }
}

/* Navbar scroll effect */
nav.scrolled {
  background: rgba(18, 14, 10, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Fade-in animations for below-fold content */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.fade-in-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu transitions */
#mobileMenu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in, .fade-in-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .service-card:hover { transform: none; }
  .testimonial-card:hover { transform: none; }
  * { animation: none !important; transition-duration: 0s !important; }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .font-heading {
    letter-spacing: -0.02em;
  }
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #C25E3A;
  outline-offset: 2px;
  border-radius: 4px;
}
