html, body {
    font-size: 13px;
}

@media (max-width: 1279px) {
    #mobileMenu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 300px;
        max-width: 72vw;
        height: 100vh;
        min-height: 100vh;
        background: #ffffff;
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(110%);
        transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -12px 0 50px rgba(0, 0, 0, 0.18);
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #mobileMenu.show {
        transform: translateX(0);
    }

    #mobileMenu .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 1.75rem;
        flex-shrink: 0;
    }

    #mobileMenu .mobile-logo {
        display: flex;
        align-items: center;
        gap: 0.625rem;
    }

    #mobileMenu .mobile-logo img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        opacity: 0.85;
    }

    #mobileMenu .mobile-logo-text { display: flex; flex-direction: column; }

    #mobileMenu .mobile-logo-title {
        font-size: 0.8rem;
        font-weight: 700;
        color: #1d4ed8;
        letter-spacing: 0.03em;
    }

    #mobileMenu .mobile-logo-subtitle {
        font-size: 0.65rem;
        color: #9ca3af;
    }

    #mobileMenu .mobile-close-btn {
        background: transparent;
        border: none;
        cursor: pointer;
        color: #9ca3af;
        padding: 4px;
        line-height: 0;
        transition: color 0.2s;
    }

    #mobileMenu .mobile-close-btn:hover { color: #1f2937; }
    #mobileMenu .mobile-close-btn svg { width: 22px; height: 22px; }

    #mobileMenu .mobile-menu-content {
        flex: 1;
        padding: 1rem 1.75rem 2rem;
        display: flex;
        flex-direction: column;
    }

    #mobileMenu .mobile-nav {
        padding-top: 1rem;
    }

    #mobileMenu .mobile-nav a {
        display: block;
        padding: 1.1rem 0;
        color: #1f2937;
        text-decoration: none;
        font-size: 1.35rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        border-bottom: 1px solid #f3f4f6;
        transition: color 0.2s ease, letter-spacing 0.2s ease;
    }

    #mobileMenu .mobile-nav a:first-child { border-top: 1px solid #f3f4f6; }

    #mobileMenu .mobile-nav a:hover {
        color: #1d4ed8;
        letter-spacing: 0.16em;
    }

    #mobileMenu .mobile-phone-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.875rem;
        margin-top: 2rem;
        background: #1d4ed8;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 0.875rem;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.2s;
        letter-spacing: 0.02em;
    }

    #mobileMenu .mobile-phone-btn:hover { background: #1e40af; }
    #mobileMenu .mobile-phone-btn svg { width: 15px; height: 15px; }

    #mobileMenu .mobile-language-selector { margin-top: 1rem; }

    #mobileMenu .mobile-language-label {
        display: block;
        font-size: 0.65rem;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.4rem;
    }

    #mobileMenu #languageSelectMobile {
        width: 100%;
        padding: 0.55rem 0.75rem;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        color: #374151;
        font-size: 0.8rem;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        padding-right: 2rem;
    }

    #mobileMenu #languageSelectMobile:focus {
        outline: none;
        border-color: #1d4ed8;
    }
}

@media (max-width: 480px) {
    #mobileMenu {
        width: 260px;
        max-width: 78vw;
    }

    #mobileMenu .mobile-menu-header {
        padding: 1rem 1.25rem;
    }

    #mobileMenu .mobile-menu-content {
        padding: 0.5rem 1.25rem 1.5rem;
    }

    #mobileMenu .mobile-nav a {
        font-size: 1.1rem;
        padding: 0.85rem 0;
    }
}

@media (max-width: 768px) {
    #gallery .grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
        height: auto !important;
    }
    #gallery .grid.grid-cols-3 > .col-span-2 {
        grid-column: span 2 !important;
        height: 60vw !important;
    }
    #gallery .grid.grid-cols-3 > div:not(.col-span-2) {
        grid-column: span 1 !important;
        height: 40vw !important;
    }
    #gallery .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        height: auto !important;
    }
    #gallery .grid.grid-cols-4 > div {
        height: 40vw !important;
    }

    .status-container .bg-black\/40 {
        background: rgba(0, 0, 0, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
    }

    .status-container #heroStatusIndicator {
        border: none !important;
        box-shadow: none !important;
    }

    #currentTime {
        display: none !important;
    }

    #menu {
        padding-bottom: 80px !important;
        min-height: auto !important;
    }

    .menu-book-container {
        padding-bottom: 60px !important;
    }

    #mobileMenu .py-4 {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1279px) {
    #gallery {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    #gallery > .container {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    #gallery .max-w-7xl {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    #gallery .grid.grid-cols-3 {
        height: auto !important;
        flex: 3;
        min-height: 0;
    }

    #gallery .grid.grid-cols-4 {
        height: auto !important;
        flex: 2;
        min-height: 0;
    }
}

@media (min-width: 769px) {
    #menu .text-center.mb-16 {
        margin-bottom: 1.5rem !important;
    }
}

#gallery {
    padding-bottom: 32px !important;
}

#contact {
    padding-top: 40px !important;
}

@media (min-width: 769px) {
    #contact {
        padding-bottom: 12rem !important;
    }
}

.border-3 {
    border-width: 3px;
}

.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

.text-shadow-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                0 0 40px rgba(255, 255, 255, 0.3);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 0.8;
    }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#sidebarNav {
    position: fixed;
    bottom: 90px;
    right: 16px;
    will-change: transform, opacity;
    z-index: 40;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

@media (min-width: 768px) {
    #sidebarNav {
        bottom: 80px;
        right: 20px;
    }
}

#sidebarNav.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

#sidebarNav .nav-menu {
    background: rgba(245, 250, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 220, 245, 0.6);
    border-radius: 24px;
    padding: 24px 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), inset 0 0 20px rgba(59, 130, 246, 0.08);
    min-width: 220px;
}

#sidebarNav .nav-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: #1f2937;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    cursor: pointer;
}

#sidebarNav .nav-item:last-child {
    margin-bottom: 0;
}

#sidebarNav .nav-item:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    transform: translateX(-4px);
    padding-left: 20px;
}

#sidebarNav .nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-left: 3px solid #3b82f6;
    padding-left: 17px;
}

#sidebarNav .nav-icon {
    margin-right: 12px;
    font-size: 18px;
    display: inline-block;
    min-width: 24px;
}

@media (max-width: 480px) {
    #sidebarNav .nav-menu {
        min-width: 150px;
        padding: 14px 8px;
    }

    #sidebarNav .nav-item {
        padding: 9px 10px;
        font-size: 13px;
        margin-bottom: 4px;
    }

    #sidebarNav .nav-icon {
        margin-right: 8px;
        font-size: 15px;
        min-width: 20px;
    }
}


.menu-book-container {
    perspective: 2500px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-book {
    position: relative;
    width: 100%;
    height: 808px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-book-frame {
    position: relative;
    width: 95%;
    max-width: 1100px;
    height: 736px;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.45));
    margin-right: 10px;
}

.menu-book-frame::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 2.5%;
    right: calc(2.5% - 10px);
    height: 5px;
    background: linear-gradient(to bottom, #f4f4f4, #d8d8d8);
    border-radius: 2px 2px 0 0;
}

.menu-book-frame::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 2.5%;
    right: calc(2.5% - 10px);
    height: 7px;
    background: linear-gradient(to bottom, #e0e0e0, #b8b8b8);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.menu-book-cover-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5%;
    height: 100%;
    background: linear-gradient(to right,
        #0f0f1a 0%,
        #1e1e30 50%,
        #0f0f1a 100%
    );
    border-radius: 4px 0 0 4px;
    z-index: 20;
    box-shadow: inset -3px 0 10px rgba(0,0,0,0.6);
}

.menu-book-cover-spine::after {
    content: '';
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
        transparent,
        rgba(255,255,255,0.15),
        rgba(255,255,255,0.15),
        transparent);
}

.menu-book-cover-spine-right {
    position: absolute;
    right: -10px;
    top: 0;
    width: 2.5%;
    height: 100%;
    background: linear-gradient(to right,
        #0f0f1a 0%,
        #1e1e30 50%,
        #0f0f1a 100%
    );
    border-radius: 0 4px 4px 0;
    z-index: 20;
    box-shadow: inset 3px 0 10px rgba(0,0,0,0.6);
}

.menu-book-cover-spine-right::after {
    content: '';
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
        transparent,
        rgba(255,255,255,0.15),
        rgba(255,255,255,0.15),
        transparent);
}

.menu-book-pages-edge {
    position: absolute;
    right: -10px;
    top: 2px;
    bottom: 2px;
    width: 0px;
    z-index: 19;
}

.menu-book-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    border-radius: 0 4px 4px 0;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.2),
        inset 0 0 30px rgba(0,0,0,0.04);
}

.menu-book-spine {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(to right,
        rgba(0,0,0,0.22) 0%,
        rgba(0,0,0,0.06) 30%,
        rgba(0,0,0,0.06) 70%,
        rgba(0,0,0,0.22) 100%
    );
    z-index: 10;
    pointer-events: none;
}

.menu-book-spine::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
}

.menu-book-spine::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
}

.menu-page-wrapper {
    position: absolute;
    width: 50%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.5, 0.02, 0.5, 0.98);
}

.menu-page-wrapper.left-side {
    left: 0;
    transform-origin: right center;
    padding-left: 2%;
}

.menu-page-wrapper.right-side {
    right: 0;
    transform-origin: left center;
}

.menu-page-wrapper.flipping {
    z-index: 100;
}

.menu-page-wrapper.left-side.flipped {
    transform: rotateY(-180deg);
}

.menu-page-wrapper.right-side.flipped {
    transform: rotateY(180deg);
}

.menu-page {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #ffffff;
    overflow: hidden;
}

.menu-page.front {
    transform: rotateY(0deg);
}

.menu-page.back {
    transform: rotateY(180deg);
}

.menu-page-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    display: block;
}

.menu-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.01) 2px,
        rgba(0,0,0,0.01) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.menu-page-wrapper.left-side .menu-page::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.15), transparent);
    pointer-events: none;
    z-index: 2;
}

.menu-page-wrapper.right-side .menu-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.15), transparent);
    pointer-events: none;
    z-index: 2;
}

.page-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 44px 44px;
    border-color: transparent transparent rgba(0,0,0,0.07) transparent;
    transition: border-width 0.3s ease;
    z-index: 5;
}

.menu-page-wrapper.right-side:hover .page-corner {
    border-width: 0 0 64px 64px;
    border-color: transparent transparent rgba(0,0,0,0.12) transparent;
}

.menu-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 200;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.menu-nav-button:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.menu-nav-button.prev {
    left: -72px;
}

.menu-nav-button.next {
    right: -72px;
}

.menu-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-indicator {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .menu-nav-button.prev { left: -20px; }
    .menu-nav-button.next { right: -20px; }
}

@media (min-width: 769px) and (max-width: 1280px) {
    .menu-book-container { padding: 0 24px; }
    .menu-book {
        display: grid;
        grid-template-areas: "book book" "prev next";
        grid-template-columns: 1fr 1fr;
        height: auto;
        gap: 43px;
    }
    .menu-book-frame {
        grid-area: book;
        height: 680px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    .menu-nav-button {
        position: static;
        transform: none !important;
        width: 50px;
        height: 50px;
        justify-self: center;
    }
    .menu-nav-button:hover:not(:disabled) { transform: scale(1.1) !important; }
    .menu-nav-button.prev { grid-area: prev; }
    .menu-nav-button.next { grid-area: next; }
    .menu-page-image { object-fit: fill; }
}

@media (max-width: 768px) {
    .menu-book { height: auto !important; min-height: 0 !important; }
    .menu-book-frame { width: 100%; max-width: 100%; height: auto !important; min-height: 0 !important; filter: none; margin: 0; }
    .menu-book-inner { height: auto !important; min-height: 0 !important; box-shadow: none; }
    .menu-book-cover-spine,
    .menu-book-cover-spine-right,
    .menu-book-frame::before,
    .menu-book-frame::after,
    .menu-book-pages-edge,
    .menu-book-spine { display: none; }
    .menu-page-wrapper { width: 100%; left: 0; right: 0; padding: 0; }
    .menu-page-wrapper.left-side { display: none; }
    .menu-page-wrapper.right-side { display: block; transform: none !important; }
    .menu-page-wrapper.right-side.flipped { transform: none !important; }
    .menu-page-image { object-fit: contain; max-height: 400px; }
    .menu-nav-button { width: 44px; height: 44px; }
    .menu-nav-button.prev { left: 4px; }
    .menu-nav-button.next { right: 4px; }
}
