*{
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}
body{
    margin: 0;
    padding: 0;
    height: 100vh;
    text-align: center;
    align-items: center;
    background-color: #f7f7f7;
}

html {
  scroll-behavior: smooth;
}


section{
    margin-top: 7rem;
    scroll-margin-top: 150px;
}

.navs{
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position:fixed;
    padding:0;
    min-height: 60px;
    width: 100%;
    margin: 0;
    top:0;
    background-color: transparent;
    box-shadow: none;
}
.navs.scrolled{
    background-color: #fff8f8;
    box-shadow: 0 4px 5px #ffff 
}
#menu-text{
    display: none;
}
#menu-icon{
    display: none;
}
.nav-link{
    margin-right: 30px;
    text-decoration: none;
    color: black;
    font-size: 20px;
}
.nav-link:hover{
    color: #2626b1;
    text-decoration: underline;
    text-decoration-color: red;
    text-decoration-style: solid;
    text-decoration-thickness: 3px;
}
.home-box{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
    padding: 1rem;
}
.my-logo h1{
    font-weight: 800;
    text-shadow: 2px 2px 4px black;
    margin-left: 20px;
}
#c{
    color: blue;
}
#n{
    color: red;
}
.intro{
    margin-left: 1rem;
    text-align: left;
    padding: 0 2rem;
}
.greet{
    font-size: 3rem;
    font-weight: 800;

}
.introduce{
    font-size: 6rem;
    color:#480505;
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    animation: textWrite 2s ease-in ;
    animation-iteration-count: 3;
}
@keyframes textWrite {
    from{
        width: 0%;
    }
    to{
        width: 100%;
    }
}
.short-desc{
    font-size: 1.5rem;
    font-weight: 100;
    text-align: justify;
}
.picture-me{
    margin: 30px;
    padding: 0 20px;
}
.my-picture img{
    height: 500px;
    width: auto;
    border: 1px solid black;
    border-radius: 10px;
    filter: grayscale(50%);
    transition: transform 0.6s ease-in-out, filter 0.6s ease-in-out;
}

.my-picture img:hover{
    transform: scale(1.05);
    transition: 0.5s;
    filter: grayscale(0);
}
.about-me{
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 3rem;
}
.my-profile-pic{
    position:relative;
    margin: 3rem;
}
.my-profile-pic img{
    height: 500px;
    border: 1px solid black;
    border-radius: 10px;
}
.my-profile-pic img:hover{
    transform: scale(1.05);
    transition: 0.5s ease-in-out;
}
.my-info{
    display: flex;
    flex-direction: column;
    padding: 0 2rem;

}
.profile-text{
    margin: 5em 0px;
}
.name{
    font-weight: 550;
    font-size: 4rem;
    color: #000000;
    margin: 1rem 0;
}
.bio{
    margin: 1rem 0;
    font-size: 1.5rem;
    text-align: justify;
}
.front-name{
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: red;
}
.skill{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin:auto;
}
.skill-set{
    background: #f7f7f7;
    height: auto;
    width: auto;
    text-align: center;
    padding: 1rem;
    padding-bottom: 0.5rem;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out, filter 0.6s ease-in-out;
    margin: auto;
}
.skill-set:hover{
    background-color: #f7f7f725;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: scale(1.3);
    transition: 0.5s ease-out;
    box-shadow: 3px 3px 10px rgb(223, 208, 208);
    cursor: pointer;
}
.skill-set h1{
    font-size: 20px;
    font-weight: 100;
    cursor: pointer;
}
.skill-set img{
    height: 40px;
    width: auto;
}
#projects{
    background-color: rgb(237, 237, 237);
    padding: 4rem 0;
}
.parent-box{
    position: relative;
    display:flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0px;
}

.box-child{
    position: relative;
    margin: auto;
    width: 40%;
    height: 250px;
    font-size: 20px;
    border: 1px solid;
    text-align: justify;
    transition: transform 0.6s ease-in-out;
}

.box-child img{
    display: block;
    height: 100%;
    width: 100%;
}
.box-child p{
    color: #010000;
    display: block;
    position: absolute;
    opacity: 0;
    top: 0;
    margin: 20px;
    word-spacing: 0%;
}
.box-child:hover p{
    opacity: 1;
    transition: 0.5 ease;
}
.box-child:hover img{
    opacity: 0.1;
}
.box-child:hover{
    z-index: 1;
    transform: scale(1.03);
    transition: 0.5s ease ;
}
#certificate{
    width: 100%;
    padding: 5rem 0;
}
#proj-btn{
    margin: auto;
}
.certification-text{
    font-weight: 600;
    font-size: 3rem;
    padding: 2rem 3rem;

}
#previous, #next{
    width: 80px;
    height: 30px;
    margin: auto;
    padding: 1px;
    font-size: larger;
    border-radius: 5px;
    border: none;
    background-color: #ff0000;
    text-align: center;
    font-weight: 800;
    color: white;
}
.certification-text span{
    color: red;
}
.cert-box{
    display: flex;
    flex-wrap: nowrap;
    overflow: auto;
    margin: 0;
    gap: 40px;
    padding: 1rem;
}
.certs{
    margin: 10px auto;
    border: 1px solid;
    height: auto;
    padding: 0;
    transition: transform 0.6s ease-in-out;
}
.certs:hover{
    transform: scale(1.1);
}

.certs img{
    height: 400px;
    width: auto;
}

.contact-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    width: 100%;
}
.contact-container.no-scroll{
    position: fixed;
    width: 100%;
    top:0;
    overflow: auto;
}

.submit-form{
    width: 50%;
    margin: 0;

}
form{
    width: 80%;
    margin: auto;
    display: grid;
    grid-column: 10;

}
label{
    font-weight: 100;
    font-size: 20px;
    text-align: left;
}
#name,#user-email{
    padding: 2px 0 0 6px;
    margin: 0 0 30px 0;
    width: 90%;
    height: 40px;
    border-radius: 4px;
    font-size: 20px;
}
#message-box{
    padding: 5px 0 0 6px;
    height: 300px;
    width: 90%;
    border-radius: 4px;
}
button{
    margin-top: 20px;
    height: 40px;
    width: 90px;
}
.contact-information{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #e9c3c375;
    padding: 110px 70px;
    margin:0;
    width: 50%;
    height: 100%;
}
.contact-parent-box{
    width: 100%;
}

.connect-text{
    padding: 0;
    font-size: 3rem;
    font-weight: 800;
    color: rgb(1, 0, 0);
}

.contact-card{
    display: flex;
    align-items: center;
    gap: 10px;
    width: 60%;
    padding: 0;
    margin: 10px 0;
}
.contact-icon img{
    height: 50px;
}
.contact-text{
    text-align: left;
}
.contact-text h1{
    font-weight: 300;
    font-size: 1.5rem;
}
.msg-box{
    z-index: 1000;
    display: none;
    position:fixed;
    width: 30%;
    height: 30%;
    background-color: #faf0f0;
    margin: auto;
    top: 40%;
    left: 35%;
    border: 2px solid;
}
.hdr{
    display:flex;
    background-color: #000000;
    
}
.hdr button{
    width: 10%;
    height: 10%;
    margin: 10px;
    margin-left: auto;
}
.cnt{
    display: flex;
    padding: 20px;
    height: 50%;
    width: 90%;
    margin: auto;
}
.cnt p{
    font-size: 20px;
    word-spacing:2%;
}
@media only screen and (max-width: 600px){

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

    /* NAVBAR */
    .navs{
        height: 60px;
        padding: 0 10px;
        align-items: center;
    }

    .my-logo img{
        margin-left: 10px;
        height: 45px;
    }

    .menu{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 40px;
        margin-right: 15px;
        border-radius: 6px;
        border: 2px solid red;
        background-color: #170202;
        cursor: pointer;
    }

    #menu-icon{
        color: white;
        font-size: 24px;
        display: flex;
    }

    /* NAV LINKS DROPDOWN */
    .nav-links{
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: white;
        display: none;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 999;
    }

    .nav-links.active{
        display: flex;
        animation: drop 0.3s ease;
    }

    .nav-link{
        display: block;
        padding: 15px;
        font-size: 18px;
        margin: 0;
        color: black;
    }

    .nav-link:hover{
        background: #f2f2f2;
    }

    @keyframes drop {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .home-box{
        display: flex;
        flex-wrap: wrap;
        padding: 1rem;
        text-align: center;
    }

    .intro{
        margin: auto;
        padding: 0 1rem;
    }

    .greet{
        font-size: 1.5rem;
    }

    .introduce{
        font-size: 2.2rem;
        color: #211e1e;
        white-space: normal;
    }

    .short-desc{
        font-size: 1rem;
    }

    .picture-me{
        margin: auto;
        padding: 10px;
    }

    .my-picture img{
        height: 250px;
        width: auto;
    }

    /* ABOUT SECTION */
    .about-me{
        display: flex;
        flex-wrap: wrap;
        text-align: center;
        gap: 2rem;
    }
    .my-profile-pic{
        margin: auto;
    }
    .my-profile-pic img{
        height: 250px;
    }

    .name{
        font-size: 2rem;
        text-align: center;
    }

    .bio{
        font-size: 1rem;
        text-align: justify;
        padding: 0 10px;
    }

    /* SKILLS */
    .skill{
        justify-content: center;
        gap: 8px;
    }

    .skill-set h1{
        font-size: 12px;
    }

    .skill-set img{
        height: 30px;
    }

    /* PROJECTS */
    .parent-box{
        display: grid;
        gap: 15px;
    }

    .box-child{
        width: 90%;
        height: 180px;
    }

    .box-child p{
        font-size: 12px;
        margin: 10px;
    }

    /* CERTIFICATES */
    .certification-text{
        font-size: 2rem;
        text-align: center;
    }

    .cert-box{
        gap: 15px;
    }

    .certs img{
        height: 180px;
        width: auto;
    }

    /* CONTACT */
    .contact-container{
        display: grid;
        width: 100%;
    }

    .submit-form{
        width: 100%;
    }

    form{
        width: 90%;
    }

    #name, #user-email, #message-box{
        width: 100%;
        font-size: 16px;
    }

    button{
        width: 100%;
        margin-left: 0;
    }

    .contact-information{
        width: 100%;
        padding: 20px;
        display: grid;
    }

    .contact-card{
        width: 100%;
    }

    .msg-box{
        width: 80%;
        left: 10%;
        top: 30%;
        height: auto;
    }

    .cnt p{
        font-size: 14px;
    }

    /* FOOTER */
    footer p{
        font-size: 12px;
    }
}

.contact-footer{
    display: block;
    position:absolute;
    left: 0;
    bottom: 0.1;
    text-align:left;
    width: min(50%,200px);
    padding: 10px 5px;
    gap: 5px;
}
.contact-footer img{
    height: 20px;
    margin: 0 10px;
}
footer p{
    text-align: center;
    padding-top: 20px;
}