/* Freedom Freight Inc. — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f0fdfa;
}

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

/* Only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .js-enabled .scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
    .js-enabled .scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
    .js-enabled .scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
    .js-enabled .scroll-reveal.revealed:nth-child(5) { transition-delay: 0.4s; }
    .js-enabled .scroll-reveal.revealed:nth-child(6) { transition-delay: 0.5s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(2, 6, 23, 0.95) !important;
    backdrop-blur: 16px !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}
.floating-card-2 {
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Select dropdown styling */
select option {
    background: #0f172a;
    color: #e2e8f0;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}
