/* EQUS Driving School — Custom Styles */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #0F1117;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero animations */
@media (prefers-reduced-motion: no-preference) {
  .hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero-anim:nth-child(1) { animation-delay: 0.1s; }
  .hero-anim:nth-child(2) { animation-delay: 0.25s; }
  .hero-anim:nth-child(3) { animation-delay: 0.4s; }
  .hero-anim:nth-child(4) { animation-delay: 0.55s; }

  @keyframes heroFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Navbar */
#navbar.scrolled {
  background-color: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1A1D27; }
::-webkit-scrollbar-thumb { background: #3D4250; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4F5566; }

/* Selection */
::selection { background: rgba(232, 99, 90, 0.3); color: #ffffff; }

/* Image aspect ratio helpers */
img { max-width: 100%; height: auto; }
</style>
