/* ===== Custom Styles for Good Time Charlie's Food Cove ===== */

/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar transition states */
.nav-scrolled .nav-text {
    color: #fff !important;
}

.nav-scrolled #navbar {
    background: rgba(5, 46, 22, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile menu animation */
.menu-btn-active .line-1 {
    transform: translateY(2.25px) rotate(45deg);
}

.menu-btn-active .line-2 {
    opacity: 0;
}

.menu-btn-active .line-3 {
    transform: translateY(-2.25px) rotate(-45deg);
}

/* Floating animations */
.floating-slow {
    animation: float 6s ease-in-out infinite;
}

.floating-fast {
    animation: float 4s ease-in-out infinite;
}

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

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

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .floating-slow,
    .floating-fast {
        animation: none;
    }
    
    .scroll-reveal {
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #f0fdf4;
}

::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: #16a34a;
    color: #fff;
}
