@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Tajawal:wght@200;300;400;500;700&display=swap');

:root {
    /* Cinematic Royal Navy Palette */
    --royal-navy: #0A1128;
    --navy-dark: #050814;
    --platinum: #E5E4E2;
    --platinum-dim: rgba(229, 228, 226, 0.6);
    --gold-accent: #BFA15F;
    
    --font-serif: 'Amiri', serif;
    --font-sans: 'Tajawal', sans-serif;
    --font-eng: 'Playfair Display', serif;
    
    --ease-cinematic: cubic-bezier(0.77, 0, 0.175, 1);
}

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

body, html {
    background-color: var(--navy-dark);
    color: var(--platinum);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow: hidden; /* We will scroll inside the snap-container */
    height: 100%;
}

/* =========================================
   1. THE GLASS SPLIT ENTRANCE
   ========================================= */
.cinematic-entrance {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.door {
    position: absolute;
    top: 0; bottom: 0;
    width: 50%;
    background: var(--royal-navy);
    transition: transform 1.5s var(--ease-cinematic);
    z-index: 10001;
}

.door-left { left: 0; border-right: 1px solid rgba(229, 228, 226, 0.1); }
.door-right { right: 0; border-left: 1px solid rgba(229, 228, 226, 0.1); }

.entrance-content {
    position: relative;
    z-index: 10002;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platinum-logo {
    height: 140px;
    border-radius: 50%;
    /* Filter to make the purple/white logo look Platinum/Silver on Navy */
    filter: grayscale(1) brightness(1.5) contrast(1.2) drop-shadow(0 0 20px rgba(229, 228, 226, 0.3));
    opacity: 0;
    transform: scale(0.9);
    animation: glowLogo 2s ease forwards 0.5s;
}

.entrance-brand-name {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--platinum);
    margin-top: 1rem;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: entranceText 2s ease forwards 1s;
}

@keyframes entranceText {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes glowLogo {
    0% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.05); filter: grayscale(1) brightness(2) contrast(1.2) drop-shadow(0 0 40px rgba(229, 228, 226, 0.8)); }
    100% { opacity: 1; transform: scale(1); }
}

/* The Opening Action */
.cinematic-entrance.opening .door-left { transform: translateX(-100%); }
.cinematic-entrance.opening .door-right { transform: translateX(100%); }
.cinematic-entrance.opening .platinum-logo { animation: fadeLogoOut 0.8s ease forwards; }

.cinematic-entrance.done {
    pointer-events: none;
    display: none;
}

@keyframes fadeLogoOut {
    to { opacity: 0; transform: scale(1.5); filter: blur(10px); }
}

/* =========================================
   2. MINIMALIST HEADER
   ========================================= */
.cinematic-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 1.5rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10, 15, 30, 0.9) 0%, transparent 100%);
    pointer-events: none; /* Let clicks pass through unless on buttons */
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: all;
}

.header-logo-img {
    height: 40px;
    filter: grayscale(1) brightness(1.5) contrast(1.2);
}

.header-brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--platinum);
    font-weight: 700;
}

.cart-btn {
    background: rgba(229, 228, 226, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 228, 226, 0.2);
    color: var(--platinum);
    width: 45px; height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}
.cart-btn:hover { background: var(--platinum); color: var(--royal-navy); }

/* =========================================
   3. SNAP SCROLL CONTAINER (The Core)
   ========================================= */
.snap-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar for immersive feel */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.snap-container::-webkit-scrollbar { display: none; }

.snap-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Cinematic Visuals (Top 65% of screen) */
.cinematic-visual {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 65vh;
    z-index: 1;
}

.cinematic-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fade-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(5, 8, 20, 0.1) 0%,
        rgba(5, 8, 20, 0.5) 50%,
        rgba(5, 8, 20, 0.9) 80%,
        var(--navy-dark) 100%);
}

/* Cinematic Content (Bottom 35% of screen) */
.cinematic-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 45vh; /* Overlaps visual to allow gradient fade space */
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 0 5vw 12vh 5vw; /* Bottom padding to clear capsule */
}

.content-inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.category-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--gold-accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.3s;
}

.dish-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--platinum);
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

.dish-desc {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--platinum-dim);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.5s;
}

.dish-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.6s;
}

.dish-price {
    font-family: var(--font-eng);
    font-size: 1.5rem;
    color: var(--gold-accent);
}

.add-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--platinum);
    color: var(--royal-navy);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.add-btn:hover {
    transform: scale(1.1);
    background: var(--gold-accent);
}

/* Animations for Active Snap Section */
.snap-section.active .category-label,
.snap-section.active .dish-title,
.snap-section.active .dish-desc,
.snap-section.active .dish-action {
    opacity: 1;
    transform: translateY(0);
}

/* Image Scale Parallax Effect inside Active Section */
.snap-section .cinematic-visual img {
    transform: scale(1.1);
    transition: transform 2s ease;
}
.snap-section.active .cinematic-visual img {
    transform: scale(1);
}


/* Footer Slide */
.footer-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--royal-navy);
}
.footer-logo-img {
    height: 80px;
    filter: grayscale(1) brightness(1.5);
    margin-bottom: 1.5rem;
}
.footer-slide p {
    font-size: 1.2rem;
    color: var(--platinum-dim);
    margin-bottom: 1rem;
}
.footer-copyright {
    font-family: var(--font-eng);
    font-size: 0.9rem;
    color: var(--gold-accent);
}

/* =========================================
   4. THE FLOATING GLASS CAPSULE (Bottom Dock)
   ========================================= */
.glass-capsule {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 17, 40, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(229, 228, 226, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.capsule-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.capsule-btn {
    background: transparent;
    border: none;
    color: var(--platinum-dim);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.capsule-btn i { font-size: 1rem; }

.capsule-btn:hover {
    color: var(--platinum);
    background: rgba(229, 228, 226, 0.1);
}

.capsule-btn.active {
    background: var(--platinum);
    color: var(--royal-navy);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(229, 228, 226, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-capsule {
        bottom: 1.5rem;
        width: 90%;
        max-width: 350px;
        padding: 0.4rem 0.5rem;
    }
    .capsule-list {
        width: 100%;
        justify-content: space-between;
    }
    .capsule-btn {
        padding: 0.6rem 0.8rem;
        flex: 1;
        justify-content: center;
    }
    .capsule-btn span {
        display: none; /* Hide text on small screens, show only icons */
    }
    .capsule-btn.active span {
        display: inline-block; /* Show text only for active item on mobile */
    }
    
    .dish-title { font-size: 2.8rem; }
}
