/* Custom styles for Sacramento Truck Driving School */

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Selection color */
::selection {
  background-color: rgba(251, 191, 36, 0.3);
  color: #f5f0f7;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a0a1e;
}
::-webkit-scrollbar-thumb {
  background: #4a224a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #743372;
}

/* Navigation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fbbf24;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile nav links */
.mobile-nav-link {
  font-size: 1rem;
}

/* Hero badge animation */
.hero-badge {
  animation: fadeInDown 0.8s ease forwards;
}

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

/* Reveal animations (progressive enhancement - only active when JS runs and user prefers motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Program cards hover */
.program-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Process steps */
.process-step {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Contact form inputs */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Select dropdown styling */
select option {
  background: #351a37;
  color: #f5f0f7;
}

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

/* Navbar scrolled state */
header.scrolled {
  background: rgba(26, 10, 30, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .font-display {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}
