/* Custom styles for Tennessee Valley Driving School */

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

/* Mobile link active state */
.mobile-link:active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #14b8a6;
}

/* Selection color */
::selection {
  background-color: rgba(13, 148, 136, 0.3);
  color: #0f172a;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Navbar active state */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Service card hover glow */
.group:hover .group-hover\:bg-teal-600 {
  background-color: #0d9488;
}

/* Input focus ring animation */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Hero badge pulse */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.animate-pulse {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Button press effect */
button:active, a:active {
  transform: scale(0.98);
}
