:root {
    --bodyBg: #F8F8F8;
    --dark: rgba(13, 13, 13, 1);
    --white: rgba(255, 255, 255, 1);
    --gray: rgba(13, 13, 13, 0.7);

    --mainColor: rgba(35, 61, 146, 1);
    --mainColor20: rgba(35, 61, 146, .2);
    --mainColor08: rgba(35, 61, 146, .08);

    --secondColor: rgba(10, 196, 182, 1);
    --secondColor20: rgba(10, 196, 182, .2);
    --secondColor08: rgba(10, 196, 182, .08);

    --tl: 500ms ease-in-out;
    --ts: 300ms ease-in-out;
    --font: "ExpoArabic", sans-serif;

}

@font-face {
    font-family: 'ExpoArabic';
    src: url('../webfonts/ExpoArabicBold.woff2');
    font-style: swap;
    font-weight: 700;
}

@font-face {
    font-family: 'ExpoArabic';
    src: url('../webfonts/ExpoArabicSemiBold.woff2');
    font-style: swap;
    font-weight: 600;
}

@font-face {
    font-family: 'ExpoArabic';
    src: url('../webfonts/ExpoArabicBook.woff2');
    font-style: swap;
    font-weight: 400;
}

body {
    font-family: var(--font);
    background-color: var(--bodyBg);
}

header {
    /* background-color: var(--dark); */
}

a {
    font-size: 1rem;
    color: var(--dark);
    transition: var(--ts);
}

menu {
    margin-block: 0;
    padding-inline: 0;
    list-style: none;
}

.btn-run {
    background-color: var(--mainColor);
    color: var(--white);
    border-radius: 999px;
    position: relative;
    border: 1px solid var(--mainColor);
    z-index: 1;
    overflow: hidden;
    transition: var(--tl);

    :is(a, i, span) {
        color: var(--white);
        padding: 16px 30px;
        position: relative;
        font-size: 1rem;
        font-weight: 400;
    }

    &::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        /* transform: translateY(-50%); */
        height: 100%;
        width: 0;
        background-color: var(--secondColor);
        border-radius: 999px;
        z-index: -1;
        transition: var(--tl);
    }

    &:hover::before {
        width: 100%;
        left: 0;
        right: auto;
    }

    &.isBorder {
        background-color: transparent;
        color: var(--mainColor);

        :is(a, i, span) {
            color: var(--mainColor);
            transition: var(--tl);

        }

        &::before {
            background-color: var(--mainColor);
        }

        &:hover {
            border-color: var(--secondColor);

            :is(a, i, span) {
                color: var(--white);
            }
        }
    }

    &.btn-icon {
        background-attachment: red;

        i {
            font-size: 1.7rem;

            padding: 12px 20px;
        }
    }

}
section{
    clip-path: inset(0 round 200px 0 200px 0);
    
    &:is(.dark){
        background-color: var(--dark);

        color: #777;
        h1,h2,h3,h4,h5,h6{
            color: var(--white);
        }
        

    }
    @media(max-width:767px){
        clip-path: inset(0 round 100px 0 100px 0);
    }
}
section:not(.hero){
    padding-block: 80px;
    
}
.mainHeading{
    text-align: center;
    color: var(--mainColor);
    h2{
        display: inline-block;
        position: relative;
        &::after ,&::before{
            content: '';
            position: absolute;
            width: 30px;
            height: 80%;

        }
        &::before{
            
            border-left: 3px solid var(--mainColor);
            border-top: 3px solid var(--mainColor);
            inset-inline-end: -10px;
            top: -10px;
        }
        &::after{
            border-right: 3px solid var(--mainColor);
            border-bottom: 3px solid var(--mainColor);
            inset-inline-start: -10px;
            bottom: -10px;
        }
    }
    &.start{
        text-align: start;
    }
}
/* header */
header {

    position: absolute;
    z-index: 999;
    width: 100%;
    /* padding-inline: 20px; */
    background-color: rgba(255, 255, 255, .2);
    border-bottom: 1px solid var(--white);
    /* border-radius: 999px; */
    backdrop-filter: blur(3px);
    /* margin-top: 12px; */
    &.scroll {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        animation: fixed 1s ease-in-out forwards;
    }
    nav {
        
        ul {
            background: transparent;
            a {
                color: var(--gray);
                position: relative;

                &::before {
                    content: '';
                    position: absolute;
                    bottom: -5px;
                    left: 50%;
                    transform: translateX(-50%);
                    width: 0;
                    height: 1px;
                    background-color: var(--mainColor);
                    transition: var(--ts);
                }

                &:hover, &.active {
                    color: var(--mainColor);

                    &::before {
                        width: 100%;
                    }
                }
            }
            @media(max-width:991px) {
                &#mobileList {
                    background-color: var(--dark);
                    font-size: 1.2rem;
                    translate: -280px 0;
                    opacity: 0;
                    scale: .8;
                    transition: translate 500ms ease-out, opacity 500ms ease-in-out, display allow-discrete 500ms ease-out, overlay allow-discrete 500ms ease-out, scale 500ms ease-in-out;
                    height: 100vh;
                    li {
                        position: relative;
    
                        a {
                            padding-inline-start: 30px;
                            color: var(--bodyBg);
                            &::before{
                                left: auto;
                                transform: translateY(0);
                                right: 30px;
                            }
                        }
    
                        &::before {
                            content: '';
                            position: absolute;
                            bottom: -20px;
                            left: 50%;
                            transform: translateX(-50%);
                            opacity: .2;
                            width: 90%;
                            height: 1px;
                            background-color: var(--gray);
                        }
                    }
    
                    &::backdrop {
                        background-color: var(--dark);
                        opacity: 0;
                        transition: var(--tl);
    
                    }
    
                    &:popover-open {
                        /* display: flex; */
                        translate: 0 0;
                        opacity: 1;
                        scale: 1;
    
                        &::backdrop {
                            opacity: .3;
                        }
                    }
                    &:not(:popover-open){
                        display: none;
                    }
    
                }
            }
        }
    }
}
@starting-layer {
    header #mobileList:popover-open {
        translate: -240px 0;
        opacity: 0;
        scale: .8;

        &:backdrop {
            opacity: 0;
        }
    }

    
}
/* hero */
.hero {
    /* background-color: var(--white); */
    background: url('../img/hero.png') no-repeat;
    background-size: 75%;
    background-position: left center;
    height: calc(100dvh - 100px);
    
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        background: url('../img/hero-shape.png') no-repeat;
        background-size: contain;
        width: 500px;
        height: 300px;
        transform: scaleX(-1);
    }

    .heroContent {
        width: 500px;
        max-width: 100%;

        h1 {
            color: var(--dark);
        }

        p {
            color: var(--gray);
        }
    }

    @media(max-width:991px){
        background-size: cover;
        background: none;
        height: 800px;
        max-height: 800px;
    }
    @media(min-width:1800px){
        max-height: 800px;
    }
}
/* about */
.about{
  
        
    figure{
        aspect-ratio: 1.19 / 1.1;
    }
    ul{
        li{
            color: var(--bodyBg);
            &::before{
                content: '\f336';
                font-family: 'Font Awesome 6 Pro';
                color: var(--secondColor);
            }
        }
    }
    .subColor{
        color: var(--secondColor);
        font-weight: 700;
        font-size: 1.2rem;
    }
}
/* feature */
.feature{
    figure{
        /* aspect-ratio: 2/3; */
        border: 1px solid var(--secondColor);
        border-radius: 999px;
        height: 400px;
        /* width: 500px; */
        aspect-ratio: 2/3;
        margin-inline: auto;
        img{
            border-radius: 999px;
            object-fit: cover;
        }
    }
    h3{
        color: var(--dark);
    }
    p{
        color: var(--gray);
    }
}
/* تنسيق الأسئلة الشائعة */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--mainColor08);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    position: relative;
}

.faq-question::after {
    content: '\f107';
    font-family: 'Font Awesome 6 pro';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: .5rem;
    opacity: 1;
}

/* تأثيرات إضافية */
.faq-item:hover {
    /* transform: translateY(-2px); */
    transition: transform 0.3s ease;
}



.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-item {
    padding: 12px;
    background-color: var(--mainColor20);
    border-radius:12px;
    border: 1px solid var(--mainColor08);
}

.faq-item h3 {
    font-size: 18px;
    /* margin-bottom: 16px; */
    color: var(--white);
}

.faq-item p {
    color: #777;
    line-height: 1.6;
}
/* download */
/*  */
.download {
    /* background: linear-gradient(to left, rgba(10, 196, 182, 1) 1%, rgba(74, 60, 218, 1) 100%); */
    menu{
        .btn-run{
            i{
                padding: 0;
            }
        }
    }
    figure{
        /* aspect-ratio: 2/3; */
        border: 1px solid var(--secondColor);
        border-radius: 999px;
        height: 400px;
        /* width: 500px; */
        aspect-ratio: 2/3;
        margin-inline: auto;
        img{
            border-radius: 999px;
            object-fit: cover;
        }
    }
}
/*  */
/* contact */
.contact {


  .mainHeading{
    h2{
        &::after ,&::before{
            display: none;
        }
    }
  }

    .contactContent {

        padding-inline-start: 24px;

        ul {
            li {
                a {
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    font-size: 1.1rem;
                    /* font-weight: 600; */
                    color: var(--bodyBg);
                }
            }
        }

    }

    form {
        .formGroup {
            margin-bottom: 2rem;
            position: relative;

            input, textarea {
                border: 1px solid #777;
                width: 100%;
                padding-inline: 10px;
                border-radius: 6px;
                height: 60px;
                transition: var(--ts);
                background-color: var(--mainColor08);
                &:focus {
                    border-color: var(--mainColor);
                    outline: none;
                }
            }

            label {
                position: absolute;
                top: 16px;
                transition: var(--ts);
                inset-inline-start: 10px;
                color: var(--text-white);
                opacity: .7;
                font-weight: 400;
                pointer-events: none;
                
            }

            input:focus+label, textarea:focus+label, input:not(:placeholder-shown)+label {
                /* opacity: 1; */
                transform: translateY(-30px) scale(.9);
                background-color: var(--dark);
                opacity: 1;
                display: inline-block;
                padding-inline: 3px;
                border-left: 1px solid var(--mainColor);
                border-right: 1px solid var(--mainColor);
            }

            textarea {
                height: 150px;
                padding-block: 10px;
            }
        }
    }
}

/* footer */
footer {
    /* background-color: var(--cardBg); */
    padding-block-start: 80px;

    .d-grid {
        justify-items: center;
        @media(max-width:991px){
            justify-items: start;
        }
    }

    .footerMeta {
        width: 100%;

        p {
            font-size: .96rem;
            color: var(--gray);
        }

        .socialLinks {
            i {
                padding: 0;
                font-size: .9rem;
            }
        }
    }

    .footerLinks {
        margin-inline: 30px;

        h3 {
            font-size: 1.5rem;
        }

        ul {
            margin-top: 24px;
            padding-inline-start: 8px;

            a {
                transition: var(--ts);

                &:hover {
                    color: var(--mainColor);
                    letter-spacing: .1px;
                }
            }

            i {
                color: var(--mainColor);
            }
        }
    }

    .copyRight {
        border-top-color: var(--mainColor08);
        text-align: center;
        padding-block: 24px;
        margin-top: 20px;
        color: var(--gray);
        background-color: var(--secondColor08);
    }
}

/*  */
.preLoader {
    position: fixed;
    width: 100vw;
    height: 100%;
    background-color: var(--bodyBg);
    inset: 0;
    z-index: 99999;
    overflow: hidden;



    figure {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        mask-image: url('../img/loader.svg');
        width: min(200px, 100%);
        aspect-ratio: 1;
        z-index:
            1;
        mask-size: contain;
        mask-position: center;
        mask-repeat: no-repeat;
        background-color: var(--gray);

        &::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: min(400px, 100%);
            aspect-ratio: 1;
            background-color: var(--mainColor);

            translate: 0 200px;
            animation: slideUp 1.5s forwards infinite;
        }
    }

    
}
/*  */
.imgDownUp {
    translate: 0 5%;
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
    opacity: 0;
    transition: 700ms ease-in-out;
}

.imgUpDown {
    translate: 0 -5%;
    -webkit-clip-path: inset(0 0 100% 0);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: 700ms ease-in-out;
}

.fadeIn {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* lenis */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}


@keyframes fixed {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}
@keyframes slideUp {
    0% {
        translate: 0 200px;
    }

    100% {
        translate: 0 0;
    }
}