*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}
html{
    font-size: 62.5%;
    overflow-x: hidden;
}
body{
    background-color:black;
    color: white;
}
section{
    min-height: 100vh;
    padding: 10rem ;
}
.heading{
    font-size: 5rem;
    text-align: center;
}
span{
    color: skyblue;
}


/* navbar section */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background-color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.header.sticky{
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}
.header p{
    font-size: 3rem;
    font-weight:600;
    color: skyblue;
    cursor: default;
}
.navbar a{
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: .5s;
    color: white;
    margin-left: 4rem;
}
.navbar a:hover,
.navbar a.active{
    color: skyblue;
}
#menu-icon{
    font-size: 3rem;
    color: white;
    display: none;
}


/* home section */
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}
.home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}
.home-content h3{
    font-size: 3.5rem;
    font-weight: 700;
}
.home-content h3:nth-of-type(2){
    margin-bottom: 1rem;
    margin-top: 1rem;
}
.home-content p{
    margin-top: 2rem;
    font-size: 2.5rem;
}
.home-social{
    display: flex;
    align-items: center;
    margin-top: 2rem;
}
.btn{ /*reuse */
    display: inline-block;
    padding: 1.8rem;
    background: white;
    border: 2px solid white;
    border-radius: 40px;
    box-shadow: 0 0 10px white;
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: .5s;
}
.btn:hover{
    background: transparent;
    box-shadow: none;
    color: white;
}
.home-icons{
    margin: 3rem;
}
.home-icons a{
    display: inline-flex;
    padding: 1.4rem;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 20px;
    color: white;
    text-decoration: none;
    margin-left: 8px;
    transition: .5s;
}
.home-icons a:hover{
    background: white;
    box-shadow: 0 0 10px white;
    color: black;
}
.img-box{
    position: relative;
    width: 28vw;
    height: 28vw;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 20px white;
    overflow: hidden;
    animation: floatImage 4s ease-in-out infinite;
}
.img-box img{
    position: absolute;
    display: block;
    width: 100%;
    object-fit: cover;

}
@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.5rem);
    }
    100%{
        transform: translateY(0);
    }
}


/* about section */
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
}
.about-img img{
    width: 30vw;
    height: 70vh;
    object-fit: cover;
}
.about-content h2{
    text-align: left;
    line-height: 1;
}
.about-content h3{
    font-size: 3.5rem;
    margin-top: 1.5rem;
}
.about-content p{
    font-size: 2.5rem;
    margin-top: 2rem;
}


/* Skills section */
.skills h2{
    margin-bottom: 6rem;
}
.skills-body{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}
.skills-content{
    height: 48rem;
    width: 45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(37, 33, 33);
    padding: 2rem;
    border-radius: 2rem;
    border: .2rem solid black;
    transition: .5s ease;
}
.skills-content:hover{
    border-color: skyblue;
    transform: scale(1);
}
.skills-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: skyblue;
}

.skills-box i{
    font-size: 7rem;
}
.skills-box h3{
    font-size: 3.5rem;
    text-align: center;
}
.skills-list{
    height: fit-content;
    width: fit-content;
    margin-top: 1.5rem;
}
.skills-list ul{
    font-size: 2.5rem;
}
.skills-list ul li{
    margin-top: .5rem;
    text-align: left;
}


/* projects section */
.projects h2{
    margin-bottom: 6rem;
}
.project-content{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 4rem;
}
.project-box{
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem black;
    overflow: hidden;
    display: flex;
}
.project-box img{
    width: 100%;
    transition: .5s ease;
}
.project-box:hover img{
    transform: scale(1.1);
}
.project-layer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), aqua);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}
.project-box:hover .project-layer{
    transform: translateY(0);
}
.project-layer h4{
    font-size: 3.5rem;
}
.project-layer a{
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 6rem;
    height: 6rem;
    background-color: white;
    border-radius: 50%;
    margin: 1rem;
    text-decoration: none;
    color: black;
    gap: 0.2rem;
}
.project-layer a i{
    font-size: 2rem;
    color: black;
}


/* contact section */
.contact h2{
    margin-bottom: 3rem;
}
.contact form{
    max-width: 90rem;
    margin: 1rem auto;
    text-align: center;
}
.contact form .input-box{
    display: flex;
    justify-content: space-between;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 1rem;
    font-size: 2.5rem;
    color: white;
    background-color: rgb(37, 33, 33);
    border-radius: 1rem;
    margin: 1rem 0;
}
.contact form .input-box input{
    width: 49%;
}
.contact form textarea{
    resize: none;
}
.contact form .btn{
    margin-top: 1.2rem;
    cursor: pointer;
    font-size: 1.8rem;
}


/* footer section */
.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
}
.footer-content p{
    font-size: 2rem;
}
.footer-icon a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    background-color: skyblue;
    border-radius: .8rem;
    transition: .5s ease;
    text-decoration: none;
}
.footer-icon a:hover{
    box-shadow: 0 0 2rem skyblue;
}
.footer-icon a i{
    font-size: 2.5rem;
    color: black;
}



/* BREAKPOINTS */
@media(max-width: 1200px){
    html{
        font-size: 55%;
    }
}
@media(max-width: 950px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background-color: black;
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }
    .navbar.active{
        display: block;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .home{
        flex-direction: column;
    }
    .home-social{
        margin-top: .5rem;
    }
    .img-box{
        width: 50vw;
        height: 50vw;
        margin-top: 3rem;
    }
    .about {
        flex-direction: column-reverse;
    }
    .about-img img{
        width: 70vw;
        height: 70vh;
    }
    .skills-body{
        display: grid;
    }   
    .project-content{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 700px){
    html{
        font-size: 40%;
    }
    section{
        min-height: fit-content;
    }
    .project-content{
        grid-template-columns: repeat(1, 1fr);
    }
}
@media(max-width: 600px){
    html{
        font-size: 35%;
    }
    .home-icons a{
        font-size: 3rem;
    }
}
@media(max-width: 450px){
    html{
        font-size: 25%;
    }
}
@media(max-width: 350px){
    html{
        font-size: 22%;
    }

}

