
body{
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(to bottom,rgb(102, 6, 102) 10%,rgb(36, 2, 36));
    /* font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; */

    
}



header{
    display: flex;
      top: 0;
  left: 0;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    /* background-color: antiquewhite; */
    /* height: 100px; */
    height: 15vh;
    width: 100vw;
    z-index: 5;
    background-color: rgb(102, 6, 102);
    
    
}

.tag_box{
    width: 50%;
}

.head_tag{
    text-decoration: none;
    color: black;
    /* font-size: 40px; */
    /* background-color: aqua; */
}


.links{
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    width: 30%;
    z-index: 1000;
}


.link{
    text-decoration: none;
    color: black;
    font-size: 20px;
    transition: .2s;
}

.link:hover{
    color: white;
    text-shadow: 0 0 5px white;

}

.active {
    color: white; /* اللينك الفعال يبقى أبيض */
    text-shadow: 0 0 5px white;

}


.fa-bars,.fa-xmark{
    font-size: 30px;
    display: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    width: 0 !important;

}






@media screen and (max-width:600px) {

    header{
        height: 15vh;
        /* justify-content: space-around; */
        /* padding-left: 40px; */
    }

    .links{
        flex-direction: column;
        gap: 10px;
        background: transparent;
        backdrop-filter: blur(20px);
        box-shadow: 0px 0px 7px rgb(59, 59, 59);
        position: fixed;
        height: 300px;
        right: 0px; 
        top: 0px;
        width: 40%;
        transform: translateX(110%);
        transition: .3s;
    }

    .fa-bars,.fa-xmark{
        display: block !important;
    }

    .links:active{
        transform: translateX(110%);
        /* background-color: aqua; */
    }


}


/*///////////////////////////////////////////*/



.container{
    height: 550px;
    height: 85vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    margin-top: 15vh; 
    background: linear-gradient(to bottom,rgb(102, 6, 102) 10%,rgb(36, 2, 36));
    overflow: hidden;
}

.cir1{
    border: 5px solid rgb(27, 0, 27);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background:transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(150px);
    transition: 1s;
}

.cir2{
    border: 3px solid rgb(241, 3, 114);
    width: 245px;
    height: 245px;
    border-radius: 50%;
    background:transparent;
    position: relative;
    object-fit: cover; 
}

.kareem_img{
    position: absolute;
    width: 100%;
    height: 150%;
    bottom: 0;
    border-radius: 1000px;
}

.hello{
    font-size: 40px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: white;
    margin: 5px;
}

.job{
    text-shadow: 1px 1px 10px rgb(255, 24, 101);
}

.name{
    font-size: 50px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: white;
    margin: 5px;

}

h4{
    font-size: 25px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: white;
}



.social_media{
    display: flex;
    gap: 20px;

}

.fa-brands{
    font-size: 40px;
}

.fa-facebook{
    color: blue;
    padding: 7px;
    border-radius: 90px;
}

.fa-facebook:hover{
    background-color: blue;
    color: white;
    box-shadow: 0 0 10px 2px blue;
}

.fa-instagram{
    color: rgb(146, 31, 117);
    padding: 7px;
    border-radius: 90px;
}

.fa-instagram:hover{
    background-color: rgb(146, 31, 117);
    color: white;
    box-shadow: 0 0 10px 2px rgb(146, 31, 117);

}

.fa-tiktok{
    color: black;
    padding: 7px;
    border-radius: 90px;
}

.fa-tiktok:hover{
    background-color: black;
    color: white;
    box-shadow: 0 0 10px 2px black;



}

.fa-linkedin{
    color: aqua;
    padding: 7px;
    border-radius: 90px;
}

.fa-linkedin:hover{
    color: white;
    background-color: aqua;
    box-shadow: 0 0 10px 2px aqua;
}

.info{
    width: 55%;
    /* background-color: aqua; */
    opacity: 0;
    transform: translateX(-150px);
    transition: 1s;
}


@media screen and (max-width:600px) {

    .container{
        flex-direction: column-reverse;
    }

    .cir1{
        /* transform: scale(0.7); */
        margin-top: auto;
        width: 140px;
        height: 140px;

    }
    
    .cir2{
        width: 135px;
        height: 135px;

    }

    .info{
        width: 100%;
        margin-bottom: auto;
        padding: 0;
    }

    .social_media{
        width: 100%;
        gap: 0;
        justify-content: space-around;
    }

    .hello{
        font-size: 25px;

    }

    .name{
        font-size: 40px;
    }

    h4{
        font-size: 16px;
    }

    .fa-brands{
        font-size: 30px;
    }

    .hello,.name,h4{
        text-align: center;
    }
}

/*/////////////////////////////////////////////////////////////*/


#about{
    height: 85vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    background: linear-gradient(to bottom,rgb(102, 6, 102) 10%,rgb(36, 2, 36));
    overflow: hidden;
}

.card{
    width: 60%;
    background-color: aqua;
    background: transparent;
    backdrop-filter: blur(20px);
    box-shadow: 0px 0px 25px 10px rgb(48, 2, 48);
    border-radius: 10px;
    color: white;
    padding: 0 20px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    opacity: 0;
    transform: scale(.7);
    transition: 1s;
}

.about_head{
    font-size: 45px;
    text-align: center;
}

.about_description{
    font-size: 20px;
}

@media screen and (max-width:600px){
    .card{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about_head{
        font-size: 35px;
        margin-bottom: 0;
    }
    .about_description{
        font-size: 14px;
    }


}


/*///////////////////////////////////////////////////////////*/



#skills_certificates{
    height: 85vh;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    position: relative;
    background: linear-gradient(to bottom,rgb(102, 6, 102) 10%,rgb(36, 2, 36));
    color: white;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    overflow: hidden;
}



.skills_head{
    margin: 0;
    font-size: 45px;
    position: relative;
    text-align: center;
}

.skills,.certificates{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    gap: 40px;
    place-items: center;
}

.skill{
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    font-size: 20px;
    width: 80%;
    box-shadow: 0px 0px 7px rgb(199, 196, 196);

}

.bar_con{
    position: relative;
    width: 50%;
    height: 5px;
}

.bar{
    width: 100%;
    height: 5px;
    background-color: azure;
    border-radius: 3px;
}

.real_bar{
    width: 0%;
    height: 5px;
    background-color: rgb(110, 250, 119);
    box-shadow: 0 0 10px 3px rgb(17, 255, 17);
    border-radius: 3px;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    transition: 1.5s;
    
}

i{
    width: 20%;
    text-align: center;
}

.percent{
    width: 10%;
}









.certificate{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    opacity: 0;
    transform: scale(.9);
    transition: 1s;
    box-shadow: 0px 0px 7px rgb(199, 196, 196);

}

h4{
    text-align: center;
}

.openImg{
    width: 90px;
    height: 90px;
}


#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}
#popup img {
    max-width: 80%;
    max-height: 80%;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}
#popup img:hover {
    transform: scale(1.05);
}

.openImg:hover{
    transform: scale(1.05);
}

.certificate_description{
    width: 30%;
    background-color: aqua;
}




@media screen and (max-width:600px){
    .skills{
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .skill{
        font-size: 13px;
    }

    i{
        width: 40%;
    }

    .bar_con{
        width: 38%;
    }








    #popup img {
        max-width: 80%;
        max-height: 60%;

    }

    .certificate,.skill{
        box-shadow: none;
    }


}










    



#projects{
    height: 85vh;
    /* background-color: aqua; */
    background: linear-gradient(to bottom,rgb(102, 6, 102) 10%,rgb(36, 2, 36));
    
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;

    position: relative;
    /* gap: 40px; */
    /* place-items: center; */

    /* position: relative; */
    /* display: flex;
    justify-content: space-around;
    align-items: center; */
    overflow: hidden;
}

.projects_head{
    color: white;
    /* font-size: 35px; */
    margin: 0;
    font-size: 45px;
    position: relative;
    text-align: center;
}

.project_con{
    /* background-color: aqua; */
    background: linear-gradient(to bottom,rgb(102, 6, 102) 10%,rgb(36, 2, 36));
   width: 100vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    /* gap: 40px; */
    place-items: center;

    /* position: relative; */
    /* display: flex;
    justify-content: space-around;
    align-items: center; */
    overflow: hidden;

}

.project{
    height: 50%;
    width: 90%;
    position: relative;
    background-color: rgb(33, 49, 49);
    object-fit: cover;
    overflow: hidden;

    opacity: 0;
    transform: scale(.7);
    transition: 1s;

}

.project_img{
    width: 100%;
    height: 100%;
    
}

.project_name{
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,rgb(102, 6, 102) 50%,rgb(255,255,255,0));
    position: absolute;
    transition: .5s;
    top: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    font-size: 20px;
/* background-color:rgb(255,255,255,0) ; */
    text-decoration: none;  
    

}

.project:hover .project_name{
    top: 0;
    left: 0;
    /* background: linear-gradient(to top,rgb(102, 6, 102) 50%,rgb(255,255,255,0)); */

}

@media screen and (max-width:600px){
    .project_con{
        grid-template-columns: repeat(2, 1fr);
    }
}

 


/*///////////////////////////////////////////////////////////////*/








#contact{
    height: 85vh;
    /* background-color: rgb(78, 117, 117); */
/* background: linear-gradient(to top,rgb(102, 6, 102) 10%,rgb(255,255,255,0)); */
    background: linear-gradient(to bottom,rgb(102, 6, 102) 10%,rgb(36, 2, 36));

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;


    overflow: hidden;
}

.contact_head{
    color: white;
    margin: 0;
    font-size: 45px;
    position: relative;
    text-align: center;
    height: 15vh;
    /* background-color: aqua; */
    padding: 0;
}

form{
    width: 100vw;
    /* background-color: rgb(136, 28, 134); */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    gap: 10px;
    position: relative;
    /* grid-auto-rows: 200px; */
    height: 70vh;
    position: relative;

}

.name_con,.email_con,.phone_con,.message_con,.submit_con{
    /* background-color: aqua; */
    width: 90%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* overflow: hidden; */
}

label{
    width: 30%;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    
}

input,textarea{
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 15px;
    outline: none;
    padding-left: 10px;
    font-size: 17px;
}

textarea{
    height: 360px;
}

.submit{
    width: 30%;
    color: white;
    background-color: blue;
    font-size: 20px;
    cursor: pointer;
}

.message_con {
    grid-row: span 2; /* العنصر التالت ياخد صفين */
}

@media screen and (max-width:600px){
    form{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;

    }

    textarea{
        height: 160px;
    }

    .submit{
        width: 50%;
    }

    h1{
    margin: 0;
    padding: 0;
}
    
}





h1{
    margin: 0;
    padding: 0;
}





.show {
opacity: 1;
transform: translateX(0);
transform: scale(1);
}



