/* Custom styles for NA Auto Sales LLC */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a2d4d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c8a45e;
}

/* Selection color */
::selection {
    background: rgba(200, 164, 94, 0.3);
    color: #ffffff;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(5, 11, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 164, 94, 0.1);
}

/* Hero image parallax-like effect on scroll */
#hero img {
    will-change: transform;
}

/* Gold shimmer animation for CTA buttons */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Pulse animation for live indicator */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* 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);
    }
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for grid items */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* Select dropdown styling */
select option {
    background: #1a2d4d;
    color: #ffffff;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4d 100%);
}

/* Ensure all text has proper contrast */
.text-navy-200 {
    color: #d9e0f0;
}
.text-navy-300 {
    color: #b3c2e0;
}
.text-navy-400 {
    color: #8da4d0;
}
