/*=============== FONT ================*/
@font-face {
    font-family: "Sego UI";
    src: url("../fonts/segoeuithis.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Sego UI";
    src: url("../fonts/SefidUI-500-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Sego UI";
    src: url("../fonts/alfont_com_AlFont_com_Segoe.UI_.Semibold_DownloadSoftware.iR_.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Sego UI";
    src: url("../fonts/segoeuithibd.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

/*=============== ANIMATION ================*/
@keyframes floatAnimation1 {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatAnimation2 {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatAnimation3 {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatAnimation4 {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes chatFloat1 {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes chatFloat2 {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }

    /* عكس الأولى تماماً */
    100% {
        transform: translateY(0);
    }
}

@keyframes glideInLeft {
    0% {
        transform: translateX(-150%) rotate(-20deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotate(-5deg);
        opacity: 1;
    }
}

@keyframes glideInRight {
    0% {
        transform: translateX(150%) rotate(20deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotate(3deg);
        opacity: 1;
    }
}

/*=============== VARIABLES CSS ===============*/
:root {

    /*========== Colors ==========*/
    --orange: #E16209;
    --blue: #0071BD;
    --dark-blue: #012946;
    --gray: #4B5563;



    /*========== Font and typography ==========*/
    --body-font: "Sego UI", sans-serif;


    /*========== 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;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

body {
    position: relative;
    font-family: var(--body-font);
}

.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: #9fa1a597;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

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

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

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


/*=============== HEADER & NAV ===============*/
.header {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 1250px;
    width: 100%;
    height: 67.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-fixed);
    padding-inline: 2rem;

    .nav {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #FAFCFF;
        box-shadow: 0px 1px 5px 0px #D7D7D74D;
        padding-inline: 40px;
        border-radius: 9px;
        border: 0.75px solid #EAF1FB;

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

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

                .nav__link {
                    position: relative;
                    font-size: 16px;
                    font-weight: var(--font-medium);
                    color: #6B7280;
                    transition: color 0.3s ease;

                    &::after {
                        content: '';
                        position: absolute;
                        bottom: -5px;
                        left: 0;
                        width: 100%;
                        height: 2px;
                        background-color: #D9D9D9;

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

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

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

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

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


                }

                .nav__dropdown {
                    position: relative;

                    &:hover .dropdown {
                        opacity: 1;
                        visibility: visible;
                        transform: translateY(0);
                    }
                }

                .dropdown {
                    position: absolute;
                    top: calc(100% + 10px);
                    left: 0;

                    min-width: 200px;
                    background: #fff;
                    border-radius: 10px;
                    box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.1);

                    padding: 10px 0;

                    opacity: 0;
                    visibility: hidden;
                    transform: translateY(10px);
                    transition: all 0.25s ease;

                    z-index: 999;

                    li {
                        list-style: none;
                    }

                    a {
                        display: block;
                        padding: 10px 15px;

                        font-size: 14px;
                        color: #6B7280;
                        text-decoration: none;

                        transition: 0.2s;

                        &:hover {
                            background: #f9f9f9;
                            color: var(--orange);
                        }
                    }
                }

            }
        }

        .btns {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;

            .btn {
                gap: 8px;
                padding: 12px 21px;
                background-color: white;
                color: #4B5563;
                border-radius: 999px;
                border: 0.75px solid #D1D5DB66;
                box-shadow: 0px 0px 11.25px 0px #6B72800A;
                font-size: 14px;
                font-weight: var(--font-semi-bold);
                transition: all 0.3s ease-in-out;

                img {
                    width: 16px;
                    height: 16px;
                    transition: filter 0.3s ease-in-out;
                }


                &:hover {
                    background-color: var(--orange);
                    color: white;

                    img {
                        filter: brightness(0) invert(1);
                    }
                }
            }
        }

        /* زرار المنيو */
        .nav__toggle {
            display: none;
            justify-content: center;
            align-items: center;
            gap: 6px;
            color: #6B7280;
            font-weight: var(--font-medium);
            font-size: 18px;
            cursor: pointer;
            z-index: 900;
        }

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

        .btns__mobile {
            display: none;
        }
    }
}


/*=============== FOOTER ===============*/
.footer {
    background: var(--dark-blue);
    padding-top: 43px;
    padding-bottom: 0;
    padding-inline: 0;

    .footer__container {

        .footer__content {
            display: flex;
            gap: 27.5px;
            justify-content: start;
            align-items: center;
            flex-direction: column;
            width: 100%;
            padding-inline: 3rem;

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

                ul {
                    display: flex;
                    gap: 58px;
                    justify-content: center;
                    align-items: end;
                    width: 100%;

                    .footer__link {
                        font-size: 24px;
                        font-weight: var(--font-medium);
                        color: #2F628B;
                        transition: color 0.3s ease-in-out;

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

                    .logo {
                        width: 214px;
                        height: 342px;

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

                .social {
                    display: flex;
                    gap: 74px;
                    margin-bottom: 27.5px;

                    a {
                        font-size: 35px;
                        color: white;
                        transition: color 0.3s ease-in-out;

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

        }

        .copy__right {
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            background-color: #05345B;
            padding: 22px 96px;
            border-top: 1px solid #355A7A;

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

                span {
                    color: #E16209;
                    font-weight: var(--font-bold);
                }
            }

            .foursw {
                width: 150px;
                height: 18px;
                filter: drop-shadow(0 1.26px 30px #FFFFFF52);

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

            .pages {
                display: flex;
                gap: 40px;

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

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

            &::before {
                content: '';
                position: absolute;
                top: 0px;
                left: 30%;
                transform: translateX(-50%);
                width: 1px;
                height: 100%;
                background-color: #355A7A;
            }

            &::after {
                content: '';
                position: absolute;
                top: 0px;
                left: 70%;
                transform: translateX(-50%);
                width: 1px;
                height: 100%;
                background-color: #355A7A;
            }
        }
    }
}


/*=============== RESPONSIVE ===============*/
@media (max-width: 1200px) {

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

        .nav {
            padding-inline: 25px;

            .nav__list {
                gap: 20px;
            }

            .btns {
                gap: 10px;

                .btn {
                    padding: 8px 18px;
                    font-size: 13px;
                }
            }
        }
    }

    /*===============FOOTER===============*/
    .footer {

        .footer__container {

            .footer__content {

                .footer__content__group {

                    ul {
                        gap: 40px;

                        .footer__link {
                            font-size: 20px;
                        }

                        .logo {
                            width: 180px;
                            height: auto;
                        }
                    }

                    .social {
                        gap: 50px;

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

            .copy__right {
                padding: 20px 40px;

                .pages {
                    gap: 25px;
                }
            }
        }
    }
}


@media (max-width: 991px) {

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

        .nav {

            .nav__toggle {
                display: block;
            }


            .nav__menu {
                position: fixed;
                top: 85px;
                left: 10%;
                min-width: 195px;
                background: #FAFCFF;
                box-shadow: 0px 4px 34px 0px #D7D7D766;
                border: 1px solid #F3F4F6E5;
                box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
                flex-direction: column;
                justify-content: flex-start;
                align-items: flex-start;
                padding: 36px 17px 41px 17px;
                transition: 0.3s ease;
                border-radius: 16px;
                z-index: 999;
                opacity: 0;
                visibility: hidden;



                .nav__list {
                    flex-direction: column;
                    gap: 17px;
                    width: 100%;

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

            .nav__menu.show-menu {
                opacity: 1;
                visibility: visible;
            }




            .nav__close {
                position: absolute;
                top: 14px;
                right: 14px;
                width: 30px;
                height: 30px;
                display: flex;
                justify-content: center;
                align-items: center;
                border: 0.5px solid #FFA769A6;
                border-radius: 50%;
                background-color: var(--orange);
                box-shadow: 1.5px 2px 0px #FFA769A6;
                color: white;
                font-size: 16px;
            }
        }
    }

    /*===============FOOTER===============*/
    .footer {

        .footer__container {

            .footer__content {
                padding-inline: 2rem;

                .footer__content__group {

                    ul {
                        flex-wrap: wrap;
                        gap: 25px;
                    }

                    .social {
                        gap: 35px;

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

            .copy__right {
                padding: 20px;
                gap: 20px;
                text-align: center;

                .pages {
                    justify-content: center;
                    flex-wrap: wrap;
                    gap: 20px;
                }
            }
        }
    }

}

@media (max-width: 768px) {

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

        .nav {
            padding-inline: 20px;

            .nav__menu {

                .nav__list {

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


            .btns__mobile {
                display: flex;
                width: 100%;
                margin-top: 10px;

                .btn {
                    width: 100%;
                    justify-content: center;
                }
            }

            .whatsapp__btn {
                display: none;
            }
        }
    }

    /*===============FOOTER===============*/
    .footer {

        .footer__container {

            .footer__content {

                .footer__content__group {
                    gap: 40px;

                    ul {
                        gap: 20px;

                        .footer__link {
                            font-size: 18px;
                        }

                        .logo {
                            order: -1;
                            width: 160px;
                        }
                    }

                    .social {
                        gap: 25px;

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

            .copy__right {

                p {
                    font-size: 14px;
                }

                .pages {

                    a {
                        font-size: 14px;
                    }
                }

                .foursw {
                    width: 120px;
                    height: 15px;
                }

                &::before {
                    left: 33%;
                }

                &::after {
                    left: 67%;
                }
            }
        }
    }

}

@media (max-width: 576px) {

    /*===============HEADER & NAV===============*/
    .header {
        top: 15px;

        .nav {
            padding-inline: 15px;

            .nav__menu {
                top: 75px;
            }
        }
    }

    /*===============FOOTER===============*/
    .footer {
        padding-top: 30px;

        .footer__container {

            .footer__content {
                padding-inline: 1rem;

                .footer__content__group {
                    position: relative;
                    height: 400px;
                    justify-content: end;

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

                    ul {
                        width: 80%;

                        .footer__link {
                            font-size: 16px;
                            text-align: center;
                        }

                        .logo {
                            position: absolute;
                            width: 145px;
                            left: 50%;
                            top: 0px;
                            transform: translateX(-50%);
                        }



                    }

                    .social {
                        gap: 20px;
                        margin-bottom: 20px;

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

            .copy__right {
                padding: 15px;
                flex-direction: column;

                p {
                    font-size: 13px;
                    line-height: 1.7;
                }

                .pages {
                    gap: 12px;

                    a {
                        font-size: 13px;
                    }
                }

                .foursw {
                    width: 100px;
                }

                &::before,
                &::after {
                    display: none;
                }
            }
        }
    }
}