/* Custom styles for 3 A Method Driving School */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6f3;
}
::-webkit-scrollbar-thumb {
    background: #c46b7a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #832f3e;
}

/* Selection color */
::selection {
    background: #832f3e;
    color: #fefcfb;
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    box-shadow: 0 1px 20px rgba(131, 47, 62, 0.08);
}

/* Nav links underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #832f3e;
    transition: width duration 300ms ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #832f3e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover lift */
button, a {
    transition: all 0.3s ease;
}

/* Image hover zoom */
.group img {
    transition: transform 0.6s ease;
}
.group:hover img {
    transform: scale(1.03);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(196, 107, 122, 0.15);
}
