/* Custom styles for Three A Traffic School */

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

/* Reduced motion support */
@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;
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  .reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll effect */
nav.scrolled {
  box-shadow: 0 4px 30px rgba(107, 33, 168, 0.3);
}

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

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

.hero-shape-1 {
  animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
  animation: float-slow 8s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf5ff;
}

::-webkit-scrollbar-thumb {
  background: #9333ea;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7e22ce;
}

/* Selection color */
::selection {
  background: #fbbf24;
  color: #3b0764;
}

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

/* Image placeholder styling */
img {
  max-width: 100%;
  height: auto;
}
