/* Custom styles for Trucker Connections */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

nav.scrolled .nav-link {
    color: #704F35;
}

/* Mobile menu animation */
#mobile-menu.open .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.75rem;
}

/* Scroll reveal base — content visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Selection color */
::selection {
    background: #C65D3E;
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF7EE;
}
::-webkit-scrollbar-thumb {
    background: #D0BA88;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #BF9E6D;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}
