:root {
    --bg-color: #0f1115;
    --surface-color: #1a1d24;
    --text-primary: #ffffff;
    --text-secondary: #a0a5b1;
    --accent-color: #d4af37; /* Gold accent */
    --accent-hover: #f5d061;
    --border-radius: 12px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 1000;
    transition: background 0.3s ease, border-bottom 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: rgba(15, 17, 21, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 5%;
}

.logo {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 1px;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-color);
}

.lang-select {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-color);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    margin-left: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.lang-select option {
    background: var(--surface-color);
    color: var(--text-primary);
}



/* Hero */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(15, 17, 21, 0.5), rgba(15, 17, 21, 0.85)), url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?auto=format&fit=crop&w=2560&q=100') center/cover;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInDown 1s ease-out;
}

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


.hero-main-title {
    font-size: 1em;
    display: inline;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}


.category-mobile-toggle {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    cursor: pointer;
    color: var(--text-primary);
}
.cat-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cat-hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}
.cat-hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.cat-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.cat-hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


.category-nav.open {
    right: 0;
}

.category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.category-overlay.active {
    display: block;
    opacity: 1;
}

/* Category header inside sidebar */
.category-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.category-sidebar-header h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.category-close {
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text-secondary);
}

/* Category Nav Container */
.category-nav-wrapper {
    background: var(--surface-color);
    padding: 1rem 0;
    position: sticky;
    top: 76px; /* Below header */
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.category-nav {
    display: flex;
    overflow-x: auto;
    padding: 0 5%;
    gap: 1.5rem;
    scrollbar-width: none; /* Firefox */
}

/* Hide mobile header on desktop */
@media (min-width: 769px) {
    .category-header {
        display: none !important;
    }
}

.category-nav::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.category-link {
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.category-link:hover, .category-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Menu Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.menu-section {
    margin-bottom: 7rem;
    scroll-margin-top: 140px; /* offset for sticky navs */
}

.menu-category-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.menu-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Menu Card */
.menu-card {
    background: rgba(26, 29, 36, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.menu-card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.menu-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-card:hover .menu-card-img {
    transform: scale(1.05);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(26, 29, 36, 0.9);
}

.menu-header {
    margin-bottom: 0.5rem;
    width: 100%;
}

.menu-title-wrapper {
    flex-shrink: 0;
    max-width: 70%;
}

.menu-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.menu-title-en {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 400;
    margin-top: 0.4rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}


.menu-footer {
    display: block;
    margin-top: auto;
    padding-top: 1rem;
    width: 100%;
}

.menu-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    color: var(--accent-color);
    font-weight: 700;
    white-space: nowrap;
}
.menu-price-mobile { display: block; }
.menu-price-desktop { display: none; }


.menu-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.4;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: #bbb;
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--surface-color);
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-content .logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-card-content {
        padding: 1rem 0.6rem;
        text-align: center;
        align-items: center;
    }
    .menu-title-wrapper {
        max-width: 100%;
        width: 100%;
    }
    .menu-desc {
        margin-bottom: 0.6rem;
        font-size: 0.85rem;
    }
    .menu-footer {
        padding-top: 0.3rem;
    }
    .nav-desktop {
        display: none;
    }
    .hero-main-title {
        font-size: 1.6em;
        display: block;
        line-height: 1;
        margin-bottom: -1rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 0.7;
    }

    #hero {
        background-attachment: scroll !important;
    }
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 5%;
        align-items: center;
    }
    header.scrolled {
        padding: 0.8rem 5%;
    }
    
    nav#nav-links {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0.8rem;
    }
    nav a {
        margin: 0;
        font-size: 0.85rem;
        font-weight: 600;
    }
    .lang-select {
        margin-left: 0;
    }
    
    .category-mobile-toggle {
        display: flex;
    }
    .category-nav-wrapper {
        z-index: 1001; /* Fix stacking context for sidebar */
    }
    .category-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--surface-color);
        padding: 2rem 1.5rem 5rem 1.5rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.6);
        z-index: 9999 !important;
        transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: scroll; -webkit-overflow-scrolling: touch;
    }
    .category-nav.open {
        display: flex;
        right: 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 0.7;
    }
    .menu-category-title {
        font-size: 2.2rem;
    }
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .menu-card-content {
        padding: 0.8rem 0.4rem;
    }
    .menu-title {
        font-size: 0.9rem;
    }
    .menu-desc {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    .menu-footer {
        padding-top: 0.2rem;
    }
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .menu-card-img-wrapper {
        height: 140px;
    }
    .menu-title {
        font-size: 0.95rem;
    }
    .menu-price {
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) {
    .menu-card-content {
        padding: 1.5rem 1rem;
    }
    .menu-title-wrapper {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
    .menu-title {
        font-size: 1.15rem;
    }
    .menu-desc {
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }
    .menu-footer {
        padding-top: 0.5rem;
    }
    .menu-price {
        font-size: 1.2rem;
    }
}

html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}
