/* Custom styles for Twonations Fast Freight */

:root {
    --navy-900: #0a192f;
    --navy-800: #112240;
    --gold-400: #d4af37;
    --gold-500: #c9a227;
    --gold-600: #b8941f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

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

::-webkit-scrollbar-track {
    background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-400);
}

/* Selection color */
::selection {
    background: var(--gold-500);
    color: var(--navy-900);
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 25, 47, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Service card hover effects */
.group:hover .group-hover\:rotate-3 {
    transform: rotate(3deg);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-500) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

/* Subtle parallax-like effect on hero */
#hero {
    perspective: 1px;
}

#hero img {
    will-change: transform;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal { display: none; }
    body { color: #000; background: #fff; }
}
