/* Custom styles for Cafe Cartel */

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

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Navbar scroll state */
nav {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line:last-child {
    transform-origin: left center;
}

button.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

button.menu-open .menu-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
    width: 1.5rem;
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    border: 1px solid rgba(255, 107, 74, 0.2);
    color: #3D424D;
}

.menu-tab.active {
    background: #FF6B4A;
    border-color: #FF6B4A;
    color: #FFFFFF;
}

.menu-tab:hover:not(.active) {
    border-color: #FF6B4A;
    color: #FF8566;
}

/* Menu panels */
.menu-panel {
    animation: fadeIn 0.4s ease;
}

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

/* Scroll reveal */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

::-webkit-scrollbar-track {
    background: #0F1115;
}

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

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

/* Selection */
::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #FFFFFF;
}
