/* ========================================
   JC's Chuckwagon — Custom Styles
   ======================================== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #060c15;
    color: #d5dbe6;
}

/* Selection */
::selection {
    background: rgba(78, 205, 196, 0.3);
    color: #f0f3f8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #09121c;
}
::-webkit-scrollbar-thumb {
    background: #28396c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d5798;
}

/* Navbar transitions */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(6, 12, 21, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(40, 57, 108, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero floating card animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* Only animate when user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .floating-card-1 {
        animation: float-slow 6s ease-in-out infinite;
    }
    .floating-card-2 {
        animation: float-medium 5s ease-in-out infinite;
        animation-delay: -1s;
    }
    .floating-card-3 {
        animation: float-fast 4s ease-in-out infinite;
        animation-delay: -2s;
    }
    .floating-card-4 {
        animation: float-medium 5.5s ease-in-out infinite;
        animation-delay: -3s;
    }
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

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

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

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #4ECDC4;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0D1B2A 0%, #1a2d45 100%);
}

/* Smooth image transitions */
img {
    transition: filter 0.3s ease;
}

/* Map filter override for light mode consideration */
iframe[title*="location"] {
    border-radius: 1.5rem;
}
