@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.menu>li>a.active {
    color: yellow;
    font-weight: bold;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: color 0.5s ease;
}
body{
    font-family: "Montserrat", sans-serif;
}
header{
    display: flex;
    /* width: 100%; */
    background-color: rgb(0, 152, 0);
    padding: 20px 30px;
    justify-content: space-between;
    align-items: center;
    /* position: fixed; */
}

.logo>p{
    font-size: 40px;
    /* padding: -10px; */
    margin: -10px;
    color: rgb(55, 33, 33);
}

/* .logo>p>span{
    color: rgb(217, 161, 39);
} */
.menu{
    display: flex;
    gap: 20px;
    list-style: none;
}
.menu>li>a{
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.menu>li>a:hover{
    color: rgb(0, 0, 0);
}

.whatsapp-floating{
    position: fixed;
    right: 20px;
    bottom: 20px;
}
/* banner css start here  */

#banner{
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

#banner>img{
    height: 32%;
    width: 11.5%;
    border-radius: 50%;
    box-shadow: 2px 3px 10px grey;
}

#banner>h2{
    font-size: 60px;
}

#banner>h3{
    font-size: 18px;
}

.buttons{
    display: flex;
    gap: 20px;
}
button{
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 24px;
    background-color:rgb(25, 43, 240);
    border: 0;
}
button>a{
    text-decoration: none;
    color: white;
}

.firstBtn{
    color: white;
}


.secondBtn{
    background-color: rgb(25, 43, 240);
}

/* about section  */

.about{
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
#about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.education{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 40%;
    border-radius: 20px;
}

.degree{
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-shadow: 2px 3px 4px gray;
    width: 100%;
    border-radius: 20px;
}

.skills>i{
    font-size: 100px;
}

.skills>i:hover{
    transform: scale(1.3);
    color: red;
    cursor: pointer;
}


#projects{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    max-width: 1180px;
    margin: auto;
    gap: 2rem;
}
h2{
    text-align: center;
    margin: 2rem 0rem;
}
.project{
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 2px 3px gray;
    border-radius: 20px;
}
.project>img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
}
.project:hover{
    transform: scale(1.01);
    box-shadow: 2px 3px 15px green;
}

#contact{
    margin: 100px auto;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    padding: 50px 0px;
    border-radius: 20px;
    gap: 10px;
    box-shadow: 2px 3px 4px gray;
}

.socialMedia>a{
    color: black;
    text-decoration: none;
    font-size: 24px;
}

.socialMedia>a>i:hover{
    color: green;
}

footer{
    text-align: center;
    padding: 20px 0px;
    background-color: green;
    color: white;
    font-size: 24px;
}
@media screen and (max-width:576px){
    header{
        flex-direction: column;
    }
    section{
        margin: 10px 20px;
    }
    .education{
        width: 80%;
    }
    #about{
        flex-direction: column;
    }
    #projects{
        grid-template-columns: repeat(1,1fr);
    }
    #banner>img{
        margin-top: 200px;
    }
}







/*Mobile devices*/
@media screen and (max-width:576px){
    header{
        flex-direction: column;
        gap: 15px;
    }
    .menu{
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    #banner{
        height: auto;
        padding: 40px 10px;
    }
    #banner>img{
        margin-top: 100px;
        width: 40%;
        height: auto;
    }
    #banner>h2{
        font-size: 32px;
        text-align: center;
    }
    #banner>h3{
        font-size: 16px;
        text-align: center;
    }
    #about{
        flex-direction: column;
        gap: 40px;
    }
    .education{
        width: 90%;
    }
    #projects{
        grid-template-columns: repeat(1,1fr);
        padding: 0 10px;
    }
    footer{
        font-size: 16px;
    }
}

/*Tablets*/
@media screen and (min-width:577px) and (max-width:768px){
    header{
        flex-direction: column;
        gap: 20px;
    }
    .menu{
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    #banner{
        height: auto;
        padding: 30px 15px;
    }
    #banner>img{
        width: 25%;
        height: auto;
    }
    #banner>h2{
        font-size: 40px;
    }
    #projects{
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
    }
    #about{
        flex-direction: column;
        gap: 40px;
    }
}

/*Laptops*/
@media screen and (min-width:769px) and (max-width:1024px){
    header{
        padding: 15px 25px;
    }
    .menu{
        gap: 15px;
    }
    #banner>img{
        width: 15%;
        height: auto;
    }
    #banner>h2{
        font-size: 48px;
    }
    #projects{
        grid-template-columns: repeat(2,1fr);
        gap: 25px;
    }
    #about{
        flex-direction: row;
        gap: 60px;
    }
}

/*Large screens*/
@media screen and (min-width:1025px){
    #banner>img{
        width: 10%;
        height: auto;
    }
    #projects{
        grid-template-columns: repeat(3,1fr);
    }
}
