    /* ----- reset defualt ----- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box ;
    font-family: 'Segoe UI', sans-serif;
}

body{
    /* background-color: #F4FCFF; */
    background-color: #f0f7ff;
}

ul{
        list-style-type: none;
}

a{
    text-decoration: none;
    color: black;
}

.container{
    width: 80vw ;
    margin: 0 auto;
}

    /* ----- start navbar ----- */

nav{
    display: flex ;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0px ;
    font-size: 20px;
}

nav > ul {
    display: flex ;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

nav li a::after{
    content: "";
    height: 3px;
    background-color: #2978CD;
    border-radius: 50px;
    transform: scale(0) ;
    transition: 0.2s all;
    
}

nav li a:hover{
    color: #2978CD;
    transition: 0.2s all;
    &::after{
        display: block;
        transform: scale(1) translateY(2px);

    }
}

nav > button{
    background-color: #2978CD;
    color: #F4FCFF;
    border: none;
    width: 6.5rem;
    height: 2.5rem;
    border-radius: 8px;
}
    /* ----- end navbar ----- */


    /* ----- start header ----- */

header{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 100px;
}
    /* main */
.hero_main{
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}
    /* content */
.hero_content {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero_content > span{
    font-size: 20px;
    font-weight: 800;
}

.hero_content h1{
    font-size: 50px;

    & span{
        color: #2978CD;
    }
}

.hero_content p{
    font-size: 20px;
}
    /* action */
.hero_action{
    display: flex;
    align-items: center;
    gap:20px;
}

.hero_action button{
    width: 7rem;
    height: 2.5rem;
    font-size: 20px;
    background-color: #2978CD;
    border: none;
    color: #F4FCFF;
    border-radius: 5px;
}

.hero_action a{
    font-size: 20px;
}
    /* tape */
.hero_tape{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}


    /* ----- end header ----- */

    /* ----- start about section ----- */
#about{

    width: 100vw;
    height: 450px;
    margin: 50px -10vw;
    background-color: #CAE0EB;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.about_content{
    width: 60vw;
    display: flex;
    justify-content: space-between;
    align-items: center;

    & h2{ 
        font-size: 60px;
        font-weight: 700;
    }

    & p{
        width: 60%;
        font-size: 20px;
    }
}

.about_cards_container{
    width: 60vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about_card{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    & h3{
        width: 5em;
    }

    & figure{
        box-shadow: 0px 8px 9px rgb(156, 153, 153);
    }
}

    /* ----- end about section ----- */


    /* ----- start Expertise section ----- */
#expertise{
    display: flex;
    flex-direction: column;
    gap: 50px;
    
    & h2{
        font-size: 30px;
        font-weight: 800;
    }
}
    /* cards */
.expertise_cards_container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1%;
}

.expertise_cards_container span{
    display: flex;
    flex-direction: column ;
    gap: 10px;
}

.expertise_cards_container span:first-child{
    padding-bottom: 10px;
    border-bottom: 4px solid #2978CD;
    border-radius: 8px;
}

    /* images */
.expertise_images_container{
    display: flex;
    justify-content: space-evenly ;
    align-items: center;
    & > figure{
        padding: 5px;
        border: 3px solid #2978CD;
        position: relative;
    }
    & div{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;

    }
}

/* figure bottom line connecting the time line */
.expertise_images_container > figure::after{
    content: "";
    background-color: #2978CD;
    width: 4px;
    height: 44%;
    position: absolute;
    bottom: -44%;
    left: 50%;
}

    /* timeline */
.expertise_timeline_container{
    display: flex;
    margin-top: 70px ;
    justify-content: center;
    align-items: flex-start;
    gap: 20%;

    & h4{
        font-size: 30px;
    }

    & h3{
        color: #2978CD;
        font-size: 25px;
    }
}

#work_experience , #skills{
    display: flex;
    flex-direction: column ;
    gap: 2em;

}
#work_experience{
    border-left: 4px solid #2978CD;
    padding: 30px 0px 50px 20px;
    position: relative;
}
/* top border for timeline */
#work_experience::before{
    content: "";
    background-color: #2978CD;
    width: 70%;
    height: 3px;
    position: absolute;
    top: 0px;
    left: 0px;
    
    

}

#work_experience > li { 
    position: relative;
 }

/* point in time line */
#work_experience > li > h4::before{
    content: "";
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #328ced;
    position: absolute;
    left: -29px;
    top: 25%;
    z-index: 2;
}
/* white space between point and the border */
#work_experience > li > h4::after{
    content: "";
    width: 18px;
    height: 25px;
    background-color: white;
    position: absolute;
    left: -28px;
    top: 18%;

}

/*  skills progress part */

#skills{
    width: 35%;
}

.skill_info{
    display: flex;
    gap: 10px;
    font-size: 25px;
}

.progress_container{
    margin-top: 10px;
    height: 12px;
    width: 70%;
    background-color: rgb(199, 198, 198);
}

.skill_progress{
    height: 100%;
    background: linear-gradient(0.25turn, #123357 , #2570c1);
    border-radius: 12px;
    width: var(--progress);
}

#skills figure{
    align-self: flex-end;
}
    /* ----- end Expertise section ----- */

    /* ----- start services section ----- */

#services{
    display: flex;
    justify-content: space-between;
    margin: 50px auto;
    height: 400px;
    
        
}
    
    /* cards */

.services_cards_container{
    width: 40%;
    display: flex;
    gap: 20px;
   
}

.service_card{
    background-color: #2978CD;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15%;
    border-radius: 12px;
    width: 50%;

    & span{
        display: flex;
        flex-direction: column;
        gap: 20px;
        color: #F4FCFF;
        text-align: center;

        & h3{ font-size: 2em;}
        & p {font-size: 1.2em;}
    }
}

    /* content */
.services_content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50%;
    gap: 10px;

    & h2{  font-size: 3em; }
    & > p{  font-size: 1.5em; }
}

.services_content > div:first-of-type{
    position: relative;
    display: flex;
    gap: 20px;
    padding: 20px 0px;
    border-bottom: 3px solid #e0e0e0;

    & img{
        border-radius: 50%;
    }
    
}

.services_content > div:nth-of-type(2){
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20%;

    & div{
        display: flex;
        flex-direction: column;

        & h3{ font-size: 30px;}
    }

}


    /* ----- end services section ----- */
    
    /* ----- start portfolio section ----- */
#portfolio{
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin: 80px 0px;
}

#portfolio > div{
    display: flex;
    justify-content: space-between;
    align-items: center;

    & h2{ font-size: 30px; }
    & button{
        height: 30px;
        padding: 5px;
        background-color: #2978CD;
        color: #F4FCFF;
        border: none;
        border-radius: 4px;
    }
}

#portfolio > ul {
    display: flex;
    gap: 50px;
}

.project_card{
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    border-radius: px;
    box-shadow: 0px 2px 15px gainsboro ;

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

    & > div {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }
}

#portfolio > figure img {
    width: 100%;
}


    /* ----- end portfolio section ----- */
    
    /* ----- start contact section ----- */
    
#contact{
    display: flex;
    gap: 50px;
    align-items: center;
    margin: 50px 0px;
}
    /* social media icons */
.contact_socialmedia{
    display: flex;
    flex-direction: column;
    justify-content: span;
    gap: 20px;
    flex: 1;

    & div > h3{ font-size: 2rem; }
    & div > span{ font-size: 1.8rem;}


}

#socialmedia_icon{
    display: flex;
    align-items: center;
    gap: 5px;
    
}

    /* form */
.contact_form{
    padding: 60px;
    display: flex;
    gap: 80px;
    width: 800px;
    background-color: white;
    box-shadow: 0px 0px 10px rgb(201, 201, 201);
    flex: 2;
    position: relative;

    & h2{ 
        font-size: 2.5rem;
        color: #2978CD;
        flex: 1;
    }
}

.contact_form::after{
    content: "";
    width: 45%;
    height: 45%;
    background:  linear-gradient(0.25turn, #123357 , #2570c1);
    /* background-color: #2978CD; */
    position: absolute;
    bottom: -15px;
    left: -15px;
    z-index: -1;

}

form{
    display: flex;
    flex-direction: column;
    gap: 50px;
    flex: 2;

}

form fieldset{
    border: none;
    position: relative;
}

form label{
    font-size: 18px;
    color: gray;
    position: absolute;
    top: 10px;
    transition: all 0.3s ease;
}

fieldset:has(
input:focus , input:not(:placeholder-shown) ,
textarea:focus , textarea:not(:placeholder-shown)
) label
{
   top: -15px;
   color: #2978CD;
}

input , textarea{
    border: none;
    width: 100%;
    border-bottom: 1px solid gray;
    padding: 10px 0PX; 
    outline: none;
    font-size: 18px;
    resize: none;

    &:focus{
        border-bottom: 3px solid #2978CD;
    }
}

form button{
    background-color: #2978CD;
    border: none;
    width: 60%;
    height: 2.5rem;
    color: #F4FCFF;
    font-size: 20px;

}
    /* ----- end contact section ----- */

    /* Start footer  */
footer{
    background-color: white;
    margin: 50px 0px;
    padding: 10px;
}
.footer_top{
    display: flex;
    justify-content: space-between;
    margin: 10px 0px;
    & ul{

        display: flex;
        justify-content: space-between;
        gap: 10px;
    }
}

.footer_bottom{
    border-top: 4px solid #e0e0e0;
    padding: 10px;
    text-align: center;
    & a{
        margin: 10px;
    }
}
    /* end footer */