/* Custom styles for Spunkie's Soul Food Truck */

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

/* Base styles */
body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #F5A623;
    color: #1E0A24;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1E0A24;
}
::-webkit-scrollbar-thumb {
    background: #7B2D8E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A83FB3;
}

/* Letter spacing utility */
.letter-spacing-widest {
    letter-spacing: 0.2em;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 5, 18, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile menu transitions */
.mobile-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open .mobile-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open .mobile-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.open .mobile-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    .group img {
        transition: none !important;
    }
}

/* Hover card glow effect */
.group:hover {
    box-shadow: 0 20px 60px rgba(123, 45, 142, 0.15);
}

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

/* Touch device optimizations */
@media (hover: none) {
    .group:hover {
        box-shadow: none;
    }
    .group:hover img {
        transform: none;
    }
}
