* {
    padding: 0;
    margin: 0;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}




body {


    direction: rtl;
    height: 100%;
    margin: 0;
    


}


header {

    position: relative;
    margin-bottom: 50px;
    overflow: hidden;
    font-size: 20px;

}

.sub_header{

    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#header_img{

    position: relative;
    width: 100%;
    height: 100vh;
    margin-bottom: 20px;

}





.scrollTop {


    margin: 30px;
    border-radius: 8px;
    position: fixed;
    bottom: 12px;
    display: flex;
    left: -100%;
    width: 50px;
    height: 50px;
    transition: 0.3s;
    z-index: 100;
    box-shadow: 0px 0px 5px 0px #0000005f;

}


.scrollTop.show {

    left: 0px;
}






.about p{

    text-align: justify;
}


@media(max-width: 1490px) {



    .about p{

        font-size: 14px;

    }

 


}

@media(max-width: 1200px) {


    .about h1{

        font-size: 28px !important;

    }

    .about p{

        font-size: 14px;

    }
    .m {
        height: 950px !important;
    }

    
    .navbar{

        flex-direction: unset !important;
        justify-content: space-between !important;
        width: 90%;
        max-width: unset !important;

    }

    .navbar{

        flex-direction: unset !important;
        justify-content: space-between !important;
        width: 90%;
        max-width: unset !important;

    }
 

}

@media(min-width: 1200px){

    .navbar{

        max-width: 1500px;
        flex-direction: unset !important;
        justify-content: space-between !important;
        padding-top: 80px;
    }

}

@media (max-width: 1100px){

    .vision_message {
        width: 100%;
        max-width: 610px;
        flex-wrap: wrap;
        margin-bottom: 50px;
        gap: 10px !important;
    }

    
}





@media(min-width: 1200px) {


    #mainbox {

        display: none !important;
    }

    .closebtn{

        display: none !important;
    }

    #menu{

        width: 0% !important;
        opacity: 1;
    }


    .nav-menu {

        display: flex;
    }

    #logo h1 {
        color: white !important;
    }

    #logo h6 {
        color: white !important;
    }





}





.closebtn {

    color: #56722e;
    width: 32px;
    font-size: 54px;
    border: none;
    cursor: pointer;
    display: none;
    margin-bottom: 12px;
}




#mainbox {

    color: white;
    width: 30px;
    font-size: 33px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}






.bar {

    border: 0.3px solid black;
    margin-top: 150px;


}

.pp {

    display: flex;
    justify-content: center;
    margin-bottom: 10px;


}

.adress {

    color: white;
}

p {

    color: white;

    margin-bottom: 7px;
}


.about-afaq {

    height: 650px;
    width: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}



.font {

    text-align: justify;
    text-align-last: center;
    font-size: 18px;
    color: #444;
    width: 70%;
    margin: auto;
    padding: 40px 0px;

}

.font div{

    width: 90%;
    max-width: 990px;
}


.m {
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 0px 130px 0px;



}



.about {

    width: 100%;
    height: 100%;
    margin-top: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: deg 60s alternate infinite;
    background-image: linear-gradient(rgba(0, 0, 0, 63%), rgba(0, 0, 0, 63%)), url("../img/bariiq.jpg");
    background-attachment: fixed;
    background-size: cover;
    clip-path: polygon(0% 15%, 100% 0%, 100% 50%, 100% 85%, 0% 100%, 0% 50%);
    background-position: center center;
    background-repeat: no-repeat;


}

@keyframes deg {


    0% {


        background-position: bottom center;





    }

    100% {

        background-position: center center;

    }




}


@keyframes fadeInUp {

    0% {
        opacity: 0;
        -webkit-transform: translate3d(0,100%,0);
        transform: translate3d(0,100%,0);
    }
    
    100% {
        opacity: 1;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
}





.vision_message {



    color: white;
    display: flex;
    gap: 4%;
    padding: 0px 5%
}

.vision_message h1 {

    border-bottom: 2px solid white;
    margin-bottom: 10px;

}

.about h1{

    font-size: 30px;

}

#vision {

    text-align: right;
    width: 100%;
}

#message {

    text-align: right;
    width: 100%;
}

#gola {

    text-align: right;
    width: 100%;
}





.title_about{

    display: flex;
}




.dev {


    width: 100%;
    display: flex;
    justify-content: center;



}


.sub_dev {


    display: flex;
    justify-content: center;
    width: 70%;
    max-width: 950px;


}

.line_dev {

    display: flex;
    justify-content: center;
}

.line_dev div {


    width: 90%;
    max-width: 1250px;
    height: 2px;
    background-color: #494b49;
}

#developer {


    width: 100%;
    gap: 10%;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    padding: 80px 0;


}

.dev_par{

    width: calc(100%/5);
    visibility: visible;
    position: relative;
    height: 100px;
    margin: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;

}
#developer .dev_par:first-child{

    width: calc(100%/4);

}



.box{
    
    border: 5px double #494b49;
    height: 80%;
    min-height: 280px;
    display: flex;
    justify-content: center;


}

.sub-box{

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}


.sub-box img{

    height: 64px;
    width: 64px;
}

.sub-box h3{
    color: #262626;
    margin-top: 3px;                                                                                                            
}                                                                                                            

.sub-box p{

    color: #4b4949;
    padding: 0px 18px;
    margin-top: 5px;
    margin-bottom: 0;
    text-align: justify;
    text-align-last: center;
    font-size: 13px;
}

.leaders_bar {

    width: 100%;
    margin: 100px 0;
    background: #6bae8f url(../img/afaqbar.png) no-repeat;
    background-size: contain;
    background-position: 0 100%;
    padding: 150px 0 150px;
    text-align: center;
    color: white;
    
}

.leader{

    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 100px;
    
}

.sub_leader{

    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    /* padding: 0 25px; */
    align-items: flex-start;
}

.leader .sub_leader:first-child .leader_photo{
    flex-direction: column;
    display: flex;
    gap: 50px;
    align-items: center;
    width: 100%;
    
}


.profile{

    display: flex;
    flex-direction: column;
    color: #4b4949;
    height: 50%;
    width: 50%;
    max-width: 300px;

}
.speech{

    display: flex;
    flex-direction: column;
    color: #4b4949;
    height: 50%;
    width: 100%;
    max-width: 1300px;

}

.leader h1{
        padding-right: 10px;
        color: #4b4949;
        text-align: right;
        width: 100%;
        margin: auto;
        margin-bottom: 16px;
        position: relative;
        display: flex;
        padding-right: 10px;
    
}

.leader h1:before {
    content: "";
    width: 3px;
    height: 35px;
    background-color: #8d8e8e;
    position: absolute;
    top: 13px;
    right: 0px;
}

.leader_photo p{

    color: #4b4949;
    text-align: justify;
    /* text-align-last: center; */
}

.leader_photo h2{
    color: #4b4949;
    margin-bottom: 10px;
}

.leader h4{

    color: #6688ad;

}


.sub_leader:nth-child(2) .leader_photo div{
    display: flex;
    flex-direction: column;
    color: #4b4949;
    width: 40%;
    height: 50%;
    max-width: 300px;
}

.leader .sub_leader:nth-child(2) .leader_photo{

    display: flex;
    gap: 50px;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.leader_photo img{

    width: 100%;
    height: 100%;
    margin-bottom: 10px;
    max-width: 320px;
    min-height: 300px;
    object-fit: cover;
}

.tahweelpipe {

    width: 100%;
    height: 100%;
    filter: grayscale(1);
    cursor: pointer;
    transition: 0.5s all;
    object-fit: contain;
}



.sabic {


    width: 100%;
    height: 100%;
    filter: grayscale(1);
    cursor: pointer;
    transition: 0.5s all;
    object-fit: contain;



}

.gree {

    width: 100%;
    height: 100%;
    filter: grayscale(1);
    cursor: pointer;
    transition: 0.5s all;
    object-fit: contain;


}

.alfanar{

    width: 100%;
    height: 100%;
    filter: grayscale(1);
    cursor: pointer;
    transition: 0.5s all;
    object-fit: contain;

}

.tahweelpipe:hover{

    filter: grayscale(0);

}

.sabic:hover{

    filter: grayscale(0);

}


.gree:hover{

    filter: grayscale(0);

}

.alfanar:hover{

    filter: grayscale(0);

}




#developer .dev_sub {
    display: flex;
    align-items: center;

}

.dev_sub{

    width: 100%;
    height: 100%;
}

.child_sub_dev {

    width: 100%;
    display: flex;
    text-align: center;
    justify-items: center;
    flex-direction: column;
    align-items: center;
}

.child_sub_dev h1 {
    width: 80%;
    color: #4b4949;
    font-size: 34px;

}

.projects {

    padding: 50px 0PX;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

}


.project1 {

    display: flex;
    justify-content: center;
    gap: 4%;
}

.choose {

    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.choose h1 {

    margin-right: -20px;
    color: #4b4949;
}

.incloud h2{
    color: #4b4949;
    font-size: 18px;
        font-weight: 400;
    
}


.choose a {

    cursor: pointer;
    color: #838383;
    font-size: 17px;

}

#under_create {

    opacity: 0;
    left: 0;
    right: 0;
    position: absolute;
    display: flex;
    justify-content: center;
    margin-bottom: -200px;


}

#past {

    opacity: 0;
    left: 0;
    right: 0;
    position: absolute;
    display: flex;
    justify-content: center;
    margin-bottom: -200px;

}




.choose div {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;

}





.select1 div {


    position: absolute;
    opacity: 0;
    margin-left: 20px;
    margin-top: 30px;
}

.select2 div {

    position: absolute;
    opacity: 0;
    margin-top: 30px;
    margin-left: 20px;


}

.select3 div {

    position: absolute;
    opacity: 0;
    margin-top: 30px;
    margin-left: 20px;


}


.select1 div.move1 {


    transition: 1s;
    opacity: 1;
    position: absolute;
    margin-left: 0px;
    margin-top: 30px;
}

.select2 div.move2 {

    transition: 1s;
    opacity: 1;
    position: absolute;
    margin-top: 30px;
    margin-left: 0px;


}

.select3 div.move3 {

    transition: 1s;
    opacity: 1;
    position: absolute;
    margin-top: 30px;
    margin-left: 0px;


}





#subproject {


    width: 25%;
    height: 500px !important;
    transition: 0.3s;
    min-width: 250px;
    max-width: 350px;
    border-radius: 0.5em;
    display: flex;
    align-items: end;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    justify-content: center;



}


.sss {
    width: 100%;
    height: 1px;
    background-color: white;

}

.pic2{
    display: none !important;
}
.pic3 {
    display: none !important;
}

.pic1:after {

    content: "";
    z-index: -1;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image:linear-gradient(rgba(0, 0, 0, 0.493), rgb(69, 72, 70)), url(../apartment/img/moshrefa.png);
    position: absolute;
    left: 0;
    top: 0;

}

.pic2:after {

    content: "";
    z-index: -1;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: linear-gradient(rgba(0, 0, 0, 0.493), rgb(69, 72, 69)), url(../img/hemmaimg.jpg);
    position: absolute;
    left: 0;
    top: 0;

}


.pic3:after {

    content: "";
    z-index: -1;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: linear-gradient(rgba(0, 0, 0, 0.493), rgb(69, 72, 71)), url(../img/projects_img/moshreva_img/background.html);
    position: absolute;
    left: 0;
    top: 0;

}


#subproject:hover:after {

    transform: scale(1.1);
    filter: blur(1.5px);
    transition: 0.5s;


}

.boxcard {

    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.boxcard h2 {
        text-align: center;
    }







@media(max-width: 870px) {



    

    .leaders_bar {

        background-size: 1000px;
        
    }

    .incloud h2 {

    font-size: large; 

    }



    

    .line_p{
        height: 70px !important;
    }

   

    .line_a{

        width: 350px !important;
        min-width: 350px;

        
    }


   

    

    .wid_text{

        min-width: 350px !important;
    }

    

}










@media (max-width:350px){




    .about p{

        font-size: 12px;

    }

  

 

    .line_p {
        height: 45px !important;
    }

    
}

@media (max-width:300px){

    #logo h1 {
        font-size: 25px;
    }

    #logo h6 {
        font-size: 3px;
    }

}


@media (max-width:550px){

    
    #logo h1 {
        font-size: 31px;
    }

    #logo h6 {
        font-size: 7px;
    }

    
    #logo{
        margin-bottom: 0;
    }
}




@media(prefers-reduced-motion: no-preference) {

    .textanmi {
        animation: none;
    }



}

@media(max-width:1200px) {


    #subproject {

        height: 450px !important;

    }

    .project1 h1 {

        font-size: 20px;
    }

    .boxcard h2 {
        font-size: 23px;
    }

    .boxcard p {

        font-size: 14px;
    }

    .boxcard a {
        font-size: 14px;
    }

    .dev_par {
        width: calc(100%/6);
        
    }

    #developer .dev_par:last-child img{

        height: 40% !important;
    }




}


@media(max-width: 900px) {

 
    #subproject {

        height: 385px !important;

    }


    .boxcard h2 {
        font-size: 19px;
    }


    .boxcard p {

        font-size: 12px;
    }






}


@media(max-width: 850px) {



    #subproject {

        height: 330px !important;
        min-width: 225px;

    }


    .boxcard h2 {
        font-size: 18px;
    }



    .boxcard p {

        font-size: 11px;
    }

    .dev_par {
        width: calc(100%/5);
    }





}



@media(max-width: 780px) {



    #subproject {

        height: 500px !important;
        min-width: 55% !important;

    }

    .project1 {
        gap: 20px;
        align-items: center;
        flex-direction: column;
    }


    .boxcard h2 {
        font-size: 1.5em;
    }

    .line_dev div {
        width: 90%;

    }



    .boxcard p {

        font-size: 1em;
    }

    .boxcard a {
        font-size: 1em;
    }

    .child_sub_dev h1 {
        font-size: 30px;
    }

    .container h1 {
        font-size: 30px;
    }



}







@media(max-width: 620px) {



    #subproject {

        height: 450px !important;

    }

    .projects_home {
       
        padding: 100px 0px !important;
      
    }

    .legal .rights {
        font-size: 12px;
        gap: 3px;
    }

    .rights div {
        font-size: 13px;
    }

    .font {
        text-align: justify;
        text-align-last: center;
        font-size: 18px;
        color: #444;
        width: 100%;
        margin: auto;
        padding: 40px 0px;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
    }

    .font h2 {
        font-size: 26px;
        color: #008abe;
        text-align: right;
        width: 90%;
        margin: auto;
        margin-bottom: 16px;
        position: relative;
        color: #4b4949;
        margin-bottom: 20px;
        display: flex;
        padding: 0 10px;
    }
    
    .font h2:before {
        content: "";
        width: 3px;
        height: 30px;
        background-color: #8d8e8e;
        position: absolute;
        top: 10px;
        right: 0px;
    }

    
    .about-afaq {
        height: 500px;
    }

    .about-afaq p {

        font-size: 15px;
    }

    #img_content{

        margin-right: 10%;
    }
        
    
}


@media(max-width: 590px) {


    .m {
        height: 980px !important;
    }


    .about-afaq h1 {

        font-size: 24px;
    }

    .about h1 {
        font-size: 25px !important;
    }



}


@media(max-width: 460px){


    .about h1 {
        font-size: 22px !important;
    }

    .m {
        height: 1100px !important;
    }

    .about{
        height: 100% !important;
    }

}



@media(max-width: 540px) {




    .boxcard h2 {
        font-size: 20px;
    }

    .incloud h2 {
        font-size: 16px;
    }


    .boxcard p {

        font-size: 15px;
    }

    

    #message_choose h2 {

        font-size: 18px;

    }

    .line_dev div {
        width: 90%;
        height: 1.5px;

    }

    
    .choose h1 {
        font-size: 22px;
    }

    .choose a {

        font-size: 15px;
    }

    .select1 div {
        position: absolute;
        opacity: 0;
        margin-left: 20px;
        margin-top: 26px;
        width: 42px !important;
        height: 1px !important;
    }


    .select2 div {
        position: absolute;
        opacity: 0;
        margin-top: 26px;
        margin-left: 20px;
        width: 75px !important;
        height: 1px !important;
    }

    .select1 div.move1 {

        margin-top: 26px;
    }

    .select2 div.move2 {

        margin-top: 26px;
    }


    .sub_dev {

        width: 100%;
    }

    #developer {
        width: 85%;
        height: 80%;
        gap: 8%;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
    }

    #developer .dev_par:first-child {
        width: 39.333333%;
    }


    .dev_par {
        width: 33.333333%;
        padding: 15px;
    }


    .dev_par:nth-child(2) {
        width: 26.333333%;
    }




}

@media(max-width: 475px) {



    #subproject {

        height: 400px !important;

    }




    .boxcard h2 {
        font-size: 18px;
    }



    .boxcard p {

        font-size: 12px;
    }


}



@media(max-width: 450px) {



    #subproject {

        height: 400px !important;

    }




    .boxcard h2 {
        font-size: 18px;
    }



    .boxcard p {

        font-size: 12px;
    }


}


@media(max-width: 420px) {



    #subproject {

        height: 360px !important;

    }


    header img {

        padding: 0px 0px 0px 35px;
    }

    #message_choose h2 {

        font-size: 14px;

    }



    .leader h1 {
        font-size: 28px;
    }







}




@media(max-width: 360px) {



    #subproject {

        height: 320px !important;

    }




    .boxcard h2 {
        font-size: 16px;
    }



    .boxcard p {

        font-size: 10px;
    }

    .boxcard a {
        font-size: 13px;
    }




}



@media(max-width: 310px) {




    .col2 {
        min-width: 266px;
    }



}




/* for home page */


.projects_home{

    text-align: center;
    padding: 200px 0px;
    width: 100%;
    overflow: hidden;
}

.projects_home h1 {

    color: #4b4949;
    font-size: 34px;
}


.container{

    width: 100%;
    padding-right: var(--bs-gutter-x,.75rem);
    padding-left: var(--bs-gutter-x,.75rem);
    margin-right: auto;
    margin-left: auto;
    max-width: 1320px;
}

.container h1 {

    padding-bottom: 80px;
}

.projects_logo{

    width: 80%;
    margin: auto;
}

.sub_logo{

    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-right: calc(var(--bs-gutter-x)/ -2);
    margin-left: calc(var(--bs-gutter-x)/ -2);
}


.logos{

    flex: 0 0 auto;
    width: 33.3333333333%;
}

@media (max-width:576px) {

    .logos{

        flex: 0 0 auto;
        width: 50%;
    }

    #header_img {
        
        height: 95vh;
    }
    .project_det{

        height: 75vh !important;
    }

    .logos a .pro_photo {
        
        filter: grayscale(0) !important;
        
    }
    
}


.logos a{

    visibility: visible;
    animation-name: fadeInUp;
    display: block;
    text-align: center;
    position: relative;
    width: 72%;
    height: 100px;
    line-height: 100px;
    margin: auto;
    margin-bottom: 50px;
    transition: all .5s;
}

.logos a .pro_photo{
    width: 100%;
    height: 100%;
    vertical-align: middle;
    filter: grayscale(1);
    object-fit: contain;
    transition: all .7s;
}
.logos .pro_photo:hover{

    filter: grayscale(0);

}


@keyframes resize {

    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
    
}



