/* Layout Fixes */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #fce7f3, #ffe4e6);
    color: #333;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

header {
    text-align: center;
    padding: 2rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #be185d;
    margin: 0;
    animation: fadeInDown 1s ease-out;
}

.language-switch {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.lang-btn img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.lang-btn.active img, .lang-btn:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.menu-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.menu-section:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.menu-section:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.menu-section h2 {
    font-size: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    z-index: 1;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.4s ease-out;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    color: #be185d;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #db2777;
}

#menu-modal-title {
    font-size: 2rem;
    color: #be185d;
    margin-bottom: 1.5rem;
    text-align: center;
}

.menu-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-3px);
}

.menu-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.menu-item div {
    flex: 1;
}

.menu-item h3 {
    font-size: 1.25rem;
    color: #db2777;
    margin: 0 0 0.5rem;
}

.menu-item .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ec4899;
}

.item-details {
    text-align: center;
}

.item-details img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.item-details h2 {
    font-size: 1.8rem;
    color: #db2777;
    margin: 0 0 0.5rem;
}

.item-details p {
    font-size: 1rem;
    color: #4b5563;
    margin: 0.5rem 0;
}

.item-details .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ec4899;
}

footer {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: #be185d;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    header h1 { font-size: 2.5rem; }
    .menu-section { height: 150px; }
    .menu-section h2 { font-size: 1.5rem; }
    .modal-content { width: 95%; padding: 1.5rem; }
    #menu-modal-title { font-size: 1.5rem; }
    .menu-item img { width: 80px; height: 80px; }
    .item-details img { width: 150px; height: 150px; }
}
