/* Navbar */
#lang-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    padding: 8px 18px;
    border-radius: 16px;
    border: none;
    background: rgba(168, 58, 58, 0.7);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 1rem;
}

.navbar {
    direction: ltr;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 15px 30px;
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, #0B0B0B, #222222);
}

.navbar .logo a {
    font-weight: bold;
    font-size: 24px;
    color: white;
    text-decoration: none;
}

.logo img {
    width: 100px;
    /* أو أي حجم يناسبك */
    height: auto;
    /* للحفاظ على تناسب الأبعاد */
}


.navbar ul {
    display: flex;
    list-style: none;
    gap: 15px;
    color: white;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.navbar ul li a:hover {
    background-color: red;
}

/* Burger Menu */
.burger {
    display: none;
    /* Hidden by default */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: 30px;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
}

/* Hide burger lines when menu is active */
.navbar.active .burger div {
    opacity: 0;
    /* Hide the lines */
}

/* Close Menu */
.close-menu {
    display: none;
    /* Hidden by default */
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 30px;
    z-index: 1002;
    color: #fff;
}

/* Show close button when menu is active */
.navbar.active .close-menu {
    display: block;
    /* Show the close button */
}

/* Menu - Default Behavior for Larger Screens */
#menu {
    display: flex;
    list-style: none;
    gap: 15px;
    color: white;
}


/* Main Section */
.main-section {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 100vh;
    /* Full screen height */
    background: linear-gradient(to top, #0b0b0b, #222222);
    box-sizing: border-box;
    overflow: hidden;
}

/* Text Content */
.text-content {
    max-width: 50%;
    color: #fff;
    padding: 50px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.text-content h1 {
    font-size: 68px;
    color: red;
    font-weight: 900;
    margin: 10px 0;
    line-height: 60px;
}

.text-content h2 {
    font-size: 24px;
    color: red;
    font-weight: 500;
}

.text-content p {
    font-size: 18px;
    margin: 20px 0;
    font-weight: 400;
}

/* Buttons */
.buttons {
    display: flex;
    margin-top: 20px;
}

.buy-now,
.how-to-buy,
.add-cart {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
}

.buy-now {
    margin-right: 20px;
    background-color: red;
    color: #ffffff;
}

.how-to-buy {
    background-color: #f4f4f4;
    color: #333;
}

.buy-now:hover,
.how-to-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Image Content */
.image-content {
    width: 80%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-content img {
    max-width: 100%;
    /* أقصى عرض للصورة */
    max-height: 50%;
    /* أقصى ارتفاع للصورة */
    object-fit: contain;
    /* التأكد من أن الصورة تتناسب مع الأبعاد بدون قص */
    transition: opacity 1s ease-in-out, transform 0.5s ease-in-out;
    /* تأثير السلاسة */
    animation: fadeIn 1s forwards;
    /* ظهور تدريجي */
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
        /* يبدأ بحجم أصغر */
    }

    to {
        opacity: 1;
        transform: scale(1);
        /* يظهر بالحجم الطبيعي */
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
        /* الحجم الطبيعي */
    }

    to {
        opacity: 0;
        transform: scale(0.9);
        /* يختفي بحجم أصغر */
    }
}



/* Strip Animation */
.wrapper {
    background-color: black;
    color: white;
    width: 100%;
    height: 25px;
    margin-inline: auto;
    position: relative;
    overflow: hidden;
    text-align: center;
}

@keyframes scrollright {
    to {
        right: -200px;
    }
}

.item {
    width: 200px;
    height: 25px;
    border-radius: 6px;
    position: absolute;
    right: max(calc(200px * 9), 100%);
    animation-name: scrollright;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.item1 {
    animation-delay: calc(30s / 9 * (9 - 1) * -1);
}

.item2 {
    animation-delay: calc(30s / 9 * (9 - 2) * -1);
}

.item3 {
    animation-delay: calc(30s / 9 * (9 - 3) * -1);
}

.item4 {
    animation-delay: calc(30s / 9 * (9 - 4) * -1);
}

.item5 {
    animation-delay: calc(30s / 9 * (9 - 5) * -1);
}

.item6 {
    animation-delay: calc(30s / 9 * (9 - 6) * -1);
}

.item7 {
    animation-delay: calc(30s / 9 * (9 - 7) * -1);
}

.item8 {
    animation-delay: calc(30s / 9 * (9 - 8) * -1);
}

.item9 {
    animation-delay: calc(30s / 9 * (9 - 9) * -1);
}


/* Slide-in animation */
@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 1500px) {

    .buttons {
        flex-direction: row;
        /* Stack buttons vertically */
        gap: 10px;
        animation-name: buttonsFade;
        animation-duration: 3s;
    }

    .buy-now,
    .how-to-buy {
        padding: 10px;
        /* Adjust padding for smaller screens */
        font-size: 16px;
        font-weight: 600;
        width: 200px;
    }

    @keyframes buttonsFade {
        0% {
            opacity: 0%;
        }

        100% {
            opacity: 100%;
        }
    }

    .moving-text {
        animation: moveFullWidth 6s forwards infinite;
    }

    @keyframes moveFullWidth {
        0% {
            transform: translateX(-100%);
        }

        50% {
            transform: translateX(200%);
        }

        100% {
            transform: translateX(500%);
        }
    }
}

@media (max-width: 1024px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px;
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
        z-index: 1000;
        background: linear-gradient(to bottom, #0B0B0B, #222222);
    }

    .navbar ul {
        position: fixed;
        top: 0;
        left: -300px;
        /* Hide off-screen initially */
        width: 250px;
        height: 100%;
        background: #222222;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }

    .navbar ul.active {
        left: 0;
        /* Slide in from the left */
    }

    .burger {
        display: flex;
    }

    .close-menu {
        display: none;
    }

    .close-menu.active {
        display: block;
    }

    .main-section {
        flex-direction: column;
        height: auto;
        padding-top: 60px;
    }

    .text-content,
    .image-content {
        max-width: 100%;
    }

    .text-content h1,
    .text-content h2,
    .text-content p {
        text-align: center;
    }

    .buttons {
        flex-direction: row;
        /* Stack buttons vertically */
        gap: 10px;
        animation-name: buttonsFade;
        animation-duration: 3s;
        justify-self: center;
    }

    .buy-now,
    .how-to-buy {
        padding: 10px;
        /* Adjust padding for smaller screens */
        font-size: 16px;
        font-weight: 600;
        width: 200px;
    }

    @keyframes buttonsFade {
        0% {
            opacity: 0%;
        }

        100% {
            opacity: 100%;
        }
    }

    .moving-text {
        animation: moveFullWidth 6s forwards infinite;
    }

    @keyframes moveFullWidth {
        0% {
            transform: translateX(-100%);
        }

        50% {
            transform: translateX(120%);
        }

        100% {
            transform: translateX(400%);
        }
    }
}

@media (max-width: 768px) {

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px;
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
        z-index: 1000;
        background: linear-gradient(to bottom, #0B0B0B, #222222);
    }

    .main-section {
        flex-direction: column;
        height: auto;
        padding-top: 60px;
    }

    .text-content,
    .image-content {
        max-width: 100%;
    }

    .text-content h1,
    .text-content h2,
    .text-content p {
        text-align: center;
    }

    .buttons {
        flex-direction: row;
        /* Stack buttons vertically */
        gap: 10px;
        animation-name: buttonsFade;
        animation-duration: 3s;
    }

    .buy-now,
    .how-to-buy {
        padding: 10px;
        /* Adjust padding for smaller screens */
        font-size: 16px;
        font-weight: 600;
        width: 200px;
    }

    @keyframes buttonsFade {
        0% {
            opacity: 0%;
        }

        100% {
            opacity: 100%;
        }
    }


    .moving-text {
        animation: moveFullWidth 10s ease-in-out infinite;
    }

    @keyframes moveFullWidth {
        0% {
            transform: translateX(-100%);
        }

        50% {
            transform: translateX(75%);
        }

        100% {
            transform: translateX(255%);
        }
    }
}



@media (max-width: 480px) {




    .text-content h1 {
        font-size: 56px;
    }

    .text-content h2 {
        font-size: 18px;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        /* Stack buttons vertically */
        animation: buttonsFade 3s;
        /* Use shorthand for animation */
        margin: 0;

    }


    .buy-now,
    .how-to-buy {
        padding: 10px;
        /* Adjust padding for smaller screens */
        font-size: 16px;
        font-weight: 600;
        max-width: 200px;
        margin: 0;

    }

    /* Image Content */
    .image-content {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Center the image horizontally */
        transform: translateX(100%);
        opacity: 0;
        animation: slideIn 1s forwards 0.5s;
    }

    .image-content img {
        width: 100%;
        max-height: 100%;
        /* Maintain aspect ratio */
    }

    @keyframes buttonsFade {
        0% {
            opacity: 0%;
        }

        100% {
            opacity: 100%;
        }
    }

    .moving-text {
        animation: moveFullWidth 6s ease infinite;
    }



    @keyframes moveFullWidth {
        0% {
            transform: translateX(-100%);
        }

        50% {
            transform: translateX(20%);
        }

        100% {
            transform: translateX(150%);
        }
    }
}

/* Bilingual Navbar RTL/LTR order
html[dir="rtl"] #menu {
    display: flex;
    flex-direction: row-reverse;
}

@media (max-width: 900px) {
    html[dir="rtl"] #menu {
        flex-direction: column !important;
    }
} */