/* Swagat Samosa Center — Scroll-driven cinematic hero */

:root {
    --font-display: 'Anton', sans-serif;
    --font-condensed: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s ease-out;
    --food-size: min(92vw, 672px);
    --food-size-half: calc(var(--food-size) / 2);
    --brand-gold: #e8c56a;
    --brand-gold-light: #fff0c8;
    --brand-gold-deep: #9a7028;
}

/* Responsive typography helpers */
:root {
    --fluid-heading: clamp(1.8rem, 4vw + 1rem, 6rem);
    --fluid-display-large: clamp(3rem, 8vw + 2rem, 10rem);
    --fluid-display-medium: clamp(2rem, 6vw + 1rem, 6rem);
    --fluid-body: clamp(0.95rem, 1.8vw, 1.15rem);
}

/* Mobile navbar (glassmorphism) */
.mobile-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 18px;
    z-index: 9999;
    display: none; /* shown only on small screens */
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(10,6,4,0.45);
    border: 1px solid rgba(255,120,40,0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}

.mobile-nav__brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-nav__hamburger {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,120,40,0.06);
    border: 1px solid rgba(255,120,40,0.08);
    cursor: pointer;
}

.mobile-nav--visible { display: flex; }

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(255,100,20,0.06), transparent 20%), rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}
.mobile-menu-overlay.open { display: flex; }

/* Menu panel inside overlay */
.mobile-menu-panel {
    width: min(92%, 420px);
    border-radius: 14px;
    padding: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,120,40,0.06);
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    background: #0a0604;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ─── Hero shell ─── */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "brand"
        "carousel"
        "footer";
}

/* ─── Background themes ─── */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg__gradient,
.hero-bg__radial {
    position: absolute;
    inset: 0;
    transition: opacity 0.6s ease, background 0.6s ease;
}

.hero-bg__gradient {
    background: linear-gradient(155deg, #120600 0%, #3d1508 30%, #c44e12 55%, #6b280f 80%, #1a0800 100%);
}

.hero-bg__radial {
    opacity: 0.9;
    background: radial-gradient(ellipse 85% 70% at 50% 48%, rgba(255, 120, 40, 0.5), transparent 62%);
    transition: background 0.6s ease, opacity 0.6s ease;
}

.hero[data-theme="samosa"] .hero-bg__gradient {
    background: linear-gradient(155deg, #120600 0%, #3d1508 30%, #c44e12 55%, #6b280f 80%, #1a0800 100%);
}

.hero[data-theme="samosa"] .hero-bg__radial {
    background: radial-gradient(ellipse 88% 72% at 50% 46%, rgba(255, 120, 40, 0.52), transparent 60%);
}

.hero[data-theme="khaman"] .hero-bg__gradient {
    background: linear-gradient(160deg, #0a1206 0%, #1a3010 25%, #5a8a28 50%, #c8d84a 75%, #1a2808 100%);
}

.hero[data-theme="khaman"] .hero-bg__radial {
    background: radial-gradient(ellipse 88% 70% at 50% 44%, rgba(200, 220, 80, 0.48), transparent 62%);
}

.hero[data-theme="fafda"] .hero-bg__gradient {
    background: linear-gradient(150deg, #1a1004 0%, #4a3010 30%, #c9922a 55%, #e8b84a 70%, #2a1a08 100%);
}

.hero[data-theme="fafda"] .hero-bg__radial {
    background: radial-gradient(ellipse 86% 68% at 50% 45%, rgba(255, 200, 80, 0.45), transparent 62%);
}

.hero[data-theme="bhajiya"] .hero-bg__gradient {
    background: linear-gradient(150deg, #1a0600 0%, #6b1a00 28%, #e85a10 52%, #ff8c2a 68%, #2a0c00 100%);
}

.hero[data-theme="bhajiya"] .hero-bg__radial {
    background: radial-gradient(ellipse 90% 75% at 50% 44%, rgba(255, 90, 20, 0.55), transparent 58%);
}

/* ─── FX overlays ─── */
.hero-fx {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    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: 180px 180px;
    mix-blend-mode: overlay;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 95% 90% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-smoke {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-smoke--1 {
    width: 55%;
    height: 38%;
    bottom: 8%;
    left: 8%;
    background: rgba(255, 160, 60, 0.14);
}

.hero-smoke--2 {
    width: 45%;
    height: 32%;
    top: 18%;
    right: 6%;
    background: rgba(255, 200, 120, 0.1);
}

.hero-smoke--3 {
    width: 40%;
    height: 28%;
    bottom: 28%;
    left: 35%;
    background: rgba(255, 100, 30, 0.08);
}

.hero[data-theme="samosa"] .hero-smoke,
.hero[data-theme="bhajiya"] .hero-smoke {
    opacity: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    92% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-10vh) translateX(var(--drift, 20px)) rotate(360deg);
        opacity: 0;
    }
}

.particle--steam {
    background: rgba(255, 255, 255, 0.18);
    filter: blur(5px);
}

.particle--chili {
    background: #3a8a3a;
    border-radius: 30% 70% 40% 60%;
}

.particle--mustard {
    background: #c4a035;
    width: 4px !important;
    height: 4px !important;
}

.particle--crumb {
    background: #d4a84a;
    border-radius: 20%;
}

/* ─── Premium brand (top-left) ─── */
.hero-brand.brand {
    grid-area: brand;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 2.2vw, 1.35rem);
    padding: clamp(1.1rem, 2.5vh, 1.6rem) clamp(1.35rem, 4vw, 3rem);
    animation: brand-enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-brand.brand::before {
    content: '';
    position: absolute;
    left: clamp(0.75rem, 3vw, 2rem);
    top: 50%;
    width: clamp(200px, 28vw, 320px);
    height: 120%;
    transform: translateY(-50%);
    background: radial-gradient(ellipse 100% 80% at 0% 50%, rgba(255, 160, 50, 0.08), transparent 72%);
    pointer-events: none;
    z-index: -1;
}

@keyframes brand-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Circular gold monogram emblem */
.brand__emblem {
    position: relative;
    flex-shrink: 0;
    width: clamp(82px, 10.5vw, 105px);
    height: clamp(82px, 10.5vw, 105px);
    animation: brand-emblem-enter 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

@keyframes brand-emblem-enter {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.brand__emblem-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 12px rgba(255, 190, 90, 0.35)) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

/* Wordmark hierarchy */
.brand__wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1;
    animation: brand-word-enter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes brand-word-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand__title {
    font-family: var(--font-condensed);
    font-size: clamp(1.85rem, 5.2vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #faf6ee;
    text-shadow:
        0 0 40px rgba(255, 180, 80, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.35);
    margin: 0;
    padding: 0;
}

.brand__subtitle {
    font-family: var(--font-condensed);
    font-size: clamp(0.95rem, 2.6vw, 1.35rem);
    font-weight: 400;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(255, 236, 210, 0.88);
    margin-top: 0.12em;
    padding-left: 0.06em;
    text-shadow:
        0 0 28px rgba(255, 160, 60, 0.15),
        0 2px 12px rgba(0, 0, 0, 0.45);
}

.brand__locale {
    font-family: var(--font-body);
    font-size: clamp(0.58rem, 1.25vw, 0.68rem);
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 220, 180, 0.42);
    margin-top: clamp(0.55rem, 1.2vh, 0.75rem);
    padding-left: 0.15em;
}

/* ─── Giant typography (behind product) ─── */
.hero-display {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: var(--font-display);
    font-size: clamp(5rem, 22vw, 16rem);
    line-height: 0.82;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.065);
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    max-width: 100vw;
    padding: 0 0.5rem;
}

.hero-display.is-changing {
    opacity: 0;
    transform: translate(-50%, -46%);
}

/* ─── Scroll showcase (3D motion preserved) ─── */
.carousel-wrap {
    grid-area: carousel;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    margin-top: -2vh;
}

.carousel {
    width: 100%;
    max-width: 100%;
    height: min(78vh, 720px);
    position: relative;
}

.carousel__stage {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    perspective: 100rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-container {
    --depth: 32rem;
    --shift: 5.5rem;
    position: absolute;
    width: var(--food-size);
    height: var(--food-size);
    left: 50%;
    top: 50%;
    margin-left: calc(var(--food-size-half) * -1);
    margin-top: calc(var(--food-size-half) * -1);
    transform:
        rotateY(calc(var(--offset) * 50deg)) scaleY(calc(1 + var(--abs-offset) * -0.4)) translateZ(calc(var(--abs-offset) * -1 * var(--depth))) translateX(calc(var(--direction) * -1 * var(--shift)));
    filter: blur(calc(var(--abs-offset) * 1rem));
    transition: all 0.3s ease-out;
    pointer-events: none;
    background: none;
    border: none;
}

.card-container[data-active="true"] {
    pointer-events: auto;
    z-index: 8;
}

/* No boxes — floating product only */
.food-product {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.food-product__glow {
    position: absolute;
    inset: 0%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(255, 150, 50, 0.55) 0%, rgba(255, 100, 30, 0.2) 35%, transparent 68%);
    filter: blur(42px);
    transition: background 0.5s ease, opacity 0.5s ease;
    z-index: 0;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.85;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

.hero[data-theme="khaman"] .food-product__glow {
    background: radial-gradient(circle at 50% 45%, rgba(190, 230, 70, 0.5) 0%, rgba(120, 180, 40, 0.18) 38%, transparent 68%);
}

.hero[data-theme="fafda"] .food-product__glow {
    background: radial-gradient(circle at 50% 45%, rgba(255, 210, 90, 0.55) 0%, rgba(220, 160, 50, 0.22) 38%, transparent 68%);
}

.hero[data-theme="bhajiya"] .food-product__glow {
    background: radial-gradient(circle at 50% 45%, rgba(255, 100, 20, 0.6) 0%, rgba(255, 60, 0, 0.25) 35%, transparent 65%);
}

.food-product__shadow {
    position: absolute;
    bottom: 2%;
    left: 50%;
    width: 72%;
    height: 14%;
    transform: translateX(-50%) scaleY(0.35);
    background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(0, 0, 0, 0.55) 0%, transparent 72%);
    filter: blur(18px);
    z-index: 1;
}

.food-product__img {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border: none;
    outline: none;
    display: block;
    filter:
        drop-shadow(0 40px 70px rgba(0, 0, 0, 0.7)) drop-shadow(0 16px 36px rgba(255, 100, 30, 0.2)) saturate(1.14) contrast(1.08);
    transition: filter 0.3s ease-out;
}

.card-container[data-active="true"] .food-product {
    animation: food-float 5s ease-in-out infinite;
}

@keyframes food-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.hero[data-theme="khaman"] .food-product__img {
    filter:
        drop-shadow(0 40px 70px rgba(0, 0, 0, 0.68)) drop-shadow(0 16px 36px rgba(160, 200, 60, 0.22)) saturate(1.12) contrast(1.06);
}

.hero[data-theme="fafda"] .food-product__img {
    filter:
        drop-shadow(0 40px 70px rgba(0, 0, 0, 0.7)) drop-shadow(0 16px 36px rgba(255, 190, 70, 0.24)) saturate(1.16) contrast(1.08);
}

.hero[data-theme="bhajiya"] .food-product__img {
    filter:
        drop-shadow(0 44px 76px rgba(0, 0, 0, 0.75)) drop-shadow(0 18px 40px rgba(255, 80, 10, 0.28)) saturate(1.18) contrast(1.1);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: clamp(6.5rem, 12vh, 8rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.scroll-hint span {
    display: inline-block;
    animation: scroll-hint-pulse 2.2s ease-in-out infinite;
}

.scroll-hint span::after {
    content: '';
    display: block;
    width: 1px;
    height: 28px;
    margin: 0.5rem auto 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
}

@keyframes scroll-hint-pulse {

    0%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    50% {
        opacity: 0.7;
        transform: translateY(4px);
    }
}

/* ─── Footer ─── */
.hero-footer {
    grid-area: footer;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 3.5vh, 2.25rem);
}

.hero-meta {
    max-width: min(520px, 55vw);
    transition: opacity 0.3s ease-out;
}

.hero-meta.is-changing {
    opacity: 0;
}

.hero-meta__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.hero-meta__desc {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    max-width: 420px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.5rem 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: opacity 0.3s ease-out, transform var(--transition);
    flex-shrink: 0;
}

.hero-cta:hover {
    transform: translateX(6px);
}

.hero-cta:hover .hero-cta__arrow {
    transform: translateX(8px);
}

.hero-cta.is-changing {
    opacity: 0;
}

.hero-cta__arrow {
    display: inline-block;
    transition: transform var(--transition);
    font-size: 1.2em;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    :root {
        --food-size: min(96vw, 520px);
    }

    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    .hero-display {
        font-size: clamp(3.2rem, 24vw, 7rem);
        white-space: normal;
        top: 46%;
    }

    .carousel {
        height: min(68vh, 520px);
    }

    .card-container {
        --depth: 16rem;
        --shift: 3.5rem;
    }

    .carousel__stage {
        perspective: 55rem;
    }

    .hero-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .hero-meta {
        max-width: 100%;
    }

    .scroll-hint {
        bottom: 7.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --food-size: min(98vw, 440px);
    }

    .brand__title {
        letter-spacing: 0.1em;
    }

    .brand__subtitle {
        letter-spacing: 0.28em;
    }
}

/* ─── Hero Progress Dots ─── */
.hero-progress {
    position: absolute;
    right: clamp(1.25rem, 3.5vw, 2.5rem);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    z-index: 12;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    outline: none;
}

.progress-dot:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: scale(1.25);
}

.progress-dot.is-active {
    background: var(--brand-gold);
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(232, 197, 106, 0.5);
}

@media (max-width: 768px) {
    .hero-progress {
        right: 1.25rem;
        gap: 0.65rem;
    }
}

/* Cinematic menu: menu.css */

@media (prefers-reduced-motion: reduce) {

    .card-container,
    .hero-display,
    .hero-meta,
    .hero-cta,
    .hero-bg__gradient,
    .hero-bg__radial,
    .particle,
    .food-product,
    .food-product__glow,
    .scroll-hint span,
    .hero-brand.brand,
    .brand__emblem,
    .brand__wordmark {
        transition: none !important;
        animation: none !important;
    }
}