/* ─── Cinematic interactive menu ─── */
.cine-menu {
    position: relative;
    background: #050302;
    color: #fff;
    overflow: hidden;
}

.cine-menu__cursor {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 120, 40, 0.14) 0%, transparent 68%);
    transition: opacity 0.4s ease;
    mix-blend-mode: screen;
}

.cine-menu.is-active .cine-menu__cursor {
    opacity: 1;
}

.cine-menu__grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.09;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

.cine-menu__vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
}

/* Intro */
.cine-menu__intro {
    position: relative;
    z-index: 10;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(5rem, 12vh, 8rem) 1.5rem 3rem;
}

.cine-menu__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgba(255, 190, 120, 0.5);
    margin-bottom: 1rem;
}

.cine-menu__title {
    font-family: var(--font-condensed);
    font-size: clamp(3rem, 11vw, 6.5rem);
    letter-spacing: 0.1em;
    line-height: 0.9;
    color: #faf6ee;
    text-shadow: 0 0 60px rgba(255, 130, 50, 0.25);
}

.cine-menu__tagline {
    margin-top: 1.25rem;
    font-size: clamp(0.88rem, 2vw, 1.05rem);
    color: rgba(255, 220, 180, 0.42);
    letter-spacing: 0.06em;
    max-width: 420px;
}

.cine-menu__intro-line {
    width: 1px;
    height: 48px;
    margin-top: 2rem;
    background: linear-gradient(180deg, rgba(255, 180, 80, 0.6), transparent);
    animation: intro-line-pulse 2.5s ease-in-out infinite;
}

@keyframes intro-line-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Category blocks */
.cine-menu__stack {
    position: relative;
    z-index: 5;
}

.menu-cat {
    --rx: 0deg;
    --ry: 0deg;
    --cat-glow: rgba(255, 100, 30, 0.35);
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 5vw, 4rem);
    overflow: hidden;
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-cat.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-cat.is-active {
    z-index: 8;
}

.menu-cat__ghost {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    font-family: var(--font-display);
    font-size: clamp(6rem, 22vw, 18rem);
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.035);
    pointer-events: none;
    z-index: 0;
    transition: color 0.6s ease, transform 0.6s ease;
}

.menu-cat.is-active .menu-cat__ghost {
    color: rgba(255, 255, 255, 0.055);
    transform: translate(-50%, -54%) scale(1.02);
}

.menu-cat__ambient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 30% 50%, var(--cat-glow), transparent 65%);
    opacity: 0.5;
    transition: opacity 0.6s ease, background 0.6s ease;
    pointer-events: none;
}

.menu-cat.is-active .menu-cat__ambient {
    opacity: 1;
}

.menu-cat__smoke {
    position: absolute;
    width: 50%;
    height: 40%;
    bottom: 10%;
    left: 20%;
    background: rgba(255, 160, 80, 0.06);
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.menu-cat.is-active .menu-cat__smoke {
    opacity: 1;
}

.menu-cat__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.menu-cat__border {
    position: absolute;
    inset: clamp(1.5rem, 4vw, 3rem);
    border-radius: 32px;
    border: 1px solid rgba(255, 200, 140, 0.06);
    pointer-events: none;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.menu-cat.is-active .menu-cat__border {
    border-color: rgba(255, 160, 80, 0.2);
    box-shadow: inset 0 0 80px rgba(255, 100, 30, 0.06);
}

.menu-cat__inner {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.menu-cat--reverse .menu-cat__inner {
    direction: rtl;
}

.menu-cat--reverse .menu-cat__inner > * {
    direction: ltr;
}

/* Themes */
.menu-cat--samosa { --cat-glow: rgba(255, 90, 20, 0.4); }
.menu-cat--bhajiya { --cat-glow: rgba(255, 170, 50, 0.38); }
.menu-cat--khaman { --cat-glow: rgba(180, 220, 70, 0.35); }
.menu-cat--other { --cat-glow: rgba(255, 140, 60, 0.32); }

.menu-cat--khaman .menu-cat__ambient {
    background: radial-gradient(ellipse 70% 60% at 70% 45%, rgba(180, 220, 70, 0.35), transparent 65%);
}

.menu-cat--other .menu-cat__ambient {
    background:
        radial-gradient(ellipse 50% 50% at 25% 50%, rgba(255, 100, 30, 0.25), transparent 55%),
        radial-gradient(ellipse 50% 50% at 75% 50%, rgba(255, 200, 80, 0.2), transparent 55%);
}

/* Food visual */
.menu-cat__visual {
    position: relative;
    height: clamp(280px, 42vh, 480px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 900px;
}

.menu-cat__food {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 36px 60px rgba(0, 0, 0, 0.65)) drop-shadow(0 12px 32px rgba(255, 100, 30, 0.2));
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease, opacity 0.5s ease;
    will-change: transform;
}

.menu-cat.is-active .menu-cat__food {
    filter: drop-shadow(0 44px 72px rgba(0, 0, 0, 0.7)) drop-shadow(0 16px 40px rgba(255, 120, 40, 0.35));
    transform: scale(1.05) translateY(-8px);
}

.menu-cat__visual--spin .menu-cat__food--primary {
    animation: snack-rotate 18s linear infinite;
}

.menu-cat__visual--spin .menu-cat__food--orbit {
    position: absolute;
    width: 38%;
    opacity: 0;
    animation: snack-orbit 14s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.menu-cat.is-active .menu-cat__food--orbit {
    opacity: 0.45;
}

@keyframes snack-rotate {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.04) rotate(2deg); }
}

@keyframes snack-orbit {
    0%, 100% { transform: translate(55%, -15%) scale(0.7) rotate(10deg); opacity: 0.2; }
    50% { transform: translate(-45%, 10%) scale(0.55) rotate(-8deg); opacity: 0.5; }
}

/* Glass panel */
.menu-cat__panel {
    transform-style: preserve-3d;
}

.menu-cat__glass {
    --rx: 0deg;
    --ry: 0deg;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 28px;
    background: rgba(14, 8, 5, 0.5);
    border: 1px solid rgba(255, 200, 140, 0.1);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition:
        transform 0.15s ease-out,
        border-color 0.45s ease,
        box-shadow 0.45s ease,
        backdrop-filter 0.45s ease;
}

.menu-cat.is-active .menu-cat__glass {
    border-color: rgba(255, 170, 90, 0.28);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 50px rgba(255, 100, 30, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.menu-cat__head {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 200, 140, 0.1);
    position: relative;
}

.menu-cat__head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 180, 80, 0.9), transparent);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-cat.is-active .menu-cat__head::after {
    width: 100%;
}

.menu-cat__num {
    font-family: var(--font-condensed);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: rgba(255, 190, 100, 0.45);
    display: block;
    margin-bottom: 0.4rem;
}

.menu-cat__title {
    font-family: var(--font-condensed);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff8f0;
    line-height: 1;
    transition: letter-spacing 0.5s ease, text-shadow 0.5s ease;
}

.menu-cat.is-active .menu-cat__title {
    letter-spacing: 0.12em;
    text-shadow: 0 0 40px rgba(255, 150, 50, 0.3);
}

.menu-cat__desc {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: rgba(255, 220, 180, 0.48);
    letter-spacing: 0.04em;
}

/* Menu items */
.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-list--compact .menu-item {
    padding: 0.65rem 0;
}

.menu-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: baseline;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: padding-left 0.35s ease, background 0.35s ease;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 60%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(255, 140, 50, 0.5), transparent);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-item:hover::before {
    width: 3px;
}

.menu-item:hover {
    padding-left: 0.65rem;
    background: rgba(255, 120, 40, 0.04);
}

.menu-item__name {
    font-family: var(--font-condensed);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 245, 230, 0.92);
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.menu-item:hover .menu-item__name {
    color: #fff;
    letter-spacing: 0.06em;
}

.menu-item__meta {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 200, 140, 0.35);
}

.menu-item__price {
    font-family: var(--font-condensed);
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    letter-spacing: 0.06em;
    color: var(--brand-gold-light);
    text-shadow: 0 0 0 transparent;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.35s ease, color 0.35s ease;
}

.menu-item:hover .menu-item__price {
    transform: scale(1.08);
    color: #fff4d6;
    text-shadow: 0 0 24px rgba(255, 180, 80, 0.55);
}

.menu-item__price.is-pulse {
    animation: price-glow 0.5s ease;
}

@keyframes price-glow {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); text-shadow: 0 0 32px rgba(255, 200, 100, 0.8); }
    100% { transform: scale(1.08); }
}

/* Particles */
.menu-cat__particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: menu-particle-rise linear forwards;
}

@keyframes menu-particle-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    12% { opacity: 0.85; }
    100% {
        transform: translateY(-120vh) scale(1);
        opacity: 0;
    }
}

/* Outro */
.cine-menu__outro {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: clamp(4rem, 10vh, 6rem) 1.5rem clamp(5rem, 12vh, 7rem);
    border-top: 1px solid rgba(255, 200, 140, 0.08);
}

.cine-menu__outro p {
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 200, 140, 0.4);
    margin-bottom: 1.5rem;
}

.cine-menu__call {
    font-family: var(--font-condensed);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-gold-light);
    text-decoration: none;
    transition: letter-spacing 0.35s ease, text-shadow 0.35s ease;
}

.cine-menu__call:hover {
    letter-spacing: 0.28em;
    text-shadow: 0 0 30px rgba(255, 180, 80, 0.5);
}

/* Mobile */
@media (max-width: 900px) {
    .cine-menu__cursor {
        display: none;
    }

    .menu-cat__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .menu-cat--reverse .menu-cat__inner {
        direction: ltr;
    }

    .menu-cat__visual {
        height: clamp(220px, 36vh, 320px);
        order: -1;
    }

    .menu-cat__ghost {
        font-size: clamp(4rem, 28vw, 8rem);
    }

    .menu-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .menu-item__meta {
        grid-column: 1;
        font-size: 0.65rem;
    }

    .menu-item__price {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .cine-menu {
        overflow: visible;
    }

    .menu-cat {
        min-height: auto;
        padding: 3rem 1rem;
        overflow: visible;
    }

    .menu-cat__visual--spin .menu-cat__food--orbit {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cine-menu__cursor,
    .menu-cat__food,
    .menu-cat__food--orbit,
    .cine-menu__intro-line {
        animation: none !important;
    }

    .menu-cat {
        opacity: 1;
        transform: none;
    }
}
