/*=============== FONT ================*/
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-VariableFont_opsz_wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/*=============== ANIMATION ================*/
@keyframes maquree {
    to {
        offset-distance: 100%
    }
}


/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    --gold: #EDBC40;
    --red: #8B0000;
    --ofwhite: #E8EAEB;
    --gray: #6B7280;
    --black: #232233;
    --red-gradiant: linear-gradient(180deg, #8B0000 0%, #250000 100%);
    --gold-gradiant: linear-gradient(180deg, #FFB600 0%, #C49213 100%);



    /*========== Font and typography ==========*/
    --body-font: "Inter", sans-serif;
    /* --heading-size: 62px;
    --h1-font-size: 48px;
    --h2-font-size: 40px;
    --h3-font-size: 32px;
    --button-size: 24px;
    --text-size: 18px;
    --note-size: 14px; */

    /*========== Font weight ==========*/
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

input,
button {
    outline: none;
    border: none;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

body {
    position: relative;
    font-family: "Inter", sans-serif;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
    width: 0.6rem;
    background-color: rgba(232, 234, 235, 0.364);
    border-radius: 0.2rem;
}

::-webkit-scrollbar-thumb {
    background-color: var(--red);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-gradiant);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1250px;
    margin: 0 auto;
}

.section {
    padding-block: 5rem 3rem;
    padding-inline: 3rem;
}


/*=============== HEADER & NAV ===============*/
.header {
    position: absolute;
    top: 59px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60px;
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-fixed);

    .nav {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: white;
        box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.1);
        padding: 10px 12.3px;
        border-radius: 5px;

        .lang-switch {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(139, 0, 0, 1);
            padding: 4px;
            border-radius: 999px;
            height: 34px;
            width: 78px;
            direction: ltr !important;
        }

        .lang-switch .slider {
            position: absolute;
            top: 4px;
            left: 4px;
            width: calc(50% - 4px);
            height: calc(100% - 8px);
            background: rgba(251, 235, 232, 1);
            border-radius: 999px;
            transition: left 0.3s ease;
        }

        .lang-switch .lang {
            flex: 1;
            text-align: center;
            font-size: 14px;
            font-weight: var(--font-medium);
            color: white;
            cursor: pointer;
            z-index: 1;
            user-select: none;
            transition: color 0.3s ease;
        }

        .lang-switch .lang.active {
            color: rgba(139, 0, 0, 1);
        }

        .lang-switch.ar .slider {
            left: calc(50%);
        }

        .nav__menu {
            display: flex;
            justify-content: center;
            align-items: center;

            .nav__list {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 26px;

                .nav__link {
                    position: relative;
                    font-size: 18px;
                    font-weight: 300;
                    color: var(--black);
                    transition: color 0.3s ease;

                    &::after {
                        content: '';
                        position: absolute;
                        bottom: -5px;
                        left: 0;
                        width: 100%;
                        height: 2px;
                        background-color: var(--gold);

                        /* البداية مخفي */
                        transform: scaleX(0);
                        transform-origin: left;
                        /* يبدأ من اليمين */
                        transition: transform 0.3s ease;
                    }

                    &:hover {
                        color: var(--gold);

                        &::after {
                            transform: scaleX(1);
                            /* يتمدد */
                            transform-origin: right;
                            /* يكمل لحد الشمال */
                        }
                    }

                    &.active-link {
                        color: var(--gold);
                        font-weight: var(--font-bold);

                        &::after {
                            transform: scaleX(1);
                            transform-origin: left;
                        }
                    }


                }

                .logo {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 205px;
                    height: 90px;
                    padding: 7px;
                    border-radius: 5px;
                    background-color: white;
                    box-shadow: 0px 1px 10px 0px #0000001A;
                    margin: 0 26px;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: contain;
                    }
                }
            }
        }

        .btn_nav {
            width: 143px;
            height: 40px;
            background-color: var(--ofwhite);
            border-radius: 5px;
            font-size: 16px;
            font-weight: var(--font-medium);
            color: var(--gray);
        }

        /* زرار المنيو */
        .nav__toggle {
            display: none;
            font-size: 24px;
            cursor: pointer;
            color: #000;
            z-index: 1001;
        }

        /* زرار القفل */
        .nav__close {
            display: none;
            font-size: 24px;
            cursor: pointer;
            color: #000;
        }

        .logo__mbile,
        .btn__mobile {
            display: none;
        }
    }
}


/*=============== FOOTER ===============*/
.footer {
    position: relative;
    padding: 100px 40px 0px 40px;
    background: var(--red-gradiant);

    .footer__container {
        border-radius: 8px;
        display: flex;
        justify-content: space-between;
        align-items: start;
        flex-direction: column;
        gap: 77px;
        padding: 119px 75px 18px 75px;
        background-color: white;
        box-shadow: 0px 4px 4px 0px #0000001C;

        .footer__content {
            position: relative;
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            justify-content: space-between;
            align-items: start;
            width: 100%;
            z-index: 5;
            padding-inline: 20px;

            .footer__content__group {
                display: flex;
                justify-content: center;
                align-items: start;
                flex-direction: column;
                gap: 24px;
                max-width: 334px;
                width: 100%;

                .footer_logo {
                    width: 221px;
                    height: 128px;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }

                p {
                    font-size: 16px;
                    font-weight: var(--font-regular);
                    color: var(--black);
                }

                .social {
                    display: flex;
                    justify-content: start;
                    align-items: center;
                    gap: 21px;
                    margin-top: 13px;

                    a {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        width: 45px;
                        height: 45px;
                        border-radius: 7px;
                        color: white;
                        font-size: 30px;


                        &:nth-child(1) {
                            background-color: #1877F2;
                        }

                        &:nth-child(2) {
                            background: radial-gradient(160.06% 65.62% at 28.12% 84.37%,
                                    #E57714 0%,
                                    #CD225C 35.67%,
                                    #AE3FED 100%);
                        }

                        &:nth-child(3) {
                            background-color: #25D366;
                        }
                    }
                }
            }

            .footer__list {
                display: flex;
                justify-content: center;
                align-items: start;
                flex-direction: column;
                gap: 12px;

                p {
                    font-size: 24px;
                    font-weight: var(--font-medium);
                    color: transparent;
                    background: var(--gold-gradiant);
                    background-clip: text;
                    -webkit-background-clip: text;
                }

                ul {
                    display: flex;
                    justify-content: center;
                    align-items: start;
                    flex-direction: column;
                    gap: 12px;

                    a {
                        font-size: 16px;
                        font-weight: var(--font-regular);
                        color: var(--gray);
                        transition: all 0.3s ease-in-out;

                        &:hover {
                            color: var(--gold);
                        }
                    }
                }

                .link_spical {
                    margin-top: 12px;
                    font-size: 14px;
                    font-weight: var(--font-regular);
                    color: var(--red);
                    text-decoration: underline;
                }
            }

            &::before,
            &::after {
                content: "";
                position: absolute;
                width: 2px;
                height: 125px;
                background-color: var(--gold);
                z-index: 0;
            }

            &::before {
                top: -30px;
                left: 0;
            }

            &::after {
                bottom: -50px;
                right: 0;
            }
        }

        .copy__right {
            display: flex;
            justify-content: center;
            align-items: center;
            padding-top: 19.5px;
            gap: 11px;
            width: 100%;
            border-top: 2px solid var(--gold);

            i {
                font-size: 16px;
                color: var(--gold);
            }

            p {
                font-size: 16px;
                font-weight: var(--font-regular);
                color: var(--black);
            }
        }
    }

    .team__developed {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-block: 35px 26px;
        z-index: 5;
        position: relative;

        a {
            width: 159px;
            height: 19px;
            filter: drop-shadow(0px 1.26px 30px #8B0000);

            img {
                width: 100%;
                height: 100%;
            }
        }
    }


    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url(../image/bg\ footer.webp);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.15;
        z-index: 0;
    }
}


/*=============== RESPONSIVE ===============*/
@media (max-width: 1200px) {
    .header {
        padding-inline: 10px;
    }

    /*===============FOOTER===============*/
    .footer {
        padding: 80px 24px 0 24px;

        .footer__container {
            gap: 60px;
            padding: 90px 40px 18px 40px;

            .footer__content {
                gap: 1.5rem;
                padding-inline: 0;

                .footer__content__group {
                    max-width: 300px;
                    gap: 20px;

                    .footer_logo {
                        width: 120px;
                        height: 94px;
                    }

                    p {
                        font-size: 15px;
                    }

                    .social {
                        gap: 16px;

                        a {
                            width: 42px;
                            height: 42px;
                            font-size: 26px;
                        }
                    }
                }

                .footer__list {
                    p {
                        font-size: 22px;
                    }

                    ul {
                        a {
                            font-size: 15px;
                        }
                    }
                }

                &::before,
                &::after {
                    height: 110px;
                }

                &::before {
                    top: -20px;
                }

                &::after {
                    bottom: -35px;
                }
            }

            .copy__right {
                padding-top: 16px;

                p {
                    font-size: 15px;
                }
            }
        }

        .team__developed {
            padding-block: 28px 22px;
        }
    }
}


@media (max-width: 991px) {

    /*===============HEADER & NAV===============*/
    .header {
        top: 18px;
        left: 0;
        transform: none;
        width: 100%;
        padding-inline: 16px;

        .nav {
            padding: 10px 12px;
            border-radius: 3px;
            height: 56px;

            .nav__toggle {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 40px;
                height: 40px;
                font-size: 26px;
                color: var(--black);
                cursor: pointer;
                z-index: 1002;
            }

            .logo__mbile {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                display: flex;
                justify-content: center;
                align-items: center;
                width: 100px;
                height: 60px;
                padding: 10px 8px;
                border-radius: 5px;
                background-color: white;
                box-shadow: 0px 1px 10px 0px #0000001A;
                z-index: 10;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }

            .lang-switch {
                width: 78px;
                height: 34px;
                justify-self: end;
            }

            .btn_nav {
                display: none;
            }

            .nav__menu {
                position: fixed;
                top: 0;
                left: -100%;
                width: 80%;
                height: 100%;
                background: white;
                box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
                display: flex;
                justify-content: flex-start;
                align-items: flex-start;
                flex-direction: column;
                gap: 3rem;
                padding: 80px 30px;
                transition: left 0.4s cubic-bezier(0.5, 0, 0, 1);
                z-index: 2000;

                .nav__close {
                    position: absolute;
                    top: 20px;
                    right: 20px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                    background: var(--red);
                    color: #fff;
                    font-size: 20px;
                    cursor: pointer;
                    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.3);
                }

                .nav__list {
                    width: 100%;
                    display: flex;
                    justify-content: flex-start;
                    align-items: flex-start;
                    flex-direction: column;
                    gap: 2rem;

                    .nav__item {
                        width: 100%;
                        border-bottom: 1px solid #f3f4f6;
                        padding-bottom: 1rem;

                        &:has(.logo) {
                            display: none;
                        }
                    }

                    .nav__link {
                        font-size: 1.1rem;
                        color: var(--black);
                        font-weight: 600;
                        text-transform: uppercase;
                        letter-spacing: 1px;
                    }
                }

                .btn__mobile {
                    margin-top: auto;
                    width: 100%;
                    height: 50px;
                    background: var(--red-gradiant);
                    color: white;
                    font-weight: 700;
                    border-radius: 8px;
                }
            }

            .nav__menu.show-menu {
                left: 0;
            }
        }
    }

    body.menu-open {
        overflow: hidden;
    }

    /*===============FOOTER===============*/
    .footer {
        padding: 70px 16px 0 16px;

        .footer__container {
            gap: 50px;
            padding: 70px 24px 18px 24px;

            .footer__content {
                justify-content: center;
                gap: 2rem 1.5rem;

                .footer__content__group {
                    max-width: 100%;
                    align-items: center;
                    text-align: center;

                    .footer_logo {
                        width: 115px;
                        height: 90px;
                    }

                    p {
                        max-width: 500px;
                    }
                }

                .footer__list {
                    align-items: center;
                    text-align: center;
                    min-width: calc(50% - 12px);

                    p {
                        font-size: 20px;
                    }

                    ul {
                        align-items: center;
                        text-align: center;

                        a {
                            font-size: 15px;
                        }
                    }
                }
            }

            .copy__right {
                flex-wrap: wrap;
                text-align: center;
                gap: 8px;

                i,
                p {
                    font-size: 15px;
                }
            }
        }

        .team__developed {
            padding-block: 24px 20px;
        }
    }

}

@media (max-width: 768px) {

    /*===============FOOTER===============*/
    .footer {
        padding: 55px 12px 0 12px;

        .footer__container {
            gap: 42px;
            padding: 42px 16px 16px 16px;
            border-radius: 4px;

            .footer__content {
                flex-direction: column;
                align-items: start;
                gap: 30px;

                .footer__content__group {
                    gap: 18px;

                    .footer_logo {
                        width: 105px;
                        height: 82px;
                    }

                    p {
                        font-size: 14px;
                        line-height: 1.8;
                    }

                    .social {
                        gap: 14px;
                        margin-top: 6px;

                        a {
                            width: 40px;
                            height: 40px;
                            font-size: 22px;
                            border-radius: 6px;
                        }
                    }
                }

                .footer__list {
                    width: 100%;
                    gap: 10px;

                    p {
                        font-size: 18px;
                    }

                    ul {
                        gap: 10px;

                        a {
                            font-size: 14px;
                        }
                    }

                    .link_spical {
                        margin-top: 8px;
                        font-size: 13px;
                    }
                }
            }

            .copy__right {
                padding-top: 14px;
                gap: 6px;

                i {
                    font-size: 14px;
                }

                p {
                    font-size: 14px;
                    text-align: center;
                    line-height: 1.7;
                }
            }
        }

        .team__developed {
            padding-block: 20px 18px;

            a {
                width: 145px;
                height: auto;
            }
        }
    }
}

@media (max-width: 576px) {

    /*===============HEADER & NAV===============*/
    .header {

        .nav {
            padding: 9px 8px;
            height: 48px;

            .nav__toggle {
                width: 38px;
                height: 38px;
                font-size: 24px;
                margin-right: 20px;
            }


            .lang-switch {
                width: 72px;
                height: 32px;

                .lang {
                    font-size: 13px;
                }
            }

            .nav__menu {
                top: 95px;
                left: -100%;
                width: 267px;
                transition: left 0.4s ease;

                &.show-menu {
                    left: 15px;
                }

                .nav__list {

                    .nav__link {
                        font-size: 14px;
                    }
                }

            }
        }
    }

    /*===============FOOTER===============*/
    .footer {
        padding: 40px 8px 0 8px;

        .footer__container {
            gap: 34px;
            padding: 30px 12px 14px 12px;

            .footer__content {
                gap: 51px;

                .footer__content__group {
                    gap: 24px;

                    .footer_logo {
                        width: 134px;
                        height: 104px;
                    }

                    p {
                        font-size: 12px;
                        width: 80%;
                        line-height: 1.8;
                    }

                    .social {
                        gap: 21px;

                        a {
                            width: 44px;
                            height: 44px;
                            font-size: 25px;
                        }
                    }
                }

                .footer__list {
                    gap: 12px;

                    p {
                        font-size: 22px;
                    }

                    ul {
                        gap: 12px;

                        a {
                            font-size: 16px;
                        }
                    }

                    .link_spical {
                        font-size: 14px;
                    }

                    &::before {
                        top: 0;
                    }

                }

                &::after {
                    bottom: 0;
                }
            }

            .copy__right {
                padding-top: 10px;
                gap: 6px;

                i {
                    font-size: 15px;
                }

                p {
                    font-size: 10px;
                }
            }
        }

        .team__developed {
            padding-block: 23px 16px;

            a {
                width: 122px;
            }
        }
    }
}