@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');

*{
    margin: 0;padding: 0;box-sizing: border-box;font-family: 'Lato', sans-serif;
}
html{
    font-size: 62.5%;
}

body{
    background-color: #fdf6f0;
     scrollbar-width: none;
    -ms-overflow-style: none; 
}
body::-webkit-scrollbar {
    display: none;
}

/* --------page loader------ */
#page_loader{
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #071632;
    z-index: 999;
    display: grid;
    place-items: center;
}

#page_loader .Ploader{
width: 20rem;
height: 20rem;
background-color: transparent;
border-radius: 50%;
position: relative;
border: 1.5rem solid #fdf6f0;
border-top: 1.5rem solid #3ab049 ;
z-index: 9999;
animation: loaders 1.5s linear infinite;

}
@keyframes loaders { 
            
    0%{
        transform: rotate(0deg); 
    }
    100%{
        transform: rotate(360deg); 
    }
}
#page_loader .Ploader::before{
    content: 'David RS';
    width: 100%;
    height: 100%;
    position: absolute;
    color: #fdf6f0;
    font-size: 2rem;
    text-transform: uppercase;
    top: 0;
    left: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    animation: loaderText 1.5s linear infinite;
}

@keyframes loaderText { 
            
    0%{
        transform: rotate(360deg); 
    }
    100%{
        transform: rotate(0deg);
    }
}






/* -------Header Start--------- */

header{
    width: 100%;
    height: 100vh;
    background-color: #071632;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10rem;
}
header::before{
    content: '';
    height: 104%;
    width: 104%;
    position: absolute;
    background-color: #3ab049;
    animation: headAn 2s normal forwards ease-in-out;
}
@keyframes headAn{
    0%{
        left: 0;
    }
    100%{
        left: -105%;
    }
}
.left_head{
    width: auto;
    height: 100%;
    /* background-color: rgb(255, 143, 143, 0.5); */
    display: grid;
    place-items: center;
}
header .left_head img{
    width: 50rem;
    height: 58rem;
}
.right_head{
    width: auto;
    height: 100%;
    /* background-color: rgba(116, 78, 255, 0.5); */
   display: flex;
   justify-content: center;
   align-items: center;
   flex-direction: column;
}
.right_head h1{
    width: 60rem;
    height: auto;
    display: grid;
    place-items: center;
    font-size: 8rem;
    text-transform: uppercase;
    color: #fdf6f0;
    margin: 1.5rem 0 1.5rem 0;
    position: relative;
    /* background-color: rgb(0, 255, 255, 0.5); */
    z-index: 2;
    overflow: hidden;
}
.right_head h1::before{
    z-index: -1;
    content: '';
    width: 100%;
    height: 5%;
    background-color: #3ab049;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: headName 5s ease-in-out infinite;

    transform-origin: center;

}
@keyframes headName{
    0%{

        transform: scale(0);
    }

    50%{
 
        transform: scale(1);
    }
    100%{

        transform: scale(0);
    }
}


.right_head h2{
    width: 52rem;
    height: auto;
    text-align: left;
    font-size: 1.8rem;
    font-weight: 400;
    color: #fdf6f0;
    margin: 1.5rem 0 1.5rem 0;
}
.head_skill{
    width: 51rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 2rem;
    margin: 1.5rem 0 1.5rem 0;
    color: #fdf6f0;
    font-weight: 700;
}
.head_skill p:nth-child(2){
    border-right: .3rem solid #3ab049;
    border-left: .3rem solid #3ab049;
    padding-left: 2.8rem;
    padding-right: 2.8rem;
}
.head_skill p:hover{
    color: #3ab049;
    transition: all 0.2s linear;
}
.head_button{
    width: 51rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 2.5rem 0 1.5rem 0;
}
.head_button a{
    color: #3ab049;
    font-size: 2rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border: .1rem solid #3ab049;
    position: relative;
    transition: all 0.3s linear;
    z-index: 1;
    overflow: hidden;
}
.head_button a::before{
    content: '';
    height: 200%;
    width: 200%;
    background-color: #3ab049;
    position: absolute;
    top:0;
    left: -60%;
    transform: rotate(45deg);
    transform-origin: left;
    transition: all 0.3s linear;
    z-index: -1;
}
.head_button a:hover::before{
    transform: rotate(0deg);
    
}

.head_button a:hover{
    color: #fdf6f0;
}
.head_social{
    width: 43rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4rem;
    
}

/* .head_social p{
    width: 15rem;
    height: auto;
    color: #3ab049;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-right: 2rem;
} */

.head_social .head_social_links{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 2.3rem;
    
}
.head_social .head_social_links i{
   
    color: #3ab049;
    transition: all 0.3s linear;
}

.head_social .head_social_links i:hover{
    color: #fdf6f0;
}

/* ---------main-------- */

main{
    width: 100%;
    height: auto;
    

}

/* ---about--- */

.about{
    width: 100vw;
    height: 100vh;
    background-color: #fdf6f0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    
}
.about .about_head{
    width: 100%;
    height: 15vh;
    /* background-color: rgb(58, 176, 73,.2); */
    display: grid;
    place-items: center;
}

.about .about_head h1{
    font-size: 6rem;
    color: #071632;
    text-transform: uppercase;
    animation: aboutHead 5s ease-in-out infinite;
}
@keyframes aboutHead{
    0%{ color: #071632; }
    50%{ color: #3ab049; }
    100%{ color: #071632; }
}

.about .about_bottom{
    width: 100%;
    height: 85vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.about .about_bottom img{
    width: 50rem;
    height: 50rem;
    border-radius: 50%;
    transition: all 1.5s linear;
    padding: 2rem;
}

.about .about_bottom img:hover{
    filter: grayscale(1);
}

.about .about_bottom p{
    line-height: 3.8rem;
    font-size: 2.5rem;
    color: #171717;
    padding: 6rem;
    font-weight: 500;
}

.about .about_bottom p::first-letter{
    font-size: 10rem;
    color: #0b2f72;
}



/* -----my goals---- */



.goals{
    padding: 100px;
    text-align: center;
    background: #071632;
}
.goals .goals_head h1{
    color: #fdf6f0;
    font-size: 4rem;
    text-transform: uppercase;
    animation: goalHead 1s linear infinite;
}
@-webkit-keyframes goalHead{
    0%{
        transform: scale(1);
    }
    20%{
        transform: scale(1);
    }
    40%{
        transform: scale(1.06);
    }
    60%{
        transform: scale(1.02);
    }
    80%{
        transform: scale(1.06);
    }
    100%{
        transform: scale(1);
    }
}
.goals .container
{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6rem ;
}
.goals .container .goalsBx
{
    position: relative;
    background: #fff;
    width: 35rem;
    height: 40rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .3s linear;
    overflow: hidden;
    object-fit: cover;

}

.goals .container .goalsBx:hover{
    transform: scale(1.04);
}
.goals .container .goalsBx img
{
    max-width: 10rem;
}
.goals .container .goalsBx h2
{
    font-weight: 1000;
    font-size: 2rem;
    letter-spacing: 0.1rem;
}

/* -----Graphics Design---- */
.design
    {
        width: 100%;
        height: 80rem;
        padding: 5rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-direction: column;
        padding: 2rem;
    }
.design .design_head{
    height: 20rem;
    width: 100%;
    text-align: center;
    display: grid;
    place-items: center;
    /* background-color: rgb(58, 176, 73, 0.5); */
}
.design .design_head h1{
    color: #3ab049;
    font-size: 4.5rem;
    text-transform: uppercase;
    position: relative;
}


.design .design_head h1::before{
    content: "~Graphics~";
    position: absolute;
    width:100%;
    color: #071632;
    top: 0;
    left: 0;
    border-right:  0.2rem solid #0b2f72;
    animation: text 3s linear infinite;
    -webkit-animation: text 3s linear infinite;
    overflow: hidden;

}


 @-webkit-keyframes text{

    0%{
        width: 0%;
    }
    50%{
        width: 100%;
    }
    100%{
        width: 0%;
    }

} 


.design .design_bottom{
    width: 100%;
    height: 60rem;
    display: grid;
    place-items: center;
    position:relative;
    /* background-color: rgba(167, 255, 179, 0.5); */
    
}

.design .design_bottom::after{
    content: 'swipe >>';
    text-transform: uppercase;
    font-size: 1.7rem;
    color: #171717;
    font-style: italic;
    font-weight: bolder;
    position: absolute;
    right: 1%;
    bottom: 1%;
}

.design .design_bottom .design_photo{

    width: 100%;
    display: flex;
    overflow: hidden;
    overflow-x: scroll;
}

.design .design_bottom .design_photo img{

    padding: 2rem;
    border-radius: 3.3rem;
    transition: all .2s linear;
    width: 40rem;
    height: 45rem;
    background: cover;
    
}

.design .design_bottom .design_photo img:hover{
    transform: scale(1.1);
}

.design .design_bottom .design_photo::-webkit-scrollbar{
    overflow: hidden;
}

.projects{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
}

.projects .projects_head{
    width: 100%;
    height: 20%;
    /* background-color: rgba(176, 101, 58, 0.2); */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.projects .projects_head h1{
    color: #071632;
    font-size: 4rem;
    text-transform: uppercase;
    padding: 2rem;
    border-bottom: 0.6rem solid #3ab049;
}




.projects .projects_bottom{
    width: 100%;
    height: 80%;
    /* background-color: rgb(58, 176, 73,.2); */
    display: flex;
    align-items: center;
    justify-content: space-around;
    
    
}

.projects .projects_bottom .project_left,.project_right{

    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
}

.project_card{
    width: 38rem;
    height: 12rem;
    background-color: #3ab049;
    border-radius: 1rem;
    /* padding: 2rem; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    box-shadow: 0.5rem .6rem 0.8rem -0.6rem black;
}
.project_card .pCard_left{
    width: 30rem;
    height: 100%;
    /* background-color: #f7ff86; */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
    padding: 2rem;
}

.project_card .pCard_left h3{
    font-size: 2rem;
    color: #071632;
    margin-bottom: 1rem;
}

.project_card .pCard_left p{
    font-size: 1.5rem;
    color: #071632;
}

.project_card .pCard_right{
    width: 8rem;
    height: 100%;
    /* background-color: #fcffce; */
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: space-around;
    background-color: #25af38;
    border-bottom-right-radius: 1rem;
    border-top-right-radius: 1rem;
}
.project_card .pCard_right a{

    text-decoration: none;
    color: #071632;
    font-size: 3rem;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.project_card .pCard_right a:first-child{
    border-top-right-radius: 1rem;
}
.project_card .pCard_right a:last-child{
    border-bottom-right-radius: 1rem;
}

.project_card .pCard_right a:hover{
    color: #fdf6f0;
    background-color: #071632;

}











/* ------ footer ------- */
footer{
    height: 10rem;
    background-color: transparent;
 
}
footer .footer_content{
    width: 100%;
    height: 100%;
    background-color: #071632;
    /* border-top-left-radius: 50%;
    border-top-right-radius: 50%; */
    /* text-align: center; */
    display: grid;
    place-items: center;
}
footer .footer_content h1{
    color: #fdf6f0 ;
    font-size: 1.5rem;
    font-weight: 400;
}








/* ------- Responsive -------- */



@media (max-width:1100px){
    html{
        font-size: 57%;
    }
}



@media (max-width:1024px) {
    html{
        font-size: 57%;
    }
    .left_head{
        margin-top: 5rem;
    }
    .about{
       
        padding: 4rem;
    }
.about .about_bottom p{
    font-size: 2.5rem;
    
}
    .goals
    {
        padding: 5rem;
    }
    .goals .container
    {
        justify-content: center;
        margin-top: 2rem;

    }
    .goals .container .goalsBx
    {
        margin: 2rem;
        width: 30rem;
        height: 35rem;
    }

} 
@media (max-width:920px) {
    html{
        font-size: 45%;
    }
    header{
        flex-direction: column;
    }
    .left_head{
        margin-top: 1rem;
    }
    .head_social .head_social_links{
        
        font-size: 4rem;
    }
    
}
@media (max-width:780px) {
    html{
        font-size: 45%;
    }
    header{
        flex-direction: column;
       
    }
    .about .about_bottom{
        flex-direction: column;
        justify-content: space-around;
    }

    .about{
       
        padding: 2.2rem;
    }
    
    
    
}
@media (max-width:450px) {
    html{
        font-size: 35%;
    }
    header{
        flex-direction: column;
    }
    .head_social .head_social_links{
        
        font-size: 4rem;
    }
    
    .about .about_bottom{
    flex-direction: column;
    justify-content: space-around;
    }
    .about .about_bottom img{
        width: 30rem;
        height: 30rem;
    }
    .about .about_bottom p{
        
        line-height: 3.5rem;
    }
    .projects .projects_bottom{
        flex-direction: column;
        }
        
        .project_card{
            font-size: 6rem;
        }
    
}
 @media (max-width:320px) {
    html{
        font-size: 23%;
    }
    header{
        flex-direction: column;
    }
    .head_social .head_social_links{
        
        font-size: 4rem;
    }
    .about .about_bottom img{
        width: 40rem;
        height: 40rem;
    }
    .about .about_bottom{
    flex-direction: column;
    justify-content: space-around;
    }
 
} 
