/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: #420142;
    color: #FFFFFF;
    direction: rtl;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: 70px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: pulse 2s infinite;
}

.navbar-title {
    font-size: 1.5rem;
    color: #ee930b;
    font-weight: 700;
    text-shadow: 0 0 5px #ee930b;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon {
    color: #ee930b;
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #FFFFFF;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #ee930b;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a i {
    transition: transform 0.3s;
}

.nav-links a:hover i {
    transform: scale(1.2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: #ee930b;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-toggle {
    background: #ee930b;
    color: #FFFFFF;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.lang-toggle:hover {
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #ee930b;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.cart-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.cart-icon {
    font-size: 1.8rem;
    color: #ee930b;
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #FFD700;
    color: #420142;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Menu Section */
.menu-section {
    background: linear-gradient(135deg, #420142, #420142);
    padding: 50px 20px;
    text-align: center;
}

.menu-title {
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 40px;
    text-shadow: 0 0 5px #FFD700;
    animation: fadeIn 1s ease-in;
}

.menu-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    background: #ee930b;
    color: #FFFFFF;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.tab-btn:hover {
    transform: scale(1.05);
    background: #FFD700;
}

.tab-btn.active {
    background: #FFD700;
    color: #420142;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.menu-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(0, 0, 0, 0.3));
    border: 4px solid #FFD700;
    padding: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0. sounding);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.6);
}

.menu-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #FFD700;
}

.card-content {
    padding: 10px 0;
}

.menu-card h4 {
    font-size: 1.3rem;
    color: #FFD700;
    margin-bottom: 8px;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-card .price {
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: 700;
}

.menu-card .description {
    font-size: 0.9rem;
    color: #DDDDDD;
    margin-bottom: 15px;
    max-height: 45px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.menu-card .tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: #420142;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-btn {
    background: #ee930b;
    color: #FFFFFF;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    width: 100%;
}

.order-btn:hover {
    transform: scale(1.05);
    background: #FFD700;
}

/* Order Modal */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.order-modal.active {
    display: flex;
}

.order-modal.active .modal-content {
    animation: fadeInScale 0.5s ease-in-out;
}

.modal-content {
    background: linear-gradient(145deg, #1a001a, #420142);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 15px;
    position: relative;
    border: 3px solid #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
}

.close-modal {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    color: #FFD700;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.close-modal:hover {
    transform: scale(1.3);
    color: #FFFFFF;
}

.modal-header {
    text-align: center;
    margin-bottom: 10px;
}

.modal-header img {
    width: 50%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #FFD700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    transition: transform 0.3s;
}

.modal-header img:hover {
    transform: scale(1.05);
}

.modal-header h2 {
    font-size: 1.4rem;
    color: #FFD700;
    text-shadow: 0 0 5px #FFD700;
    font-weight: 700;
}

.modal-body p {
    font-size: 0.9rem;
    color: #FFFFFF;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
}

.size-selection, .combo-selection, .comment-section {
    margin-bottom: 15px;
}

.size-selection h4, .combo-selection h4, .comment-section h4 {
    font-size: 1rem;
    color: #FFD700;
    margin-bottom: 8px;
    text-shadow: 0 0 5px #FFD700;
}

.size-selection label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #FFFFFF;
    margin-bottom: 8px;
    background: rgba(255, 215, 0, 0.15);
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.3s, transform 0.2s;
}

.size-selection label:hover {
    background: rgba(255, 215, 0, 0.25);
    transform: translateY(-3px);
}

.size-selection input {
    margin-left: 10px;
    transform: scale(1.2);
}

.combo-selection {
    margin: 15px 0;
}

.combo-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 0.9rem;
    margin-bottom: 10px;
    background: rgba(255, 215, 0, 0.15);
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.3s, transform 0.2s;
}

.combo-checkbox:hover {
    background: rgba(255, 215, 0, 0.25);
    transform: translateY(-3px);
}

.combo-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.combo-checkbox i {
    color: #ee930b;
    font-size: 1.2rem;
}

.comment-section textarea {
    width: 100%;
    height: 60px;
    background: #0c000c;
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 8px;
    color: #FFFFFF;
    font-size: 0.9rem;
    resize: none;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.comment-section textarea:focus {
    border-color: #FFFFFF;
    box-shadow: inset 0 4px 8px rgba(255, 215, 0, 0.4);
    outline: none;
}

.total-price {
    background: rgba(255, 215, 0, 0.15);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.total-price h4 {
    font-size: 1rem;
    color: #FFD700;
    text-shadow: 0 0 5px #FFD700;
}

.total-price span {
    color: #FFFFFF;
    font-weight: 700;
}

.modal-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.modal-footer button {
    background: linear-gradient(90deg, #ee930b, #FFD700);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 5px 15px rgba(238, 147, 11, 0.5);
}

.modal-footer button:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #FFD700, #ee930b);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.cart-modal.active {
    display: flex;
}

.cart-modal .modal-content {
    max-width: 500px;
}

.close-cart-modal {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    color: #FFD700;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.close-cart-modal:hover {
    transform: scale(1.3);
    color: #FFFFFF;
}

.cart-modal h2 {
    font-size: 2rem;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 8px #FFD700;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, #1a001a, #2a002a);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: transform 0.2s;
}

.cart-item:hover {
    transform: translateY(-3px);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.cart-item-details {
    flex: 1;
    margin-right: 15px;
}

.cart-item-details h4 {
    font-size: 1.1rem;
    color: #FFD700;
}

.cart-item-details p {
    font-size: 0.9rem;
    color: #FFFFFF;
}

.cart-total {
    background: rgba(255, 215, 0, 0.15);
    padding: 15px;
    border-radius: 12px;
}

.cart-total h4 {
    font-size: 1.3rem;
    color: #FFD700;
}

.cart-total span {
    color: #FFFFFF;
}

.remove-item {
    background: #ff5555;
    color: #FFFFFF;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.remove-item:hover {
    background: #ff7777;
    transform: scale(1.1);
}

.confirm-cart-btn {
    background: #FFD700;
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
    display: none;
}

.confirm-cart-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #45a049, #4CAF50);
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.success-modal .modal-content {
    background: linear-gradient(145deg, #1a001a, #420142);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
    border: 3px solid #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
}

.success-message i {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.close-success-modal {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    color: #FFD700;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.close-success-modal:hover {
    transform: scale(1.3);
    color: #FFFFFF;
}

/* Footer Styles */
.site-footer {
    background: #0c000c;
    color: #FFFFFF;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 15px;
}

.footer-column {
    text-align: center;
    transition: transform 0.3s ease;
}

.footer-column:hover {
    transform: translateY(-5px);
}

.footer-column h3 {
    color: #FFD700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #FFD700;
}

.footer-logo-container {
    margin-bottom: 15px;
}

.footer-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px #FFD700);
    transition: transform 0.5s ease;
}

.footer-logo:hover {
    transform: rotateY(360deg);
}

.footer-logo-text {
    display: block;
    font-size: 1.3rem;
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    margin: 10px 0;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-column .social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.footer-column .social-icon {
    color: #FFD700;
    font-size: 1.3rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-column .social-icon:hover {
    transform: scale(1.2);
    color: #FFFFFF;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin: 8px 0;
}

.footer-column ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    text-align: center;
}

.footer-column ul li a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 10px;
        justify-content: space-between;
        height: 60px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(0, 0, 0, 0.5);
        width: 100%;
        flex-direction: column;
        padding: 15px;
        text-align: center;
        animation: slideDown 0.3s;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 8px 0;
    }
    .hamburger {
        display: flex;
    }
    .logo {
        width: 50px;
        height: 50px;
    }
    .navbar-title {
        font-size: 1.2rem;
    }
    .navbar-right {
        gap: 10px;
    }
    .social-icons {
        gap: 6px;
    }
    .social-icon {
        font-size: 1.2rem;
    }
    .cart-icon {
        font-size: 1.5rem;
    }
    .cart-count {
        font-size: 0.8rem;
        padding: 2px 6px;
        min-width: 18px;
        height: 18px;
    }
    .menu-section {
        padding: 30px 15px;
    }
    .menu-title {
        font-size: 2rem;
    }
    .menu-items {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    .menu-card img {
        height: 250px;
    }
    .modal-header img {
        height: 150px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .menu-card h4 {
        font-size: 1.1rem;
    }
    .menu-card .price {
        font-size: 0.9rem;
    }
    .order-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    .modal-header h2 {
        font-size: 1.5rem;
    }
    .order-modal .modal-content {
        max-width: 90%;
        padding: 10px;
    }
    .order-modal .modal-header img {
        height: 100px;
        margin-bottom: 8px;
    }
    .order-modal .modal-header h2 {
        font-size: 1.2rem;
    }
    .order-modal .modal-body p {
        font-size: 0.85rem;
        padding: 6px;
        margin-bottom: 10px;
    }
    .order-modal .size-selection h4, .order-modal .combo-selection h4, .order-modal .comment-section h4 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    .order-modal .size-selection label, .order-modal .combo-checkbox {
        font-size: 0.85rem;
        padding: 6px 8px;
        margin-bottom: 6px;
    }
    .order-modal .comment-section textarea {
        height: 50px;
        font-size: 0.85rem;
        padding: 6px;
    }
    .order-modal .total-price {
        padding: 8px;
        margin-bottom: 10px;
    }
    .order-modal .total-price h4 {
        font-size: 0.9rem;
    }
    .order-modal .modal-footer {
        padding-top: 10px;
    }
    .order-modal .modal-footer button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .success-modal .modal-content {
        max-width: 90%;
        padding: 15px;
    }
    .success-message p {
        font-size: 1rem;
    }
}