/* ==========================================
   GIANMAURO'S CORE & CUSTOM STYLES
   ========================================== */

html, body {
    overflow-x: clip;
    width: 100%;
}

body {
    background-color: #38b7fe; 
    color: white;
    transition: background-color 0.4s ease;
}

.page-view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.page-view.active {
    display: block;
    opacity: 1;
}

.menu-tab-content {
    display: none;
}

.menu-tab-content.active {
    display: block;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spring transition for the pill indicator */
.spring-transition {
    transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #002368; }
::-webkit-scrollbar-thumb { background: #38b7fe; border-radius: 6px; border: 3px solid #002368; }
::-webkit-scrollbar-thumb:hover { background: #FFB31a; }

/* Hamburger to X animation & Body Scroll Lock */
.line { transition: transform 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.3s ease; transform-origin: center; }
.menu-open .line-1 { transform: translateY(8px) rotate(45deg); }
.menu-open .line-2 { opacity: 0; }
.menu-open .line-3 { transform: translateY(-8px) rotate(-45deg); }

/* html.menu-open, body.menu-open style block removed to allow natural scroll preservation */

#mobile-menu {
    touch-action: pan-y;
}

/* Horizontal Swipe Carousel & Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.carousel-card {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.carousel-card * {
    pointer-events: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* ==========================================
   HOMEPAGE MOBILE MENU 3D COVERFLOW CAROUSEL
   ========================================== */

.menu-3d-stage {
    perspective: 900px;
    -webkit-perspective: 900px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 460px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
}

.menu-3d-card {
    position: absolute;
    width: 270px;
    max-width: 74vw;
    height: 420px;
    border-radius: 2.5rem;
    background: #ffffff;
    color: #002368;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.5s ease, 
                filter 0.5s ease, 
                box-shadow 0.5s ease;
    transform-origin: center center;
    will-change: transform, opacity, filter;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    touch-action: pan-y;
}

.menu-3d-card * {
    pointer-events: none !important;
}

/* Center Card: Sharp, Glowing, Front-Facing */
.menu-3d-card-center {
    transform: translateX(0%) scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 30;
    filter: blur(0px);
    box-shadow: 0 20px 40px rgba(0, 35, 104, 0.45), 0 0 25px rgba(255, 179, 26, 0.45);
    pointer-events: auto;
}

/* Left Card: Angled inward toward center, transparent & soft blur */
.menu-3d-card-left {
    transform: translateX(-48%) scale(0.82) rotateY(28deg);
    opacity: 0.6;
    z-index: 10;
    filter: blur(2px) brightness(0.9);
    pointer-events: auto;
}

/* Right Card: Angled inward toward center, transparent & soft blur */
.menu-3d-card-right {
    transform: translateX(48%) scale(0.82) rotateY(-28deg);
    opacity: 0.6;
    z-index: 10;
    filter: blur(2px) brightness(0.9);
    pointer-events: auto;
}

/* Bulletproof Mobile Background Lock */
.locked-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Fallback for older browsers */
    height: 100lvh; /* Stable large viewport height */
    z-index: -10;
    pointer-events: none;
}

/* Infinite Marquee Scrolling */
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: flex;
    /* Slowed down to 40s */
    animation: marquee 40s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   PREMIUM MINIMAL PRELOADER STYLES
   ========================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #002368; /* Deep Navy matching branding */
    z-index: 9999999; /* Higher than mobile menu drawer so preloader covers screen smoothly */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
    opacity: 1;
    visibility: visible;
}

.preloader.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.preloader-logo {
    height: 96px;
    width: auto;
    object-fit: contain;
    animation: pulse-logo 2.5s infinite ease-in-out;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(56, 183, 254, 0.1); /* Subtle sky blue glow */
    border-radius: 50%;
    border-top-color: #FFB31a; /* Vibrant Gian yellow */
    animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-logo {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.95;
        filter: drop-shadow(0 0 15px rgba(56, 183, 254, 0.15));
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 30px rgba(255, 179, 26, 0.5));
    }
}

/* ==========================================
   PREMIUM LANGUAGE TOGGLE PILL STYLES
   ========================================== */

.lang-toggle-pill {
    position: relative;
    display: inline-flex;
    background: rgba(11, 35, 71, 0.45); /* Marine shadow */
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    padding: 3px;
    border-radius: 9999px;
    align-items: center;
    width: 90px;
    height: 38px;
    cursor: pointer;
    user-select: none;
}

.lang-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background-color: #FFB31a; /* Beer Yellow */
    border-radius: 9999px;
    transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    z-index: 0;
}

html.lang-es-active .lang-indicator {
    transform: translateX(100%);
}

.lang-btn {
    position: relative;
    z-index: 1;
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Mont', 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: color 0.3s ease;
}

/* Active language text styles */
html:not(.lang-es-active) .lang-btn-en { color: #002368 !important; }
html:not(.lang-es-active) .lang-btn-es { color: rgba(255, 255, 255, 0.6) !important; }
html.lang-es-active .lang-btn-en { color: rgba(255, 255, 255, 0.6) !important; }
html.lang-es-active .lang-btn-es { color: #002368 !important; }

/* Language Swapping Display Rules */
html:not(.lang-es-active) .lang-es { display: none !important; }
html.lang-es-active .lang-en { display: none !important; }

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
/* Make all menu item headers bold in Smash Burgers and Kids sections */
#content-burgers h3,
#content-kids h3 {
    font-weight: 700;
}

/* Premium modern multi-layered soft shadows with color tint */
.shadow-premium {
    box-shadow: 0 20px 50px -12px rgba(0, 35, 104, 0.16), 
                0 10px 25px -10px rgba(0, 35, 104, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.shadow-premium:hover {
    box-shadow: 0 35px 70px -15px rgba(0, 35, 104, 0.28),
                0 15px 35px -10px rgba(0, 35, 104, 0.12);
}

/* Before and After Interactive Slider */
.ba-slider {
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
}
.ba-slider .ba-after-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    width: 50%;
    z-index: 10;
}
.ba-slider .ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #FFB31a;
    z-index: 20;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 12px rgba(255, 179, 26, 0.8);
}
.ba-slider .ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background-color: #FFB31a;
    color: #002368;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 35, 104, 0.3);
    border: 3px solid #FFFFFF;
}
.ba-slider input[type="range"].ba-range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 30;
    margin: 0;
}

/* ==========================================
   PROMO POPUP ANIMATION SYSTEM (WOW ENTRANCE)
   ========================================== */

.modal-entrance {
    animation: modalPopIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-exit {
    animation: modalPopOut 0.25s ease-in forwards;
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.45) translateY(50px) rotate(-6deg);
        filter: blur(10px);
    }
    70% {
        opacity: 1;
        transform: scale(1.06) translateY(-8px) rotate(1.5deg);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
        filter: blur(0px);
    }
}

@keyframes modalPopOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
}

@keyframes starBurst {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-60deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.35) rotate(20deg);
    }
    100% {
        opacity: 0.9;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes floatStar {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-10px) scale(1.18) rotate(10deg); }
}

@keyframes shineSweep {
    0% { transform: translateX(-150%) rotate(30deg); }
    100% { transform: translateX(200%) rotate(30deg); }
}

.animate-shine {
    animation: shineSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}
