* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    transition: all 0.3s ease;
}

body.en {
    font-family: 'Arial', sans-serif;
    direction: ltr;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

.hero-section {
    position: relative;
    height: 280px;
    background-image: url('./../imgs/photo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.05));
}

.lang-switch {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    color: #722f37;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(114, 47, 55, 0.2);
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.3s forwards;
}

body.en .lang-switch {
    left: auto;
    right: 20px;
}

.lang-switch:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.3);
    background: #722f37;
    color: white;
}

.logo-container {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0;
    animation: zoomIn 0.8s ease-out 0.2s forwards;
}

.logo-box {
    width: 130px;
    height: 130px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(114, 47, 55, 0.3);
    position: relative;
    background: white;
}

.logo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-text {
    display: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #722f37;
}

.home-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: #722f37;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(114, 47, 55, 0.2);
    z-index: 30;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.3s forwards;
}

body.en .home-button {
    right: auto;
    left: 20px;
}

.home-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.3);
    background: #722f37;
    color: white;
}

.content {
    padding: 80px 20px 20px 20px;
    background: white;
    border-radius: 24px 24px 0 0;
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(114, 47, 55, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(114, 47, 55, 0.25);
}

.category-image-container {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5e6e8 0%, #fdf0f2 100%);
}

.category-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(114, 47, 55, 0.4), transparent);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #722f37 0%, #8b3a45 100%);
}

.category-name {
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    color: #722f37;
    text-align: center;
}

.items-section {
    margin-top: 30px;
}

.items-section.hidden {
    display: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #722f37;
    opacity: 0;
    animation: slideDown 0.6s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #722f37 0%, #8b3a45 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #722f37;
}

.items-grid {
    display: grid;
    gap: 15px;
}

.menu-item {
    background: white;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(114, 47, 55, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideIn 0.5s ease-out forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.15s; }
.menu-item:nth-child(3) { animation-delay: 0.2s; }
.menu-item:nth-child(4) { animation-delay: 0.25s; }
.menu-item:nth-child(5) { animation-delay: 0.3s; }
.menu-item:nth-child(6) { animation-delay: 0.35s; }
.menu-item:nth-child(7) { animation-delay: 0.4s; }
.menu-item:nth-child(8) { animation-delay: 0.45s; }
.menu-item:nth-child(9) { animation-delay: 0.5s; }
.menu-item:nth-child(10) { animation-delay: 0.55s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(114, 47, 55, 0.2);
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    color: #722f37;
    margin-bottom: 5px;
}

.item-name-secondary {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.item-price {
    font-size: 18px;
    font-weight: bold;
    color: #722f37;
}

.item-price::after {
    content: ' QR';
    font-size: 12px;
    font-weight: normal;
    color: #8b3a45;
}

.item-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5e6e8 0%, #fdf0f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #722f37;
    font-size: 32px;
    flex-shrink: 0;
    overflow: hidden;
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.item-icon:hover {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

body.en .item-icon {
    margin-left: 0;
    margin-right: 15px;
}

/* Image Modal/Lightbox */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.3s ease;
}

.image-modal.active {
    display: flex;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomInModal 0.3s ease;
}

@keyframes zoomInModal {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-icon {
    width: 200px;
    height: 200px;
    border-radius: 30px;
    background: linear-gradient(135deg, #f5e6e8 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #722f37;
    font-size: 120px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(114, 47, 55, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: white;
    color: #722f37;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.3);
}

.image-modal-close:hover {
    transform: scale(1.1);
    background: #722f37;
    color: white;
}

body.en .image-modal-close {
    right: auto;
    left: 0;
}

.image-modal-title {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.image-modal-price {
    position: absolute;
    bottom: -110px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    background: #722f37;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.4);
}

.back-to-categories {
    display: none;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: #f5e6e8;
    border: 2px solid #722f37;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #722f37;
    transition: all 0.3s ease;
    width: 100%;
}

.back-to-categories:hover {
    background: #722f37;
    color: white;
}

.back-to-categories.show {
    display: block;
}

@media (max-width: 480px) {
    .hero-section {
        height: 240px;
    }

    .logo-container {
        bottom: -20px;
    }

    .logo-box {
        width: 110px;
        height: 110px;
    }

    .logo-text {
        font-size: 18px;
    }

    .lang-switch,
    .home-button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .content {
        padding: 70px 15px 15px 15px;
        margin-top: -35px;
    }

    .categories-grid {
        gap: 12px;
    }

    .category-image-container {
        height: 120px;
    }

    .category-name {
        font-size: 14px;
        padding: 12px;
    }

    .section-title {
        font-size: 20px;
    }

    .item-name {
        font-size: 15px;
    }

    .item-icon {
        width: 100px;
        height: 60px;
        font-size: 28px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero-section {
        height: 260px;
    }

    .logo-container {
        bottom: -38px;
    }

    .logo-box {
        width: 120px;
        height: 120px;
    }

    .content {
        padding: 75px 18px 18px 18px;
        margin-top: -38px;
    }

    .categories-grid {
        gap: 14px;
    }

    .category-image-container {
        height: 130px;
    }
}

@media (min-width: 769px) {
    .container {
        max-width: 600px;
        box-shadow: 0 0 30px rgba(114, 47, 55, 0.15);
    }

    .hero-section {
        height: 320px;
    }

    .logo-container {
        bottom: -45px;
    }

    .logo-box {
        width: 150px;
        height: 150px;
        top: -20px;
    }

    .logo-text {
        font-size: 22px;
    }

    .lang-switch,
    .home-button {
        padding: 10px 20px;
        font-size: 15px;
    }

    .content {
        padding: 90px 25px 25px 25px;
        margin-top: -45px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .category-image-container {
        height: 150px;
    }

    .category-name {
        font-size: 16px;
        padding: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .menu-item {
        padding: 18px;
    }

    .item-name {
        font-size: 17px;
    }

    .item-icon {
        width: 100px;
        height: 80px;
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 700px;
    }

    .hero-section {
        height: 350px;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .category-card:hover {
        transform: translateY(-8px);
    }

    .menu-item:hover {
        transform: translateY(-5px);
    }
}