/*Reset and common styles*/
*{
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
    font-family: "jost", sans-serif;
    font-weight: 400;
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}
.center{
    display: flex;
    justify-content: center;
    align-items: center;
}
.section-heading{
    font-size: 5rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    margin-bottom: 15rem;
    border-bottom: .3rem solid #333;
    text-shadow: .2rem .2rem .5rem #555;
}

/*End of Reset and common styles*/
/*section-1*/
.section-1{
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.3)),url(./images/bg.jpg) center no-repeat; background-size: cover;
    flex-direction: column;
}

.section-1-heading{
    font-size: 5rem;
    font-weight: 700;
    color: #07072d;
    padding: 0 3rem;
    margin-bottom: 5rem;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    text-shadow: 0.2rem 0.2rem 1rem #555;
    transform: skew(-10deg);

}
.person-img{
    width: 25rem;
    height: 25rem;
    object-fit: cover;
    border-radius: 50%;
    border: .3rem dashed #07072d;
    padding: .5rem;
    opacity: 0.9rem;
}

.person-name{
    font-size: 3rem;
    color: #07072d;
    margin: 2rem 0;
    padding: .5rem 3rem;
    letter-spacing: .2rem;
    transform: skew(-5deg);

}

.section-1-btn{
    font-size: 1.7rem;
    font-weight: 600;
    color: #555;
    border: .3rem solid #07072d;
    padding: .5rem 1rem;
    text-transform: uppercase;
    letter-spacing: .2rem;

}
/*End of section-1*/

/*Navbar*/

.navbar{
    width: 100%;
    height: 4rem;
    background-color: black;
    box-shadow: .2rem .2rem .5rem #555;
    position: absolute;
    z-index: 300;

}
.sticky{
    position: fixed;
    top: 0;
}

.navbar-link{
    font-size: 1.7rem;
    font-weight: 600;
    color: white;
    margin: 0 3rem;
    letter-spacing: .3rem;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s;
}

.change .navbar-link{
    color: #fff;
}
.navbar-link::hover{
    color: grey;
}


.navbar-link::before{
    content: " ";
    width: 0;
    height: .2rem;
    background-color: white;
    position: absolute;
    right: -15%;
    bottom: -.3rem;
    transition: width 0.2s;

}
.change .navbar-link::before{
    width: 130%;
}
.navbar-link::hover::before{
    width: 130%;
}


/*End of Navbar*/

/*section-2*/
.section-2{
    width: 100%;
    height: 100%;
    padding: 15rem 0 10rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(224, 224, 230);
}


.skills-wrapper{
    margin-bottom: 10rem;
    width: 80%;
}
.skills-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    max-width: 800px;
    border-radius: 8px;
}

.skills-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.skills-container {

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.skill {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
    background-color: #fff;
    box-shadow: .3rem .3rem .5rem #777;
    position: relative;
    padding: 20px;
    border-radius: 8px;  
    text-align: center;  
}
    


.skill i {
    font-size: 4rem;
    margin-bottom: 10px;
    color: #e41c6f;
}

.skill-heading{
    font-size: 2rem;
    margin-bottom: 5px;
    letter-spacing: .2rem;
}

.skill p {
    font-size: 1.2rem;
    margin: 0;
}



.services{
    width: 100%;
    height: 30vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    
}
.service{
    text-align: center;
}

.service:first-child,
.service:last-child{
    align-self: flex-start;
}

.service i{
    font-size: 10rem;
    color: #888;
    margin-bottom: 2rem;
    text-shadow: .1rem .1rem .5rem #555;
}
.service h2{
    font-size: 2rem;
    color: #fff;
    background-color: #777;
    width: 20rem;
    letter-spacing: .3rem;
    transform: skew(-10deg);
    box-shadow: .2rem .2rem .5rem #555;

}
/*end of section-2*/

/*section-3*/
.section-3{
    width: 100%;
    height: 100%;
    padding: 10rem 0;
    background-color: #eef;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-wrapper{
    width: 80%;
    flex-wrap: wrap;    
}

.project{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1rem;
    background-color: #fff;
    box-shadow: .3rem .3rem .5rem #777;
    position: relative;
    overflow: hidden;
    transition: box-shadow .3s ;
}
.project:hover{
    box-shadow: 1rem 1rem 1rem #777;
}
.project-text{
    text-align: center;
    letter-spacing: .1rem;
    position: absolute;
    top: -10rem;
    transition: top .3s;
    z-index: 10;
}
.project:hover .project-text{
    top: 5rem; 
    transition: top .3s .3s;
}

.project-name{
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    text-transform: capitalize;
}
.project-technologies{
    font-size: 1.8rem;
    color: #e41c6f;
}
.project-img{
    width: 35rem;
    height: 22rem;
    transition: opacity .3s;
}

.project:hover .project-img{
    opacity: .2;
}
.project-link{
    font-size: 2rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.1rem;
    border: .3rem solid #e41c6f;
    padding: 0 1rem;
    background-color: #fff;
    position: absolute;
    bottom: -5rem;
    transition: bottom .3s;
}
.project:hover .project-link{
    bottom: 5rem;
    transition: bottom .3s .3s;
}
/*end of section-3*/

/*section-4*/
.section-4{
    width: 100%;
    height: 50vh;
    background: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.section-4-heading{
    color: #fff;
    box-shadow: none;
    border-color: #fff;
    margin-bottom: 20px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 18px;
    gap: 10px;
}

.contact-item i {
    font-size: 24px;
    color: #e87237;
}

.contact-item span {
    font-size: 18px;
    color: #eeeaef;
}

/*End of section-4*/

/*section-5*/
.section-5{
   height: 20vh;
   width: 100%;
   background-color: #222;
   flex-direction: column;
   
}
.social-media{
    margin-bottom: 5rem;

}
.social-media-link{
    margin: .2rem;
    padding: .7rem;
    background-color: #e41c6f;
    border-radius: .5rem;
    display: inline-block;

}
.social-media-link i{
    font-size: 3rem;
    color: #fff;
}
/*End of section-5*/

/*responsive*/
@media(max-width: 1200px){
    .services{
        height: auto;
        flex-wrap: wrap;
    }
    .service{
        margin: 3rem 2rem;
    }
    .section-4{
        height: 80vh;
    }
}

@media(max-width: 800px){
    .section-1-heading{
        font-size: 4rem;

    }
    .progress-bar{
        width: 50rem;
    }
}
@media(max-width: 600px){
    .section-1-heading{
        font-size: 3rem;
    }
    .navbar-link{
        margin: 0 2rem;
        font-size: 1.5rem;
    }
    .section-2{
        padding: 10rem;
    }
    .section-2-heading{
        margin-bottom: 10rem;
    }
    .progress-bar{
        width: 45rem;
    }
    .project-img{
        width: 100%
    }
    

}
@media(max-width: 500px){
    html{
        font-size: 55%;
    }
}
@media(max-width: 450px){
    html{
        font-size: 45%;
    }
    .section-1-heading{
        font-size: 2.5rem;
    }
    .navbar-link{
        margin: 0 1.5rem;
    }
    .section-2-heading{
        text-align: center;
    }
    
}
@media(min-width: 768px){
    .skill{
        flex: 0 1 45%;
    }
}
/*End of responsive*/
