/*=============== FONT ================*/
@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo-VariableFont_slnt\,wght.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
}


/*=============== ANIMATION ================*/
@keyframes cardBringToFront {
    0% {
        transform: translate3d(6px, 12px, -20px) scale(0.98);
        z-index: 1;
        filter: brightness(0.82);
    }

    42% {
        transform: translate3d(-20px, 26px, 30px) scale(1.02);
        z-index: 5;
        filter: brightness(0.96);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
        z-index: 3;
        filter: brightness(1);
    }
}

@keyframes cardSendToBack {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        z-index: 3;
        filter: brightness(1);
    }

    42% {
        transform: translate3d(4px, -8px, -15px) scale(0.99);
        z-index: 2;
        filter: brightness(0.9);
    }

    100% {
        transform: translate3d(6px, 12px, -20px) scale(0.98);
        z-index: 1;
        filter: brightness(0.82);
    }
}

@keyframes playRipple {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes floatBubble {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-8px) rotate(-3deg);
    }
}

@keyframes dotsFlow {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 28;
    }
}

@keyframes coreRingPulse {
    0% {
        transform: scale(0.96);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.15;
    }

    100% {
        transform: scale(0.96);
        opacity: 0.8;
    }
}

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

    100% {
        transform: translateY(-4px);
    }
}

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

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

@keyframes ringRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Arrow Keyframes */
@keyframes arrowPulseRing {
    0% {
        transform: scale(0.92);
        opacity: 0.9;
    }

    60% {
        transform: scale(1.38);
        opacity: 0;
    }

    100% {
        transform: scale(1.38);
        opacity: 0;
    }
}

@keyframes arrowFloatLeft {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-4px);
    }
}

@keyframes arrowFloatRight {

    0%,
    100% {
        transform: rotate(180deg) translateX(0);
    }

    50% {
        transform: rotate(180deg) translateX(-4px);
    }
}

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

    /*========== Colors ==========*/
    --blue: #1352EE;
    --heroic-blue: #3B28CC;
    --cobalt-blue: #053DC8;
    --bg-secondry: #F2F2F7;
    --text: #222222;
    --white: #FFFFFF;


    /*========== Font and typography ==========*/
    --body-font: "cairo", 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: 25px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 1300px;
    width: 100%;
    z-index: var(--z-fixed);
    padding-inline: 1.5rem;

    .nav {
        position: relative;
        width: 100%;
        height: 84px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #FFFFFF;
        padding-inline: 38.5px;
        border-radius: 8px;
        box-shadow: 0px 4px 10px 0px #0000001F;

        .nav__logo {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 101px;
            height: auto;

            .logo-img {
                width: 100%;
                height: 100%;
            }
        }

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

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

                .nav__link {
                    position: relative;
                    font-size: 14.5px;
                    font-weight: var(--font-regular);
                    color: #888888;
                    transition: color 0.25s ease, font-weight 0.25s ease;
                    white-space: nowrap;

                    &:hover {
                        color: var(--heroic-blue);
                    }

                    &.active-link {
                        color: var(--heroic-blue);
                        font-weight: var(--font-bold);
                    }
                }
            }
        }

        .nav__actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .btn__trial,
        .nav__btn {
            background-color: var(--blue);
            color: #FFFFFF;
            font-size: 18px;
            font-weight: var(--font-semi-bold);
            padding: 10px 18px;
            height: 49px;
            border-radius: 7px;
            transition: all 0.25s ease-in-out;
            white-space: nowrap;

            &:hover {
                background-color: var(--cobalt-blue);
                color: #FFFFFF;
            }

        }

        /* زرار المنيو للموبايل */
        .nav__toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            gap: 4px;
            width: 32px;
            height: 26px;
            cursor: pointer;
            z-index: 900;
            background: transparent;
            border: none;
            padding: 0;
            transform: scaleX(-1);
            transition: transform 0.2s ease, opacity 0.2s ease;

            &:hover {
                opacity: 0.85;
            }

            i {
                display: block;
                font-size: 0 !important;
                line-height: 0;
                width: 27px;
                height: 3px;
                border-radius: 3px;
                background: linear-gradient(90deg, #1352EE 0%, #6E00FF 100%);
                margin: 0;
                padding: 0;
                transition: width 0.25s ease;
            }

            &::before,
            &::after {
                content: "";
                display: block;
                height: 3px;
                border-radius: 3px;
                background: #1352EE;
                transition: width 0.25s ease;
            }

            &::before {
                width: 14px;
            }

            &::after {
                width: 20px;
            }
        }

        /* زرار القفل للموبايل */
        .nav__close {
            display: none;
            font-size: 20px;
            color: #4B5563;
            cursor: pointer;
        }

        .btns__mobile {
            display: none;
        }
    }
}


/*=============== FOOTER ===============*/
.footer {
    background-color: #FFFFFF;
    padding-block: 49px 27px;
    border-top: 1px solid #EEF2F6;

    .footer__container {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .footer__top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 40px;
    }

    .footer__brand {
        flex: 0 0 auto;

        .footer__logo-link {
            display: inline-block;
            transition: transform 0.25s ease;

            &:hover {
                transform: scale(1.02);
            }
        }

        .footer__logo {
            width: 100%;
            max-width: 400px;
            height: auto;
            display: block;
        }
    }

    .footer__links {
        display: flex;
        align-items: flex-start;
        gap: 73px;
    }

    .footer__col {
        display: flex;
        flex-direction: column;
        gap: 16px;

        .footer__title {
            font-size: 18px;
            font-weight: var(--font-bold);
            color: var(--text);
            letter-spacing: -0.2px;
        }

        .footer__list {
            display: flex;
            flex-direction: column;
            gap: 8px;

            .footer__link {
                color: #64748B;
                font-size: 16px;
                transition: color 0.2s ease;

                &:hover {
                    color: #004AFF;
                }
            }
        }
    }

    /* Footer Bottom Row */
    .footer__bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        color: var(--text);
        gap: 20px;
        flex-wrap: wrap;


        .footer__socials {
            display: flex;
            align-items: center;
            gap: 12px;

            .footer__social-btn {
                width: 46.5px;
                height: 46.5px;
                border-radius: 50%;
                background-color: #1352EE;
                color: #FFFFFF;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 16px;
                text-decoration: none;
                transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;

                &:hover {
                    background-color: #0036CC;
                    transform: translateY(-3px);
                    box-shadow: 0 4px 12px rgba(0, 74, 255, 0.35);
                }

                &:active {
                    transform: translateY(0);
                }
            }
        }

        .footer__credits {
            display: flex;
            align-items: center;
            gap: 8px;

            .footer__partner-img {
                height: 12.5px;
                width: auto;
                display: inline-block;
                object-fit: contain;
                vertical-align: middle;
            }
        }
    }
}


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

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

        .nav {
            padding-inline: 20px;

            .nav__menu .nav__list {
                gap: 22px;
            }

            .btn__trial {
                padding: 8px 16px;
                font-size: 13.5px;
            }
        }
    }

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

        .footer__container {
            padding-inline: 24px;
        }
    }
}


@media (max-width: 991px) {

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

        .nav {
            padding-inline: 24px;
            height: 70px;

            .nav__toggle {
                display: flex;
            }

            .nav__actions {
                display: flex;
                align-items: center;
                flex-direction: row-reverse;
                gap: 22px;

                .btn__trial {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    height: 44px;
                    padding: 0 20px;
                    font-size: 15.5px;
                    border-radius: 7px;
                    background-color: var(--blue);
                    color: #FFFFFF;
                }
            }

            .nav__menu {
                position: fixed;
                top: 85px;
                left: 5%;
                right: 5%;
                min-width: unset;
                background: #FFFFFF;
                box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.15);
                border: 1px solid #E5E7EB;
                flex-direction: column;
                justify-content: flex-start;
                align-items: flex-start;
                padding: 24px 20px;
                transition: 0.3s ease;
                border-radius: 14px;
                z-index: 999;
                opacity: 0;
                visibility: hidden;
                transform: translateY(-10px);

                &.show-menu {
                    opacity: 1;
                    visibility: visible;
                    transform: translateY(0);
                }

                .nav__close {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    margin-bottom: 15px;
                    width: 32px;
                    height: 32px;
                    background-color: #F3F4F6;
                    border-radius: 50%;
                    color: #4B5563;
                    font-size: 16px;
                    cursor: pointer;
                }

                .nav__list {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 16px;
                    width: 100%;

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

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

                    .btn__trial {
                        width: 100%;
                        justify-content: center;
                        padding: 11px;
                        font-size: 15px;
                    }
                }
            }
        }
    }

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

        .footer__container {
            gap: 40px;
            padding-inline: 24px;
        }

        .footer__top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 25px;
        }

        .footer__brand {
            flex: 0 0 auto;

            .footer__logo {
                max-width: 220px;
            }
        }

        .footer__links {
            display: flex;
            gap: 32px;
        }

        .footer__col {
            .footer__title {
                font-size: 16px;
            }

            .footer__list {
                gap: 10px;

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

        .footer__bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13.5px;
            border-top: none;
            padding-top: 0;

            .footer__socials {
                gap: 10px;

                .footer__social-btn {
                    width: 38px;
                    height: 38px;
                    font-size: 14px;
                }
            }
        }
    }
}


@media (max-width: 768px) {

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

        .nav {
            padding-inline: 18px;
            height: 64px;

            .nav__toggle {
                display: flex;
            }

            .nav__actions {
                display: flex;
                align-items: center;
                flex-direction: row-reverse;
                gap: 16px;

                .btn__trial {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    height: 40px;
                    padding: 0 16px;
                    font-size: 14.5px;
                    border-radius: 6px;
                }
            }

            .nav__menu {

                .nav__list {

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

    /*=============== FOOTER ===============*/
    .footer {
        padding-block: 40px 25px;

        .footer__container {
            gap: 35px;
            padding-inline: 18px;
        }

        .footer__top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 20px;
        }

        .footer__brand {
            flex: 0 0 auto;

            .footer__logo {
                max-width: 190px;
            }
        }

        .footer__links {
            display: flex;
            gap: 22px;
        }

        .footer__col {
            .footer__title {
                font-size: 15px;
            }

            .footer__list {
                gap: 8px;

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

        .footer__bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12.5px;
            border-top: none;
            padding-top: 0;

            .footer__socials {
                gap: 8px;

                .footer__social-btn {
                    width: 35px;
                    height: 35px;
                    font-size: 13px;
                }
            }
        }
    }
}


@media (max-width: 576px) {

    /*=============== HEADER & NAV ===============*/
    .header {
        top: 15px;
        padding-inline: 1rem;

        .nav {
            height: 58px;
            padding-inline: 16px;

            .nav__logo .logo-img {
                width: 101px;
                height: 49px;
            }

            .nav__actions {
                .btn__trial {
                    display: none;
                }
            }

            .nav__toggle {
                display: flex;
            }

            .nav__menu {
                top: 75px;
            }

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

    /*=============== FOOTER ===============*/
    .footer {
        padding-block: 35px 25px;

        .footer__container {
            display: flex;
            flex-direction: column;
            align-items: start;
            gap: 26px;
            padding-inline: 20px;
        }

        .footer__top {
            display: contents;
        }

        .footer__bottom {
            display: contents;
        }

        .footer__brand {
            order: 1;
            text-align: center;

            .footer__logo {
                max-width: 230px;
            }
        }

        .footer__socials {
            order: 2;
            display: flex;
            justify-content: start;
            width: 100%;
            gap: 12px;

            .footer__social-btn {
                width: 44px;
                height: 44px;
                font-size: 16px;
            }
        }

        .footer__links {
            order: 3;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: right;
            width: 100%;
            gap: 24px;
            padding-right: 14px;
        }

        .footer__col {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: right;
            gap: 10px;

            &:nth-child(1) {
                order: 1;
                /* عن المنتج */
            }

            &:nth-child(3) {
                order: 2;
                /* الشروط والاحكام */
            }

            &:nth-child(2) {
                order: 3;
                /* الدعم والتواصل */
            }

            .footer__title {
                font-size: 17px;
                font-weight: var(--font-bold);
                color: #373131;
            }

            .footer__list {
                align-items: flex-start;
                gap: 8px;

                .footer__link {
                    font-size: 14px;
                    color: #71717A;
                }
            }
        }

        .footer__copyright {
            order: 4;
            font-size: 14px;
            color: #373131;
            text-align: center;
            margin-top: 6px;
            margin-inline: auto;
        }

        .footer__credits {
            order: 5;
            font-size: 14px;
            color: #373131;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 0 auto;
        }
    }

    .section {
        padding-inline: 1rem;
    }

}