:root {
    --primary-color: #000;
    --secondary-color: #f7f7f7;
    --accent-color: #e0e0e0;
    --text-color: #333;
    --glow-color: rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    direction: ltr;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.loading-circle {
    position: relative;
    width: 120px;
    height: 120px;
    background-color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px var(--glow-color);
    animation: pulse 1.5s infinite;
}

.loading-circle img {
    width: 60%;
    height: auto;
}

.loading-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 15px var(--glow-color);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px var(--glow-color);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 15px var(--glow-color);
        transform: scale(1);
    }
}

.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.rtl {
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0; 
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px; 
    position: relative;
}

.language-controls {
    position: absolute;
    right: 0;
    top: 30px;
    display: flex;
    gap: 10px;
}

.rtl .language-controls {
    right: auto;
    left: 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px; 
}

.logo img {
    width: 80px; 
    height: auto;
    margin-bottom: 5px; 
}

.lang-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover, .lang-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px var(--glow-color);
}

.search-container {
    margin: 10px 0 20px; 
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 45px 12px 15px;
    border: 1px solid var(--primary-color); 
    border-radius: 4px; 
    font-size: 16px;
    outline: none;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
    background-color: #fff;
}

.rtl .search-input {
    padding: 12px 15px 12px 45px;
}

.search-input:focus {
    box-shadow: 0 3px 8px var(--glow-color);
    transform: none; 
    border-color: #000; 
}

.search-container::after {
    content: '';
    position: absolute;
    right: calc(50% - 230px);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z' fill='%23777'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.rtl .search-container::after {
    right: auto;
    left: calc(50% - 230px);
}

.menu-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.rtl .section-title::after {
    left: auto;
    right: 0;
    background: linear-gradient(90deg, transparent, var(--primary-color));
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--glow-color);
}

.item-image {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-item:hover .item-image img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
    color: white;
    transition: var(--transition);
}

.item-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.item-price {
    font-weight: bold;
    color: white;
    font-size: 18px;
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.no-results {
    text-align: center;
    margin-top: 50px;
    font-size: 20px;
    display: none;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    header {
        padding: 20px 0;
    }
    
    .language-controls {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }
    
    .rtl .language-controls {
        left: 0;
    }
    
    .logo img {
        width: 80px;
    }

    .menu-items {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .item-image {
        height: 250px;
    }
    
    .search-container::after {
        right: 15px;
        left: auto;
    }
    
    .rtl .search-container::after {
        right: auto;
        left: 15px;
    }
}

.instagram-container {
    width: 100%;
    position: relative;
    height: 0;
}

.instagram-icon {
    position: absolute;
    top: 40px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    z-index: 99;
    transition: transform 0.2s ease;
}

.instagram-icon svg {
    width: 30px;
    height: 30px;
}

.instagram-icon:hover {
    transform: scale(1.1);
}

.rtl .instagram-icon {
    left: auto;
    right: 0;
}

@media (max-width: 768px) {
    .instagram-icon {
        top: 15px;
    }
}