/* Custom styles for Patriot Cycles */

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

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

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0f1a;
}
::-webkit-scrollbar-thumb {
    background: #a02020;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c23535;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 15, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(160, 32, 32, 0.2);
}

/* Selection color */
::selection {
    background: rgba(160, 32, 32, 0.5);
    color: #fff;
}

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

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

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

/* Service card hover lift */
.group:hover {
    transform: translateY(-2px);
}

/* Button press effect */
button:active, a:active {
    transform: scale(0.98);
}
