/* Custom styles for Moonshine Pizza */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1f2b;
}
::-webkit-scrollbar-thumb {
    background: #2ab88a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4fd3a7;
}

/* Floating shapes animation */
.floating-shape {
    position: absolute;
    opacity: 0.5;
}
.shape-1 {
    top: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}
.shape-2 {
    top: 60%;
    right: 8%;
    animation: float 8s ease-in-out infinite reverse;
}
.shape-3 {
    bottom: 20%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Scroll indicator */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Menu tab active state */
.menu-tab.active {
    background-color: #0d1f2b;
    color: white;
    box-shadow: 0 4px 15px rgba(13, 31, 43, 0.3);
}

.menu-tab:not(.active):hover {
    background-color: #f0f4f8;
    transform: translateY(-2px);
}

/* Menu card hover */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 31, 43, 0.15);
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(6, 15, 22, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu link hover */
.mobile-menu-link:hover {
    padding-left: 8px;
    transition: padding-left 0.2s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .floating-shape {
        animation: none;
    }
    .scroll-indicator {
        animation: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Menu grid animation */
.menu-item {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.menu-item.hidden-item {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* Image lazy load placeholder */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}
img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}
