/* Custom styles for Mr Chi Boba and Tea */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #030805;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Selection color */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #fdfbf7;
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(3, 8, 5, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(16, 185, 129, 0.1);
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #a7f3d0;
    border: 1px solid rgba(16, 185, 129, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}

.menu-tab.active {
    background: #059669;
    border-color: #059669;
    color: #fdfbf7;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Menu card filter animation */
.menu-card {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Apply floating to stat cards */
.z-30:nth-child(1) {
    animation: float 4s ease-in-out infinite;
}
.z-30:nth-child(2) {
    animation: float 4s ease-in-out infinite 1s;
}
.z-10 {
    animation: float 4s ease-in-out infinite 2s;
}

/* Subtle glow on emerald elements */
.shadow-emerald-500\/20 {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
}

/* Image lazy load placeholder */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Reduced motion */
@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;
    }
}

/* Mobile menu button active state */
#menuBtn.active svg {
    transform: rotate(90deg);
}

/* Smooth focus outlines */
a:focus-visible, button:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}
