/* Custom Styles for Y.E.S. Driving School */

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

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #E8553A;
}

/* Form select styling */
select option {
    background-color: #2d2d2d;
    color: white;
}

/* Geometric decorative elements */
.geometric-accent {
    position: absolute;
    pointer-events: none;
}

/* Button hover effects */
a:hover, button:hover {
    cursor: pointer;
}

/* Ensure all images have smooth loading */
img {
    image-rendering: auto;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Active nav link */
nav a.active {
    color: #FF6B4A;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
}

/* Remove default focus outline and use custom */
*:focus {
    outline: none;
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    nav, .scroll-reveal, #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
