/* ===== MENU PAGE TEXT DESIGN — SITE NATIVE THEME ===== */

/* --- Premium WOW Splash Intro --- */
.premium-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #0a1118 0%, #020304 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
    overflow: hidden;
    perspective: 1000px; /* For 3D text */
}

/* Background Ripple Effect */
.splash-ripple {
    position: absolute;
    width: 150vw;
    height: 150vw;
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(0, 230, 184, 0.05) 180deg, transparent 360deg);
    animation: ripple-spin 3s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

@keyframes ripple-spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Mask to hide text initially for a sleek reveal */
.splash-mask {
    overflow: hidden;
    padding: 10px 20px;
    margin: -10px -20px; /* Keep centering perfect */
}

.splash-text {
    display: block;
    text-align: center;
    font-family: var(--font-heading), serif;
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    color: transparent;
    background: linear-gradient(110deg, #555 10%, #fff 40%, #00e6b8 50%, #fff 60%, #555 90%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 4px;
    padding-left: 4px; /* Fix symmetry for letter spacing */
    
    transform-origin: bottom center;
    opacity: 0;
    transform: translateY(100%) rotateX(80deg) scale(0.8);
    animation: wow-text-reveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glow behind the text */
.splash-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 60px;
    background: rgba(0, 230, 184, 0.4);
    filter: blur(40px);
    border-radius: 50%;
    opacity: 0;
    animation: wow-glow-pulse 1.8s ease-in-out forwards;
    z-index: -1;
}

@keyframes wow-text-reveal {
    0% {
        opacity: 0;
        transform: translateY(100%) rotateX(80deg) scale(0.8);
        background-position: 150% center;
        filter: blur(5px);
    }
    30% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
        background-position: 50% center; /* Light sweep hits middle */
        filter: blur(0px);
    }
    85% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1.03); /* very subtle float */
        background-position: -50% center;
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) rotateX(-20deg) scale(1.1); /* Blast forward and out */
        background-position: -100% center;
        filter: blur(10px);
    }
}

@keyframes wow-glow-pulse {
    0% { opacity: 0; width: 0%; }
    40% { opacity: 1; width: 120%; }
    85% { opacity: 1; width: 130%; }
    100% { opacity: 0; width: 150%; }
}

/* --- Menu Hero --- */
.menu-hero {
    position: relative;
    background: transparent;
    z-index: 1;
}

/* Cinematic Reveal Active State */
.menu-hero.reveal-active .hero-video-container {
    transform: scale(1);
    opacity: 1;
}

.menu-hero .hero-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 45vh;
    min-height: 350px;
    z-index: -1;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    background: #000;
}

.standalone-text-block {
    text-align: center;
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    position: relative;
    z-index: 2;
    margin: calc(45vh - 140px) 20px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.standalone-text-block h1 {
    text-align: center;
    width: 100%;
}

.standalone-text-block p {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.menu-wrapper {
    background: #000;
    position: relative;
    z-index: 2;
    padding-bottom: 100px;
    min-height: 100vh;
}

.hero-gradient-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, var(--bg-dark) 0%, var(--bg-dark) 10%, color-mix(in srgb, var(--bg-dark) 80%, transparent) 40%, color-mix(in srgb, var(--bg-dark) 40%, transparent) 70%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.menu-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.menu-hero.reveal-active .hero-video-container {
    height: 100vh;
    z-index: 100;
}

.menu-hero.reveal-active .hero-gradient-bottom {
    opacity: 0;
}

.menu-hero .hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.menu-hero.reveal-active .hero-video-container video {
    clip-path: inset(50% 0 50% 0);
    opacity: 0;
    animation: openCurtain 2.0s cubic-bezier(0.4, 0.0, 0.2, 1) 0.5s forwards;
}

@keyframes openCurtain {
    0% { clip-path: inset(50% 0 50% 0); opacity: 0; }
    5% { opacity: 1; }
    100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

.premium-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 20px 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-top-bar {
    display: flex;
    justify-content: flex-start;
    padding-top: env(safe-area-inset-top);
    margin-top: 70px; /* Preimum fix: avoid overlap with main header */
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.back-to-home-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.glass-badge {
    position: relative;
    background: rgba(15, 20, 25, 0.5); /* Base dark transparent */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    margin-bottom: 12px;
    display: inline-flex;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* The rotating bordeaux neon light */
.glass-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 60%, rgba(163, 0, 41, 0.8) 80%, transparent 100%);
    animation: rotate-bordeaux-neon 7s linear infinite;
    z-index: -2;
}

/* Inner mask to create the thin border effect */
.glass-badge::after {
    content: '';
    position: absolute;
    inset: 1px; /* Thickness of the neon border */
    background: rgba(15, 20, 25, 0.85); /* Slightly darker to make neon pop */
    border-radius: 40px;
    z-index: -1;
}

@keyframes rotate-bordeaux-neon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.menu-hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
    padding-bottom: 40px; /* Push text up slightly so categories can float over */
}

.menu-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 2px;
    
    /* Premium Turquoise Soft Pulse */
    background: linear-gradient(90deg, #ffffff 0%, rgba(0, 230, 184, 0.8) 50%, #ffffff 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: soft-turquoise-pulse 8s ease-in-out infinite;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
}

@keyframes soft-turquoise-pulse {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.menu-hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.allergens {
    font-size: 0.7em;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 4px;
    vertical-align: super;
}

/* Header CTA small */
.header-cta-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Active nav link */
.active-link {
    color: var(--accent-color) !important;
}
.active-link::after {
    width: 100% !important;
    background: var(--accent-color) !important;
}

/* --- Category Navigation --- */
.menu-categories {
    position: sticky;
    top: 60px;
    z-index: 100;
    margin-top: -40px; /* Premium fix: Categories float OVER the video bottom */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,1) 100%);
    border-bottom: 1px solid rgba(0, 204, 163, 0.05);
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.menu-categories::-webkit-scrollbar {
    display: none;
}

.categories-track {
    display: flex;
    gap: 6px;
    padding: 14px 20px;
    padding-top: 30px; /* Push buttons down into the solid black area */
    max-width: 1300px;
    margin: 0 auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.cat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent buttons from squishing to a tiny circle */
    gap: 10px;
    padding: 12px 22px;
    border-radius: 50px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    
    /* Neon Base Properties */
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

/* Rotating bordeaux neon light */
.cat-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 60%, rgba(163, 0, 41, 0.8) 80%, transparent 100%);
    animation: rotate-bordeaux-neon 7s linear infinite;
    z-index: -2;
}

/* Inner glass mask */
.cat-btn::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(20, 25, 30, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    z-index: -1;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 204, 163, 0.15);
}

.cat-btn:hover::after {
    background: rgba(0, 204, 163, 0.15); /* Hover tint on the inner mask */
}

.cat-btn.active {
    color: #fff;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 153, 122, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.cat-btn.active::after {
    background: linear-gradient(135deg, #008066, #00b38f); /* Darker Premium Turquoise */
}

.cat-icon {
    font-size: 1.1rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.cat-btn.active .cat-icon {
    transform: scale(1.15);
}

/* --- New Text-Based Menu Section --- */
.menu-wrapper {
    position: relative;
    z-index: 2;
    padding: 60px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-category-section {
    margin-bottom: 60px;
    animation: fadeIn 0.6s ease-out;
}

.menu-item.has-image {
    display: flex;
    align-items: stretch;
    flex-direction: column;
}

.menu-item-image {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.menu-item-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: contrast(1.05) saturate(1.1) sepia(0.08);
}

.menu-item.has-image:hover .menu-item-image img {
    transform: scale(1.05);
}

.menu-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-category-section.hidden {
    display: none;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.category-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.category-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-style: italic;
    font-family: var(--font-heading);
}

.category-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 20px auto 0;
    opacity: 0.5;
}

.menu-item-group {
    margin-bottom: 40px;
}

.menu-item-group > h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: inline-block;
}

.menu-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
    padding-left: 4px;
    padding-right: 20px; /* extra space at the end */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.menu-list::-webkit-scrollbar {
    display: none;
}

/* Individual Item Details */
.menu-item {
    flex: 0 0 calc(85vw - 20px);
    max-width: 320px;
    scroll-snap-align: start;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.menu-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
}

.menu-item-num {
    display: none;
}

.menu-item-title {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 15px;
}

.menu-item-title h4 {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.menu-item-title h4 span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
    vertical-align: super;
}

.menu-item-tr {
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0.8;
    margin-top: 2px;
}

.menu-item-dots {
    display: none;
}

/* No Image Item Centering */
.menu-item:not(.has-image) {
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 240px;
}

.menu-item:not(.has-image) .menu-item-content {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.menu-item:not(.has-image) .menu-item-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.menu-item:not(.has-image) .menu-item-title {
    padding-right: 0;
    align-items: center;
}

.menu-item:not(.has-image) .menu-item-price {
    text-align: center;
}

.no-image-badge {
    margin-top: 20px;
    padding: 8px 16px;
    background: rgba(0, 204, 163, 0.05);
    border: 1px solid rgba(0, 204, 163, 0.15);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-weight: 500;
}

.menu-item-price {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
}

.price-multiple {
    display: flex;
    flex-direction: column;
    text-align: right;
    align-items: flex-end;
    line-height: 1.2;
}

.price-multiple span {
    font-size: 0.75rem;
    color: var(--accent-color);
}

.menu-item-desc {
    margin-top: auto;
    padding-left: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.menu-item-allergenes {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(0, 204, 163, 0.1);
    border-radius: 8px;
}
.menu-item-allergenes h5 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.menu-item-allergenes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 40px;
}

.menu-item-allergenes li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

/* --- Info Banner --- */
.menu-info-banner {
    position: relative;
    z-index: 2;
    padding: 50px 20px;
    background: linear-gradient(135deg, rgba(11, 43, 64, 0.8), rgba(6, 10, 15, 0.98));
    border-top: 1px solid rgba(0, 204, 163, 0.08);
    border-bottom: 1px solid rgba(0, 204, 163, 0.08);
}

.info-banner-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-icon {
    font-size: 2rem;
    line-height: 1;
}

.info-item h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 3px;
    font-weight: 500;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.info-phone {
    color: var(--accent-color) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.info-divider {
    width: 1px;
    height: 45px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
    transition: background 1.8s ease;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .menu-hero-content h1 {
        font-size: 3rem;
    }

    .categories-track {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .cat-btn {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .info-banner-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .info-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .info-divider {
        width: 60px;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(0, 204, 163, 0.3), transparent);
    }
}

@media (max-width: 600px) {
    .menu-hero {
        height: auto;
        min-height: 260px;
        padding-bottom: 40px;
    }
    .menu-list {
        grid-template-columns: 1fr;
    }

    .menu-hero-content h1 {
        font-size: 2.2rem;
    }

    .categories-track {
        gap: 4px;
    }

    .cat-btn .cat-icon {
        display: none;
    }
    
    .category-header h2 {
        font-size: 2rem;
    }
    
    .menu-item-header {
        align-items: flex-start;
    }
    
    .menu-item-title h4 {
        font-size: 1.15rem;
    }
    
    .menu-item-price {
        font-size: 1.2rem;
    }
    
    .menu-item-allergenes ul {
        columns: 1;
    }
}

/* --- Digital Footer --- */
.digital-footer {
    text-align: center;
    padding: 30px 20px 40px;
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.7;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.digital-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.digital-footer a:hover {
    color: #ff8c00;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,140,0,0.5);
}

/* Back to Home Button */
.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-to-home-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* ===== MICRO-INTERACTIONS & UI FILTERS ===== */

/* Heart / Favorite Button */
.fav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: auto;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
}

.fav-btn:hover {
    color: #ff4757;
    transform: scale(1.1);
}

.fav-btn.active {
    color: #ff4757;
}
.fav-btn.active svg {
    fill: #ff4757;
}

/* Diet Filters */
.diet-filters-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.diet-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 204, 163, 0.3);
    border-radius: 50px;
    background: transparent;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.diet-filter-btn:hover {
    background: rgba(0, 204, 163, 0.1);
}

.diet-filter-btn.active {
    background: var(--accent-color);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 204, 163, 0.4);
}

/* Glassmorphism Lightbox */
.glass-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.glass-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-title {
    margin-top: 20px;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--accent-color);
}

.lightbox-trigger {
    cursor: zoom-in;
}

/* ===== STORYTELLING MODAL (Bottom Sheet for Mobile, Popup for Desktop) ===== */
.story-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center; /* Desktop */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.story-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.story-modal-content {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    scrollbar-width: none;
}
.story-modal-content::-webkit-scrollbar {
    display: none;
}

.story-modal-overlay.active .story-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-drag-handle {
    display: none;
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 4px;
    margin: 12px auto;
}

.story-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}
.story-modal-close:hover {
    background: var(--accent-color);
    color: #000;
}

.story-modal-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.story-modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-modal-body {
    padding: 25px 20px;
    text-align: center;
}

.story-modal-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.story-modal-price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.story-modal-desc-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
    text-align: left;
}

.story-modal-desc {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.story-modal-pairing {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}
.story-modal-pairing.hidden {
    display: none;
}

.pairing-badge {
    color: #D4AF37; /* Gold */
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.pairing-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pairing-content img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.pairing-info h4 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.pairing-info p {
    color: var(--accent-color);
    margin: 0;
    font-weight: 500;
}

.story-modal-disclaimer {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    margin-top: 15px;
}

/* ===== NEW PREMIUM UI COMPONENTS ===== */

/* Swipeable Row for Specific Categories */
.swipeable-row .menu-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}
.swipeable-row .menu-list::-webkit-scrollbar {
    display: none; /* Chrome */
}
.swipeable-row .menu-item {
    flex: 0 0 85%; /* 85% width on mobile */
    max-width: 320px;
    scroll-snap-align: center;
}

/* Dietary Badges */
.menu-item-image {
    position: relative;
}
.diet-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.badge-icon {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: -80px; /* hidden initially */
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 204, 163, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    pointer-events: none;
}
.back-to-top-btn.visible {
    bottom: 20px;
    opacity: 1;
    pointer-events: all;
}
.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 204, 163, 0.6);
}

/* Mobile Overrides for Premium UI */
@media (max-width: 600px) {
    /* Bottom Sheet Modal */
    .story-modal-overlay {
        align-items: flex-end; /* Align to bottom */
        padding: 0;
    }
    .story-modal-content {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 85vh;
        padding-top: 5px; /* for drag handle */
    }
    .story-modal-overlay.active .story-modal-content {
        transform: translateY(0);
    }
    .story-modal-image-wrapper {
        border-radius: 0;
    }
    
    /* Premium Top Tab Bar (User Request) */
    .menu-categories {
        position: sticky;
        top: 50px;
        bottom: auto;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0 0 20px 20px;
        background: rgba(10, 14, 20, 0.95);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
        padding: 6px 0 10px;
        z-index: 100;
    }
    
    /* Removed drag handle since it's no longer a bottom sheet */
    
    .categories-track {
        padding: 6px 20px 10px;
    }
    
    /* Adjust back to top button to not overlap with nav */
    .back-to-top-btn.visible {
        bottom: 90px;
    }
}

/* ================================================================
   PREMIUM MOBILE UPGRADE — Full mobile-first polish for QR menu
   ================================================================ */

@media (max-width: 768px) {

    /* ── Hero section ── */
    .menu-hero {
        min-height: 50vh;
    }

    .hero-text-block.standalone-text-block {
        padding: 32px 20px 28px;
        text-align: center;
    }

    .hero-text-block.standalone-text-block h1 {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
        line-height: 1.05;
    }

    .hero-text-block.standalone-text-block p {
        font-size: 1rem;
        opacity: 0.75;
    }

    /* ── Header polish ── */
    header .header-container {
        padding: 0 16px;
    }

    .logo-taka {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .lang-switcher {
        gap: 4px;
    }

    .lang-btn {
        padding: 5px 9px;
        font-size: 0.72rem;
    }

    /* ── Category nav ── */
    .menu-categories {
        border-radius: 0 0 20px 20px;
        padding: 8px 0;
    }

    .categories-track {
        gap: 8px;
        padding: 10px 16px 14px;
        justify-content: flex-start;
    }

    .cat-btn {
        padding: 10px 16px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .cat-icon {
        font-size: 1rem;
    }

    /* ── Menu content area ── */
    .menu-wrapper {
        padding: 32px 16px 60px; /* Reduced bottom padding since nav is at top */
    }

    .category-header {
        margin-bottom: 28px;
    }

    .category-header h2 {
        font-size: 2.2rem;
    }

    /* ── Menu cards — bigger touch targets ── */
    .menu-item {
        flex: 0 0 calc(82vw);
        max-width: 340px;
        border-radius: 20px;
        background: rgba(12, 20, 28, 0.75);
        border: 1px solid rgba(255,255,255,0.10);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        box-shadow:
            0 8px 32px rgba(0,0,0,0.45),
            inset 0 1px 0 rgba(255,255,255,0.07);
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .menu-item:active {
        transform: scale(0.98);
        box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    }

    .menu-item-image {
        height: 180px;
    }

    .menu-item-content {
        padding: 18px 16px;
    }

    .menu-item-title h4 {
        font-size: 1.05rem;
    }

    .menu-item-tr {
        font-size: 0.85rem;
    }

    /* ── Item price ── */
    .menu-item-price {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--accent-color);
        background: rgba(0,204,163,0.10);
        padding: 4px 12px;
        border-radius: 30px;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }

    /* ── Section headings ── */
    .menu-item-group > h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    /* ── Story modal sheet ── */
    .story-modal-content {
        border-radius: 28px 28px 0 0;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .story-modal-title {
        font-size: 1.5rem;
    }

    /* ── Scroll list ── */
    .menu-list {
        gap: 12px;
        padding-bottom: 20px;
    }

    /* ── Back-to-top ── */
    .back-to-top-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        right: 16px;
    }
}

@media (max-width: 430px) {
    /* ── Very small phones (iPhone SE etc.) ── */
    .menu-item {
        flex: 0 0 calc(88vw);
        max-width: 100%;
    }

    .category-header h2 {
        font-size: 1.9rem;
    }

    .cat-btn {
        padding: 9px 13px;
        font-size: 0.78rem;
    }

    .menu-wrapper {
        padding: 24px 12px 130px;
    }
}


/* ============================================================
   LIGHT / CREAM THEME — Premium Bistro Concept
   html[data-theme="light"] overrides everything
   ============================================================ */

/* ----- THEME TOGGLE BUTTON ----- */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0;
}
.theme-toggle-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: scale(1.1);
    border-color: rgba(255,255,255,0.4);
}
/* Dark mode shows moon, light mode shows sun */
body .theme-icon-light { display: none; }
body .theme-icon-dark  { display: flex; }
html[data-theme="light"] .theme-icon-dark  { display: none; }
html[data-theme="light"] .theme-icon-light { display: flex; }

html[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(11,27,50,0.2);
    background: rgba(11,27,50,0.06);
}
html[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(11,27,50,0.12);
}

/* ----- LIGHT THEME — BASE ----- */
html[data-theme="light"] {
    background-color: #F8F4EE;
    color: #1A1A2E;
}

/* Header */
html[data-theme="light"] header {
    background: rgba(248,244,238,0.95) !important;
    border-bottom: 1px solid rgba(11,27,50,0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
html[data-theme="light"] header.scrolled {
    background: rgba(248,244,238,0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(212,175,55,0.3) !important;
}
html[data-theme="light"] .nav-links a {
    color: #1A1A2E;
}
html[data-theme="light"] .nav-links a:hover {
    color: #8B6914;
}

/* Menu Hero Section */
html[data-theme="light"] .menu-hero {
    background: linear-gradient(160deg, #0B1B32 0%, #1a3a5c 100%);
}
html[data-theme="light"] .hero-text-block h1 {
    color: #fff;
}
html[data-theme="light"] .hero-text-block p {
    color: rgba(255,255,255,0.8);
}

/* Category Navigation */
html[data-theme="light"] .menu-categories {
    background: rgba(248,244,238,0.97);
    border-bottom: 1px solid rgba(11,27,50,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
html[data-theme="light"] .cat-btn {
    background: #fff;
    color: #2D3748;
    border: 1px solid rgba(11,27,50,0.1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
html[data-theme="light"] .cat-btn:hover {
    background: #F0E8D8;
    color: #0B1B32;
    border-color: rgba(212,175,55,0.4);
}
html[data-theme="light"] .cat-btn.active {
    background: linear-gradient(135deg, #D4AF37, #C29B27);
    color: #0B1B32;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}

/* Diet Filters */
html[data-theme="light"] .diet-filters-container {
    background: #F0EAE0;
    border-bottom: 1px solid rgba(11,27,50,0.07);
}
html[data-theme="light"] .diet-filter-btn {
    background: #fff;
    color: #2D3748;
    border: 1px solid rgba(11,27,50,0.12);
}
html[data-theme="light"] .diet-filter-btn.active {
    background: linear-gradient(135deg, #D4AF37, #C29B27);
    color: #0B1B32;
}

/* Menu Wrapper */
html[data-theme="light"] .menu-wrapper {
    background: #F8F4EE;
}

/* Category Section Header */
html[data-theme="light"] .menu-category-title {
    color: #0B1B32;
    border-bottom: 2px solid rgba(212,175,55,0.4);
}
html[data-theme="light"] .menu-category-title::after {
    background: #D4AF37;
}
html[data-theme="light"] .section-badge {
    background: rgba(212,175,55,0.15);
    color: #8B6914;
    border: 1px solid rgba(212,175,55,0.3);
}

/* Menu Item Cards */
html[data-theme="light"] .menu-item {
    background: #fff;
    border: 1px solid rgba(11,27,50,0.07);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
html[data-theme="light"] .menu-item:hover {
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
html[data-theme="light"] .menu-item-image::after {
    background: linear-gradient(to top, rgba(255,255,255,0.8) 0%, transparent 100%);
}
html[data-theme="light"] .menu-item-image img {
    filter: none;
}
html[data-theme="light"] .item-name {
    color: #0B1B32;
}
html[data-theme="light"] .item-desc {
    color: #5A6A7A;
}
html[data-theme="light"] .item-price {
    color: #8B6914;
}
html[data-theme="light"] .item-badge {
    background: rgba(212,175,55,0.12);
    color: #8B6914;
    border: 1px solid rgba(212,175,55,0.25);
}
html[data-theme="light"] .item-divider,
html[data-theme="light"] .menu-divider {
    background: rgba(11,27,50,0.06);
}

/* Story Modal (item detail popup) */
html[data-theme="light"] .story-modal-overlay {
    background: rgba(0,0,0,0.5);
}
html[data-theme="light"] .story-modal-content {
    background: #FEFCF8;
    color: #1A1A2E;
    border: 1px solid rgba(212,175,55,0.2);
}
html[data-theme="light"] .story-modal-title { color: #0B1B32; }
html[data-theme="light"] .story-modal-price { color: #8B6914; }
html[data-theme="light"] .story-modal-desc  { color: #4A5568; }
html[data-theme="light"] .story-modal-close {
    background: rgba(11,27,50,0.08);
    color: #0B1B32;
    border: 1px solid rgba(11,27,50,0.12);
}
html[data-theme="light"] .modal-drag-handle {
    background: rgba(11,27,50,0.15);
}
html[data-theme="light"] .pairing-badge {
    background: rgba(212,175,55,0.15);
    color: #8B6914;
}

/* Info Banner */
html[data-theme="light"] .menu-info-banner {
    background: linear-gradient(135deg, #0B1B32, #1a3a5c);
}
html[data-theme="light"] .info-item h4 { color: #fff; }
html[data-theme="light"] .info-item p   { color: rgba(255,255,255,0.7); }
html[data-theme="light"] .info-phone    { color: #D4AF37; }

/* Footer */
html[data-theme="light"] footer {
    background: #0B1B32;
    color: #fff;
}
html[data-theme="light"] .footer-brand h3 { color: #D4AF37; }
html[data-theme="light"] .footer-phone    { color: #D4AF37; }
html[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}
html[data-theme="light"] .digital-footer {
    background: #060F1E;
    color: rgba(255,255,255,0.4);
}
html[data-theme="light"] .digital-footer a { color: rgba(255,255,255,0.6); }

/* Back to top */
html[data-theme="light"] .back-to-top-btn {
    background: #D4AF37;
    color: #0B1B32;
}

/* Lightbox */
html[data-theme="light"] .glass-lightbox {
    background: rgba(0,0,0,0.7);
}
html[data-theme="light"] .lightbox-content {
    background: #FEFCF8;
    color: #0B1B32;
}
html[data-theme="light"] .lightbox-close {
    background: rgba(11,27,50,0.08);
    color: #0B1B32;
}
html[data-theme="light"] .lightbox-title { color: #0B1B32; }

/* Scrollbar (light theme) */
html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.5);
}
html[data-theme="light"] ::-webkit-scrollbar-track {
    background: #F0EAE0;
}

/* Smooth theme transition on all elements */
body,
body *,
body header,
body .menu-categories,
body .cat-btn,
body .menu-item,
body .story-modal-content,
body .glass-lightbox .lightbox-content {
    transition: background-color 0.4s ease,
                color 0.4s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}


/* ENHANCED VIDEO HERO */
.premium-hero {
    position: relative;
    height: 40vh; /* Better proportion */
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.premium-hero .hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.premium-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1); /* Vibrant but readable */
}

/* Multi-layer gradient for depth */
.premium-hero .hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 60%, var(--bg-dark, #111) 100%);
    z-index: 2;
}

.standalone-text-block {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    transform: translateY(20px);
}

.standalone-text-block h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    font-family: 'Playfair Display', serif;
}

.standalone-text-block p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Fix sticky category bar */
.menu-categories {
    position: sticky;
    top: 70px; /* Adjusted for header height */
    z-index: 999;
    background: var(--bg-dark, #111);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-top: -20px;
    padding: 10px 0;
    transition: background-color 0.3s ease;
}

/* Ensure body doesn't cause sticky issues */
body {
    overflow-x: hidden;
}


/* UI POLISH & BUG HUNT FIXES */
html, body {
    overflow-x: hidden;
    width: 100%;
}

a, button, .btn, .category-btn {
    touch-action: manipulation; /* Removes 300ms tap delay on mobile */
    -webkit-tap-highlight-color: transparent;
}

/* Ensure images don't overflow */
img, video {
    max-width: 100%;
    height: auto;
}

/* --- PREMIUM QR MENU HERO OVERRIDES --- */
/* Completely revamp the hero section to look embedded and professional */
.menu-hero {
    position: relative !important;
    background: transparent !important;
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 20px;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1;
}

/* Make the video absolute within the hero, NOT fixed to the viewport */
.menu-hero .hero-video-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    background: var(--bg-primary) !important;
    transform: none !important;
}

.menu-hero .hero-video-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    opacity: 0.8;
}

/* Remove the dirty black gradients from bottom */
.menu-hero::after,
.hero-gradient-bottom {
    display: none !important;
}

/* Standalone text block inside the hero */
.standalone-text-block {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0 !important;
    padding: 80px 20px 60px !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%) !important;
    text-align: center;
    border-radius: 0 0 24px 24px;
}

/* Light mode specifics for the text */
html[data-theme="light"] .standalone-text-block {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.8) 100%) !important;
}
html[data-theme="light"] .standalone-text-block h1 {
    color: var(--text-main) !important;
    text-shadow: none !important;
    background: none !important;
    -webkit-text-fill-color: var(--text-main) !important;
}
html[data-theme="light"] .standalone-text-block p {
    color: var(--text-secondary) !important;
}
html[data-theme="light"] .section-badge.glass-badge {
    background: rgba(255, 255, 255, 0.5) !important;
    color: var(--text-main) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Sticky Categories Menu */
.menu-categories {
    position: sticky !important;
    top: 75px !important; /* Header is ~75px */
    z-index: 1000 !important;
    background: var(--bg-primary) !important;
    margin-top: 0 !important;
    padding: 10px 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

/* Light mode specific categories */
html[data-theme="light"] .menu-categories {
    background: rgba(255, 255, 255, 0.95) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* --- Video Splash Screen --- */
.splash-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6; /* Slight darkness to make logo pop */
}
.splash-logo-container {
    position: relative;
    z-index: 2;
    animation: splash-logo-fade-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.8));
}
@keyframes splash-logo-fade-in {
    0% { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

/* ===== PREMIUM SPLASH ENHANCEMENTS ===== */
.premium-splash.is-exiting {
    opacity: 0;
    transform: scale(1.15);
    filter: blur(15px);
    visibility: hidden;
    pointer-events: none;
}

.splash-logo-container {
    position: relative;
    z-index: 2;
    animation: 
        splash-logo-enter 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        splash-neon-pulse 2s infinite ease-in-out alternate forwards;
    animation-delay: 0s, 1.5s; /* Neon starts after entry */
}

@keyframes splash-logo-enter {
    0% { opacity: 0; transform: scale(0.6) translateY(30px) rotateX(-20deg); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
    100% { opacity: 1; transform: scale(1) translateY(0) rotateX(0deg); filter: drop-shadow(0 0 15px rgba(0, 150, 255, 0.4)); }
}

@keyframes splash-neon-pulse {
    0% { filter: drop-shadow(0 0 15px rgba(0, 150, 255, 0.6)) drop-shadow(0 0 30px rgba(0, 150, 255, 0.3)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 25px rgba(0, 230, 184, 0.9)) drop-shadow(0 0 50px rgba(0, 230, 184, 0.7)) drop-shadow(0 0 90px rgba(0, 230, 184, 0.5)); transform: scale(1.05); }
}
