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

.animate-fade-in-up {
    animation: fade-in-up 0.5s ease-out forwards;
}

/* Language Switch */
#lang-switch {
    background-color: #F26623; /* Orange when active */
}

#lang-switch.ar #lang-switch-thumb {
    transform: translateX(0);
}

#lang-switch.en #lang-switch-thumb {
    transform: translateX(28px); /* Adjust based on w-16 (64px) and w-6 (24px) */
}

#lang-switch.ar #lang-ar {
    color: #0E0E0E; /* Black text for active AR */
}

#lang-switch.en #lang-en {
    color: #0E0E0E; /* Black text for active EN */
}

/* Item Card Style */
.item-card {
    border-radius: 1rem;
    overflow: hidden;
    background-color: #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.item-card img {
    transition: transform 0.3s ease;
}
.item-card:hover img {
    transform: scale(1.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: #1f1f1f;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}