/* Custom styles for Ace Driving School */

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

/* Navigation scroll state */
.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-link {
    transition: color 0.3s ease;
}

/* Mobile nav links */
.mobile-nav-link {
    transition: color 0.3s ease;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Hero gradient overlay fix for Safari */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 47, 46, 0.85) 0%, rgba(19, 78, 74, 0.7) 50%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

#hero > .relative {
    position: relative;
    z-index: 2;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Button hover lift effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background-color: #99f6e4;
    color: #042f2e;
}
