/* Custom styles for KornBreads 2k VIP Lounge */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scrolled state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-scrolled .nav-text {
    color: #111827 !important;
}

.nav-scrolled .nav-link {
    color: #374151 !important;
}

/* Stat card animations */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: -1.5s;
}

.stat-card:nth-child(3) {
    animation-delay: -3s;
}

.stat-card:nth-child(4) {
    animation-delay: -4.5s;
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .stat-card {
        animation: none;
    }
    
    .reveal {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img, .menu-item, .reveal {
        transition: none;
    }
    
    .menu-item:hover, .reveal:hover {
        transform: none;
    }
}

/* Mobile menu */
#mobileMenu {
    max-height: 0;
}

#mobileMenu.open {
    max-height: 500px;
}

/* Menu tabs */
.menu-tab {
    color: #9ca3af;
    background: transparent;
}

.menu-tab.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.menu-tab:hover:not(.active) {
    color: #d1d5db;
}

/* Menu items */
.menu-item {
    cursor: default;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a7f3d0;
}

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

/* Selection color */
::selection {
    background: #d1fae5;
    color: #064e3b;
}
