/* Custom Styles for Tri-County Collision */

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

/* Scroll animation base */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.scroll-animate:nth-child(1) { transition-delay: 0.05s; }
.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.15s; }
.scroll-animate:nth-child(4) { transition-delay: 0.2s; }
.scroll-animate:nth-child(5) { transition-delay: 0.25s; }
.scroll-animate:nth-child(6) { transition-delay: 0.3s; }

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 31, 51, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Custom selection color */
::selection {
    background: rgba(201, 149, 46, 0.3);
    color: #152a45;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Subtle hover glow on gold buttons */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #152a45;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-animate {
        transform: translateY(20px);
    }
}
