@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html{
    scroll-behavior: smooth;
}

a:hover, .btn:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.project img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}


.max-width{
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

.navbar{
    position: fixed;
    width: 100%;
    padding: 20px 0;
    z-index: 999;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
}

.navbar.sticky{
    padding: 15px 0;
    background: crimson;
}
.navbar .max-width{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo a{
    color: aliceblue;
    font-size: 35px;
    font-weight: 600;
}

.navbar .logo a span{
    color: crimson;
    transition: all 0.3s ease;
}

.navbar.sticky .logo a span{
    color: aliceblue;
}

.navbar .menu li{
    list-style: none;
    display: inline-block;
}
.navbar .menu li a{
    display: block;
    color: aliceblue;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.navbar .menu li a:hover{
    color: crimson;
}

.navbar.sticky .menu li a:hover{
    color: aliceblue;
}

.menu-btn{
    color: aliceblue;
    font-size: 23px;
    cursor: pointer;
    display: none;
} 

.scroll-up-btn{
    position: fixed;
    height: 45px;
    width: 42px;
    background: crimson;
    right: 30px;
    bottom: 10px;
    text-align: center;
    line-height: 45px;
    color: aliceblue;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.scroll-up-btn.show{
    opacity: 1;
    pointer-events: auto;
    bottom: 30px;
}

.home{
    display: flex;
    height: 100vh;
    background: url(assests/banner9.png) no-repeat center;
    color: aliceblue;
    min-height: 500px;
    font-family: 'Ubuntu', sans-serif;
}

.home .max-width{
    margin: auto 0 auto 40px;
}

.home .home-content .text-1{
    font-size: 27px;  
}

.home .home-content .text-2{
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}

.home .home-content .text-3{
    font-size: 40px;
    margin: 5px 0;
}

.home .home-content .text-3 span{
    color: crimson;
    font-weight: 500;
}

.home .home-content a{
    display: inline-block;
    background: crimson;
    color: aliceblue;
    font-size: 25px;
    padding: 12px 36px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}

.home .home-content a:hover{
    color: crimson;
    background: none;
}

section{
    padding: 100px 0;
}

section .title{
    position: relative;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    text-align: center;
    font-family: 'Ubuntu',sans-serif;
}

section .title::before{
    content: "";
    position: absolute;
    bottom: 0px;
    width: 180px;
    height: 3px;
    left: 50%;
    background: black;
    transform: translateX(-50%);
}

section .title::after{
    content: "Who I am";
    position: absolute;
    bottom: -8px;
    left: 50%;
    color: crimson;
    font-size: 20px;
    padding: 5px;
    background: aliceblue;
    transform: translateX(-50%);
}

.about, .projects, .skills, .contact, footer{
    font-family: 'Poppins',sans-serif;
}

.about .about-content, 
.contact .contact-content{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about .title::after{
    content: "Who I am";
}

.about .about-content .left{
    width: 45%;
}

.about .about-content .left img{
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 5px;
}

.about .about-content .right{
    width: 55%;
}

.about .about-content .right .text{
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about-content .right .text span{
    color: crimson;
}

.about .about-content .right p{
    text-align: justify;
}

.about .about-content .right a{
    display: inline-block;
    background: crimson;
    color: aliceblue;
    font-size: 20px;
    font-weight: 500;
    padding: 5px 25px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}

.about .about-content .right a:hover{
    color: crimson;
    background: none;
}

.projects{
    color: aliceblue; 
    background-color: black;
}
.projects .title::before{
    background: aliceblue;
}
.projects .title::after{
    background: black;
    content: "My Work";
}

.projects .projects-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.projects .projects-content .project{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.projects .projects-content .project img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.projects .projects-content .project .layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6),#ff004f);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding:0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.projects .projects-content .project .layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}

.projects .projects-content .project .layer a{
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: aliceblue;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;

}

.projects .projects-content .project:hover img{
    transform: scale(1.1);
}

.projects .projects-content .project:hover .layer{
    height: 100%;
}

.projects .btn{
    display: inline-block;
    background: crimson;
    color: aliceblue;
    font-size: 20px;
    font-weight: 500;
    padding: 5px 25px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}

.projects .btn:hover{
    background: crimson;
    background: none;
}

.skills .title::after{
    content: "What I know";
}

.skills_container{
    display: grid;
    grid-template-columns: 360px 320px;
    column-gap: 3rem;
    justify-content: center;
}

.skills_header{
    display: flex;
    align-items: center;
    cursor: pointer;
}

.skills_header:not(:last-child){
    margin-bottom: 2.5rem;
}

.skills_icon,
.skills_arrow{
    font-size: 1.5rem;
    color: crimson;
}

.skills_icon{
    margin-right: .75rem;
}

.skills_title{
    font-size: 1.25rem;
    font-weight: 500;
}

.skills_arrow{
    margin-left: auto;
}

.skills_active .skills_arrow{
    transform: rotate(-90deg);
    transition: .3s;
}

.skills [data-content] {
    display: none;
}

.skills_active[data-content] {
    display: block;
}

.skills_list{
    display: grid;
    row-gap: 1.8rem;
}

.skills_titles{
    display: flex;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.skills_name{
    font-size: 1rem;
    font-weight: 500;
}

.skills_bar,
.skills_percentage{
    height: 5px;
    border-radius: .25rem;
}

.skills_bar{
    background-color: lightgray;
}

.skills_percentage{
    display: block;
    background-color: crimson;
}

.contact{
    color: aliceblue; 
    background-color: black;
}

.contact .title::before{
    background: aliceblue;
}

.contact .title::after{
    background: black;
    content: "Get in touch";
}

.contact .contact-content .column{
    width: calc(50% - 30px);
}

.contact .contact-content .text{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.contact .contact-content .left p{
    text-align: justify;
    margin-bottom: 20px;
}

.contact .contact-content .left .icons{
    margin: 10px 20px;
    margin-top: 30px;
    align-items: center;
}

.contact .contact-content .row{
    display: flex;
    height: 65px;
    margin-top: 15px;
}

.contact .contact-content .row .info{
    margin-left: 35px;
    margin-top: 5px;
    gap: 10px;
    align-items: center;
}

.contact .contact-content .row i{
    font-size: 25px;
    margin-top: 10px;
    gap: 10px;
    color: crimson;
}

.contact .contact-content .icons .icon {
    margin-bottom: 30px;
} 

.contact .contact-content .icons .icon i{
    font-size: 20px;
    border-radius: 50%;
    margin-right: 20px;
    padding: 10px;
    cursor: pointer;
    background: crimson;
    color: #f7e0e0;
    border: #fff ;
}

.contact .contact-content .icons .icon i:hover{
    color: grey;
    border: 1px solid grey;
    background: transparent;
}

.contact .contact-content:hover .icon i{
    transform: translateY(0px);
    opacity: 1;
}

.contact .contact-content .info .head{
    font-weight: 400;
}

.contact .right form .fields{
    align-items: center;
}

.contact .right form .field,
.contact .right form .fields .field{
    height: 45px;
    width: 100%;
    margin-bottom: 15px;
}

.contact .right form .textarea{
    height: 150px;
    width: 100%;
}

.contact .right form .name{
    margin-right: 10px;
}

.contact .right form .email{
    margin-right: 10px;
}

.contact .right form .field input,
.contact .right form .textarea textarea{
    height: 100%;
    width: 100%;
    border: 1px solid lightgrey;
    border-radius: 6px;
    outline: none;
    padding: 0 15px;
    font-size: 17px;
    font-family: 'Poppins',sans-serif;
}

.contact .right form .textarea textarea{
    padding-top: 10px;
    resize: none;
}

.contact .right form .button{
    width: 170px ;
    height: 50px;
}

.contact .right form .button button{
    width: 100%;
    height: 100%;
    border: 2px solid crimson;
    background: crimson;
    color: aliceblue;
    font-size: 20px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact .right form .button button:hover{
    color: aliceblue;
    background: none;
}

.contact .contact-content .left .icon{
    margin: 10px 0;
    font-size: 25px;
    color: crimson;
    height: 65px;
}

footer{
    background: aliceblue;
    padding: 20px 23px;
    color: black;
    text-align: center;
}

footer span a{
    color: crimson;
    text-decoration: none;
}

footer span a:hover{
    text-decoration: underline;
}
