/* Reset CSS */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "poppins", "sans-serif";
}

/* Global Variable */

:root {
    scroll-behavior: smooth;

  --sideBColor: #040b14;
  --themeColor: #00a78e;
  --iconBColor: #2c2f3f;
  --textColor: #525252;
  --bgColor: #f7f7f7;
}

/* *=================== HEADER START ================= */

/* ----Desktop view---- */
header{
    height: 100vh;
    width: 300px;
    padding: 15px 30px 75px 30px;
    background-color: var(--sideBColor);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 99;
    overflow-y: auto;
    transition: 0.3s ease-in;
}

header .profile{
    text-align: center;
    margin-block: 10px;
}

header .profile img{
    width: 200px;
    height: 200px;
    border: 10px solid var(--iconBColor);
    border-radius: 50%;
    /* box-shadow: 0px 0px 20px rgba(170, 170, 170, 0.417); */
    transition: all 0.3s ease-in-out;
}

header .profile img:hover{
    transform: scale(1.1);
}

header .profile h1{
    color: white;    
    font-weight: 600;   
    margin-block: 20px;
    /* letter-spacing: 2px; */
    font-size: 1.7rem;
    transition: 0.3s ease-in-out;
}

header .profile h1:hover{
    transform: scale(1.1);
}

/* --------- */

header .profile .social-icons ul{
    display: flex;
    list-style: none;
    justify-content: center;
    /* gap: 20px; */
}

header .profile .social-icons ul li a{
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: var(--iconBColor);
    border-radius: 50%;
    margin-inline: 10px;
    line-height: 42px;
    text-align: center;
    transition: all 0.3s ease;
}

header .profile .social-icons ul li a:hover{
    background-color: blue;
}

header .profile .social-icons ul li a i{
    transition: transform 0.3s;
}

header .profile .social-icons ul li a:hover i{
    transform: scale(1.3);
}

/* --------- */

header nav {
    margin-top: 40px;
}

header nav ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: 20px;
    padding-left: 15px;
}

header nav ul li a{
    text-decoration: none;
    color: white;
    font-size: 1.6em;
}

header nav ul li a:hover i{
    color: var(--themeColor);
}

header .footer{
    color: white;
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 300px;
    /* padding-bottom: 10px; */
    background-color: var(--sideBColor);
    font-size: 14px;
    padding: 15px;
    transition: all 0.3s ease-in;
}

header .footer p span{
    font-size: 1.1rem;
    /* letter-spacing: 2px; */
}

#menu-btn{
    position: fixed;   
    right: 15px;
    top: 15px;
    background-color: var(--iconBColor);
    color: white;
    padding: 12px 14px;
    border-radius: 50%;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: none;
    z-index: 999;
}

#menu-btn:hover{
    background-color: var(--themeColor);
    cursor: pointer;
}

/* ---- Mobile View ---- */

@media only screen and (max-width: 1050px) {

    header, header .footer{
        left: -300px;
    }

    #menu-btn{
        display: block;
    }

}

.mobile-nav-active header, .mobile-nav-active header .footer{
    left: 0px;
}

/* *=================== HEADER END ================= */

/* *<**********************************************************************> */

/* *================== Main Section Start ================= */

main{
    margin-left: 300px;
    /* padding-left: 10px; */
    /* background-color: var(--bgColor); */
    transition: 0.3s;
}

/* *<------------------------ Home Section Start--------------->  */

#home{
    height: 100vh;
    width: 100%;
    background-image: url(./background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0px -350px;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    padding: 70px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}   

/* overlay start */

#home::before{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #040b146a;
}

/* overlay End */

#home .home-row{
    z-index: 1;
}

#home .home-row h1{
    color: white;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 70px;
}

#home .home-row p{
    color: whitesmoke;   
    font-size: 30px;
    font-weight: 500;
}

#home .home-row p span{
    border-bottom: 5px solid var(--themeColor);
}

/* ------ Mobile View ------ */

@media only screen and (max-width: 1050px) {
    
    main{
        margin-left: 0px;
    }

    #home{
        padding: 30px;
        background-position: 0px 0px
    }

    #home .home-row h1{
        font-size: 2.5rem;
        line-height: 50px;
    }

    #home .home-row h1 br{
        display: none;
    }

    #home .home-row p{
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 680px){
    #home{
        background-position: -100px 0px
    }
}

@media only screen and (max-width: 440px){
    #home{
        background-position: -200px 0px
    }
}

@media only screen and (max-width: 380px){
    #home{
        background-position: -130px 0px
    }
}

@media only screen and (max-width: 360px){
    #home{
        background-position: -230px 0px
    }

    #home .home-row h1{
        font-size: 1.9rem;
    }

    #home .home-row p{
        font-size: 1.2rem;
    }
}

@media only screen and (max-height: 800px){
    #home{
        background-position: 0px 0px
    }
}

/* *<------------------------ Home Section End--------------->  */

/* *<**********************************************************************> */

/* *<-------------------- About Section Start -----------------> */

#about{
    padding: 0px 20px;
    width: 100%;
    /* height: 100vh; */
    /* background-color: aliceblue; */
}

/* about heading */
.common-header .headings{
    width: 100%;
    /* height: 50px; */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-block: 20px;
    /* text-shadow: 1px 1px 10px rgba(60, 60, 60, 0.444); */
}

.common-header .devider{
    height: 6px;
    width: 120px;
    background-color: var(--themeColor);    
    border-radius: 10px;
}

.common-header .headings .sub-heading{
    font-size: 2.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ----------- Objective-Part ----------- */

#about .about-me{
    width: 100%;
    /* border: 3px solid #52525256; */
    padding: 20px;
    border-radius: 10px;
    background-color: aliceblue;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    display: flow-root;
}

#about .about-me img{
    /* width: 100%; */
    width: 300px;
    float: left;
    margin: 12px 20px 0px 0px;
    box-shadow: rgba(0, 0, 0, 0.1) 4px 4px 12px;
}

#about .about-me .about-me-text p{
    font-size: 1.6rem;
    line-height: 1.5;
    text-align: justify;
    letter-spacing: 2px;
}

#about .about-me .about-me-text p q{
    color: var(--textColor);
    font-size: 1.5rem;
    display: block;
    padding-top: 20px;
}

@media only screen and (max-width: 1050px){

    /* Heading */
    .common-header .headings{
        gap: 20px;
    }

    .common-header .headings .devider{
        height: 8px;
        width: 80px;
        border-radius: 10px;
    }

    .common-header .headings .sub-heading{
        font-size: 1.8rem;
    }
    
    #about .about-me{
        text-align: center;
    }

    #about .about-me img{
        margin: 0;
        float: unset;
    }

    #about .about-me .about-me-text{
        clear: both;
    }

    #about .about-me .about-me-text p{
        font-size: 1.4rem;
        line-height: 1.6;
    }

}

@media only screen and (max-width: 440px){
    
    .common-header .headings .sub-heading{
        font-size: 1.7rem;
    }

    .common-header .headings .devider{
        width: 40px;
    }

    #about .about-me{
        padding: 10px;
        border-radius: 7px;
    }

    #about .about-me .about-me-text p{
        font-size: 1rem;
    }

    #about .about-me .about-me-text p q{
        font-size: 0.9rem;
        padding-top: 15px;
    }

}

@media only screen and (max-width: 380px){
    #about .about-me img{
        width: 250px;
    }
}

/* <-------- Know-More Heading --------> */

#about .know-more-container{
    width: 100%;
    margin-block: 40px;
} 

#about .know-more-container .know-more{
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    /* box-shadow: 2px 2px 10px black; */
}

#about .know-more-container .know-more span{
    color: var(--themeColor);
    box-shadow: 0px 6px 10px -10px black;
    padding-inline: 10px;
}

/* <----------- About Column -----------> */

#about .about-col{
    width: 100%;
    margin-block: 20px;
    
    /* Grid layout */
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

#about .about-col .about-cart{
    border-radius: 10px;
    padding: 20px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    background-color: aliceblue;
}

/* <----------- about cart headings ---------> */

#about .about-col .about-cart > h2{
    font-size: 2rem;
    font-weight: 600;
    /* margin-block: 20px; */
    text-transform: uppercase;
    /* text-shadow: 0px 0px 10px rgba(60, 60, 60, 0.444); */
}

#about .about-col .about-cart h2 i{
    color: var(--themeColor);
}

/* <---------- common header divider -----> */

#about .about-col .about-cart .divider{
    height: 5px;
    width: 100px;
    background-color: var(--themeColor);
    border-radius: 10px;
    /* margin-left: 55px; */
    margin-block: 15px;
}

#about .about-col .about-cart .child{
    width: 100%;
    margin-block: 20px;
    /* padding-left: 55px; */
    border-left: 4px solid var(--themeColor);
    padding-left: 20px;
    position: relative;
}

#about .about-col .about-cart .child::before{
    content: '';
    height: 13px;
    width: 13px;
    border: 4px solid var(--themeColor);
    background-color: aliceblue;
    border-radius: 50%;
    position: absolute;
    left: -12px;
}

#about .about-col .about-cart .child h3{
    font-size: 1.6rem;
    font-weight: 600;
}

#about .about-col .about-cart .child h4{
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--textColor);
    font-style: italic;
    background-color: #1cebcc5b;
    display: inline-block;
    padding-inline: 5px;
    border-radius: 6px;
    margin-block: 10px;
}

#about .about-col .about-cart .child p, #about .about-col .about-cart .sub-para{
    font-size: 1.3rem;
    text-align: justify;
}

#about .about-col .about-cart .internship-card ul{
    margin-left: 25px;
    text-align: justify;
}

#about .about-col .about-cart .internship-card ul li{
    margin-block: 20px;
    font-size: 1.3rem;
}


/* <------------------ Skills Container Design -------------> */

#about .about-col .about-cart .skill-container{
    width: 100%;
    margin-block: 40PX;
    /* grid layout */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px;
}

#about .about-col .about-cart .skill-container .skill-box{
    width: 100%;
}

#about .about-col .about-cart .skill-container .skill-box .skill-info{
    display: flex;
    justify-content: space-between;
}

#about .about-col .about-cart .skill-container .skill-box .skill-info h2{
    font-size: 1.5rem;
    font-weight: 600;
}

#about .about-col .about-cart .skill-container .skill-box .skill-outer-row{
    width: 100%;
    height: 10px;
    background-color: lightgrey;
    border-radius: 10px;
    margin-block: 10px;
}

#about .about-col .about-cart .skill-container .skill-box .skill-outer-row .skill-inner-row{
    height: 100%;
    background-color: var(--themeColor);
    border-radius: 12px;
}


/* Mobile View */

@media only screen and (max-width: 1050px){
    
    #about .about-col{
        margin-block: 30px;
        
        /* Grid layout */
        grid-template-columns: repeat(1, 1fr);
    }

    #about .about-col .about-cart .skill-container{
        grid-template-columns: repeat(1, 1fr);
    }

    #about .about-col .about-cart .child::before{
        left: -12.5px;
    }
}

@media only screen and (max-width: 440px){

    #about .about-col .about-cart{
        border-radius: 7px;
    }

    #about .know-more-container .know-more{
        font-size: 1.6rem;
        font-weight: 500;
    }

    #about .about-col .about-cart .child h3{
        font-size: 1.3rem;
        font-weight: 500;
    }

    #about .about-col .about-cart h2{
        font-size: 1.8rem;
    }

    #about .about-col .about-cart .child h4{
        font-size: 1.2rem;
    }

    #about .about-col .about-cart .child p, #about .about-col .about-cart .sub-para{
        font-size: 1.1rem;
    }

    #about .about-col .about-cart .child::before{
        content: '';
        height: 11px;
        width: 11px;
        border: 3px solid var(--themeColor);
        left: -10.5px;
    }

    #about .about-col .about-cart .child{
        border-left: 3px solid var(--themeColor);
    }

}

/* *<-------------------- About Section End -------------------> */

/* *<**********************************************************************> */

/* *<-------------------- Portfolio Section Start -------------------> */

#project{
    padding: 20px 20px;
    width: 100%;
    background-color: var(--bgColor);
}

#project .project-text{
    width: 100%;
}

#project .project-text p{
    font-size: 1.5rem;
    line-height: 1.5;
    text-align: justify;
    letter-spacing: 2px;
    color: var(--textColor);
}

#project .porfolio-conatiner{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-block: 40px;
}

#project .porfolio-conatiner .portfolio-card{
    width: 100%;
    background-color: var(--bgColor);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

#project .porfolio-conatiner .portfolio-card img{
    width: 100%;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.758) 0px 10px 30px -12px;
}

#project .porfolio-conatiner .portfolio-card .portfolio-info{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--themeColor);
    border-radius: 12px;
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    transform: scale(0);
    transition: all 0.4s ease-in-out;
}

#project .porfolio-conatiner .portfolio-card:hover .portfolio-info{
    transform: scale(1);
}

#project .porfolio-conatiner .portfolio-card .portfolio-info h2{
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

#project .porfolio-conatiner .portfolio-card .portfolio-info p{
    font-size: 1.1rem;
    text-align: center;
}

#project .porfolio-conatiner .portfolio-card .portfolio-info a{
    text-decoration: none;
    color: var(--themeColor);
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: aliceblue;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;  
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#project .porfolio-conatiner .portfolio-card .portfolio-info a:hover{
    background-color: var(--sideBColor);
    color: aliceblue;
}

/* ------ Mobile View ----------- */

@media only screen and (max-width: 1280px){
   
    #project .porfolio-conatiner{
        grid-template-columns: repeat(2, 1fr);
    }

}

@media only screen and (max-width: 1050px){

    #project .porfolio-conatiner{
        grid-template-columns: repeat(1, 1fr);
    }

}

@media only screen and (max-width: 650px){

    #project .project-text p{
        font-size: 1.3rem;
        line-height: 1.5;
        letter-spacing: 1px;
        text-align: center;
    }

    #project .porfolio-conatiner .portfolio-card, #project .porfolio-conatiner .portfolio-card img{
        border-radius: 8px;
    }

    #project .porfolio-conatiner .portfolio-card .portfolio-info{
        border-radius: 8px;
    }

    #project .porfolio-conatiner .portfolio-card .portfolio-info h2{
        font-size: 1.3rem;
        font-weight: 500;
    }

    #project .porfolio-conatiner .portfolio-card .portfolio-info p{
        font-size: 1rem;
    }

    #project .porfolio-conatiner .portfolio-card .portfolio-info a{
        width: 35px;
        height: 35px;
        line-height: 35px;  
        font-size: 1rem;
    }

}
/* *<-------------------- Portfolio Section End -------------------> */

/* *<**********************************************************************> */

/* *<-------------------- Contact Section Start -------------------> */

#contact{
    padding: 20px 20px;
    width: 100%;
}

#contact .contact-container{
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-block: 60px;
}

#contact .contact-container .contact-info{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 50px 50px 50px 0px;
    flex-shrink: 0;
}

#contact .contact-container .contact-form{
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 50px;
    border: 3px solid var(--themeColor);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

#contact .contact-container .contact-info .contact-text{
    width: 100%;
    display: flex;
    gap: 25px;

    align-items: center;
}

#contact .contact-container .contact-info .contact-text .icon-box{
    width: 70px;
    height: 70px;
    border: 3px solid var(--themeColor);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#contact .contact-container .contact-info .contact-text .icon-box i{
    font-size: 1.8rem;
    color: var(--themeColor);
}

#contact .contact-container .contact-info .contact-text .icon-info h2{
    font-size: 2rem;
    font-weight: 600;
}

#contact .contact-container .contact-info .contact-text .icon-info p{
    font-size: 1.6rem;
    font-style: italic;
    color: var(--textColor);
}


/* --------- Contact-Form ---------------- */

#contact .contact-container .contact-form .form-group{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#contact .contact-container .contact-form .form-group input{
    width: 100%;
    height: 50px;
    font-size: 1.4rem;
    padding-inline: 20px;
}

#contact .contact-container .contact-form .form-group textarea{
    width: 100%;
    height: 240px;
    font-size: 1.4rem;
    padding: 20px;
}

#contact .contact-container .contact-form .form-group button{
    width: fit-content;
    height: 60px;
    align-self: flex-end;
    font-size: 1.4rem;
    padding: 10px 30px;
    background-color: var(--themeColor);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

#contact .contact-container .contact-form .form-group button:hover{
    background-color: var(--iconBColor);
    cursor: pointer;
}


/* ---- Last Footer ---- */

#contact footer{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 120px 0px 8px 0px;
}

#contact footer h2{
    font-style: italic;
    color: var(--themeColor);
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 5px rgba(62, 62, 62, 0.848);
    letter-spacing: 5px;
}

#contact footer .devider{
    background-color: black;
    height: 10px;
    width: 250px;
}

/* ----- Mobile View ----- */

@media only screen and (max-width: 1050px){
    
    #contact .contact-container{
        grid-template-columns: repeat(1, 1fr);
    }

    #contact .contact-container .contact-info{
        padding: 0px;
    }

    #contact footer h2{
        text-align: center;
    }
}

@media only screen and (max-width: 650px){
    
    #contact .contact-container .contact-info .contact-text{
        gap: 15px;  
    }

    #contact .contact-container .contact-info .contact-text .icon-info h2{
        font-size: 1.6rem;
        font-weight: 500;
    }
    
    #contact .contact-container .contact-info .contact-text .icon-info p{
        font-size: 1.2rem;
    }

    #contact .contact-container .contact-form .form-group{
        gap: 15px;
    }

}

@media only screen and (max-width: 550px){

    #contact footer{
        gap: 15px;
    }
    
    #contact footer h2{
        font-size: 1.5rem;    
        letter-spacing: 1px;    
    }
    
    #contact footer .devider{
        background-color: black;
        height: 8px;
    }
}

@media only screen and (max-width: 450px){

    #contact .contact-container .contact-info .contact-text .icon-box{
        width: 50px;
        height: 50px;
        border: 2px solid var(--themeColor);
    }
    
    #contact .contact-container .contact-info .contact-text .icon-box i{
        font-size: 1.4rem;
    }
    
    #contact .contact-container .contact-info .contact-text .icon-info h2{
        font-size: 1.3rem;
        font-weight: 500;
    }
    
    #contact .contact-container .contact-info .contact-text .icon-info p{
        font-size: 1rem;
    }

    #contact .contact-container .contact-form{
        padding: 15px;
        border: 1.8px solid var(--themeColor);
    }

    #contact .contact-container .contact-form .form-group{
        gap: 15px;
    }

    #contact .contact-container .contact-form .form-group input{
        height: 40px;
        font-size: 1.1rem;
        padding-inline: 10px;
    }

    #contact .contact-container .contact-form .form-group textarea{
        height: 200px;
        font-size: 1.1rem;
        padding: 10px;
    }

    #contact .contact-container .contact-form .form-group button{
        height: 40px;
        font-size: 1.1rem;
        padding: 5px 25px;
    }

}


/* *<-------------------- Contact Section End -------------------> */


/* *================== Main Section End ================= */

