/* Custom styles for Momot Trailer Sales */

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

/* Hero badge animation */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

/* Hero content animations */
h1, h2, p, .trailer-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out both;
}

h1 { animation-delay: 0.2s; }
p { animation-delay: 0.4s; }
.trailer-card:nth-child(1) { animation-delay: 0.3s; }
.trailer-card:nth-child(2) { animation-delay: 0.4s; }
.trailer-card:nth-child(3) { animation-delay: 0.5s; }
.trailer-card:nth-child(4) { animation-delay: 0.6s; }
.trailer-card:nth-child(5) { animation-delay: 0.7s; }
.trailer-card:nth-child(6) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(15, 13, 11, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 171, 100, 0.1);
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

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

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid rgba(212, 171, 100, 0.6);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #0f0d0b;
}

::-webkit-scrollbar-thumb {
    background: #3d3530;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a4d44;
}

/* Selection color */
::selection {
    background: rgba(212, 171, 100, 0.3);
    color: #fdfbf7;
}
