/* Custom styles for Job Truck Parts */

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

/* Navigation scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
    backdrop-filter: blur(10px);
}

.nav-scrolled .nav-text {
    color: #1a2744 !important;
}

.nav-scrolled .nav-subtext {
    color: #b8860b !important;
}

.nav-scrolled .menu-line {
    background: #1a2744 !important;
}

/* Mobile menu active state */
.mobile-menu-open #mobileMenu {
    transform: translateX(0);
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger-children .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger-children .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger-children .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger-children .reveal:nth-child(6) { transition-delay: 500ms; }

/* Hero image subtle float */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.hero-float {
    animation: float 6s ease-in-out infinite;
}

/* Gold accent line animation */
@keyframes expandLine {
    from { width: 0; }
    to { width: 3rem; }
}

/* Custom selection color */
::selection {
    background: #d4a017;
    color: #1a2744;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile link transitions */
.mobile-link {
    opacity: 1;
    transition: color 0.3s ease;
}
