/*
    1. In general, 100% font size equal to 12 to 16px. i.e 16px=100% default font size.
    2. what if we want to 10px as default font size,then
    3. 1px have (100/16)% font size i.e 1px=(100/16)=6.25%
    4. Now 10px have font size 6.25*10=62.5%
    5. font size:62.5%;
    6. font size:10px;
    7. font-size:1rem;     i.e 1rem = 10px

    all these are equal (font-size:62.5%;  here font size in percentage ),(font size:10px;  here font size in pixel) ,
    (font-size:1rem;  here font size in rem)

*/


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400&family=Roboto&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-family: 'Roboto', sans-serif;

}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    background-color: rgba(0, 0, 0, 0.986);
    color: white;
}

/*--------------CSS for Heder section--------------------*/
#header {
    width: 100vw;
    height: 100vh;
    background-image: url(images/lav15.jpg);
    background-position: center;
    background-size: cover
}

nav ul li {
    display: inline-block;
    /* ye li item ko ek line mai align krne ke liye */
    padding-left: 7rem;
    /* to craete space between li item */
    margin-top: 3rem;
    /* give margin to li item from top*/
    position: relative;
}

nav ul li a {
    text-decoration: none;
    /* removes underline decoration from text., By default, links in HTML are underlined to indicate that they are clickable, but you can remove this decoration with the text-decoration property.*/
    color: rgb(246, 235, 28);
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.3rem;
    /* to craete space between underline link and text */
}

/*------ define underline link hover effect ---------*/

nav ul li a::before {
    content: '';
    left: 0;
    bottom: 0;
    width: 0%;
    height: 0.25rem;
    background-color: darkred;
    position: absolute;
}

nav ul li a:hover::before {
    width: 100%;
    transition: width 0.15s ease-out;
    /*transition: [property] [duration] [timing-function] [delay];  , here property such as color,backgound-color,width,height etc*/
}

.introduction {
    font-family: 'Poppins', sans-serif;
    font-family: 'Roboto', sans-serif;
    padding-left: 5vw;
    padding-top: 15vh;
    font-size: 5rem;
    font-weight: bold;
    color: aliceblue;
}

#name {
    color: red;
}

#about_text {
    font-size: 2.5rem;
    font-weight: 500;
    font-family: sans-serif;
    color: aquamarine;
}


/*  ------- CSS for About section--------   */

.about_container {
    margin: 3rem;
    padding: 1rem;
}

.about {
    display: flex;
    justify-content: space-around;
    position: relative;
}

.col1 {
    display: flex;
    width: 55vw;
    height: auto;
}

.col1 img {
    margin-top: 2rem;
    width: 500px;
    max-height: 600px;
}

@media (min-width:1030px) and (max-width:1260px) {
    .col1 img {
        width: 400px;
    }
}

@media (min-width:850px) and (max-width:1038px) {
    .col1 img {
        width: 350px;
        max-height: 450px;
    }
}

.col2 {
    width: 60%;
    height: auto
}

.col1 img {
    position: absolute;
    left: 5%;
    height: 100%;
    border-radius: 2rem;
}

.col2 h1 {
    color: aquamarine;
    font-weight: 500;
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.col2 p {
    font-size: 1.5rem;
}

.education {
    padding-top: 2rem;
    font-size: 1.5rem;
}

.education h2 {
    color: brown;
}

.edu-container {
    margin-top: 2rem;
    padding-left: 3rem;
    border-left: 0.2rem solid white;
}

.edu-container .box {
    width: 35vw;
    height: auto;
    border: 0.1rem solid #eaeaea;
    margin-bottom: 2rem;
    /* to create space between two box*/
    cursor: pointer;
    background-color: #ffffff;
    color: #000;
    border-radius: 1.5rem;
    padding: 1.5rem;
    position: relative;
}


.edu-container .box p {
    margin-top: 0.7rem;
    /* to create space h2 tag and paragraph*/
    font-size: 1.8rem;
    font-weight: 500;
}

.edu-container .box::before {
    /* Here before and after both work same*/
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    right: 105%;
    top: 0;
    background-color: rgb(26, 223, 226);
}

.edu-container .box:hover {
    box-shadow: 0.3rem 0.3rem 1rem #ccc;
    transform: scale(1.009);
    transition: 0.2s;
}

.edu-container .box li {
    margin-top: 1rem;
}



@media(max-width:1200px) {
    html {
        font-size: 55%;
    }
}

/* --- from 0 to 1050px width ---- */
@media(max-width:1050px) {
    html {
        font-size: 45%;
    }
}


/* --- from 0 to 880px width ---- */

@media(max-width:880px) {

    .col1 img {
        display: none;
    }

    .about {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .edu-container .box::before {
        right: 106%;

    }
}

/* --- from 400px to 700px width ---- */

@media(min-width:400px) and (max-width:630px) {
    .edu-container .box::before {
        right: 109%;

    }
}

/* --- from 0 to 400px width ---- */

@media(max-width:400px) {

    html {
        font-size: 35%;
    }

    .edu-container .box::before {
        right: 110%;

    }

}

/*   ------------------- CSS for My skills section ------------------------- */


.skill_container {
    width: 100%;
    height: auto;
    color: white;

}

.skill_container h1 {
    margin-top: 6rem;
    margin-bottom: 4rem;
    font-size: 3rem;
    color: aquamarine;
    font-weight: 500;
    display: flex;
    justify-content: center;
}

.skill {
    padding: 3rem;
    display: flex;
    justify-content: space-evenly;
}

.skill .col {
    width: 30vw;
    height: auto;
    border: 2px solid rgb(194, 215, 219);
    border-radius: 10%;
    background-color: black;
}

.skill .col h2 {
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

.skill .col:hover {
    box-shadow: 0.4rem 0.4rem 1rem #52d2b9;
    transform: scale(1.009);
    transition: 0.2s;
}

.dev_item {
    position: relative;
    margin-top: 5rem;
}

.dev_item .iconimg {
    display: flex;
    width: 5rem;
    height: 5rem;
}

/*-------Web development mai html section-------------*/

.dev_item .html {
    padding: 1rem;
    margin: 1rem 0rem;
    display: grid;
    grid-template-columns: 20% 73%;
}

.skill_bar {
    padding-top: 0.6rem;
}

.skill_bar .info {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
}

.skill_bar .bar {
    width: 100%;
    height: 8px;
    background-color: white;
    border-radius: 25px;
    margin-top: 5px;
    position: relative;
}

.skill_bar .html_bar span {
    width: 80%;
    height: 100%;
    position: absolute;
    background-color: rgb(89, 166, 29);
    border-radius: 25px;
}

.skill_bar .css_bar span {
    width: 70%;
    height: 100%;
    position: absolute;
    background-color: rgb(89, 166, 29);
    border-radius: 25px;
}

.skill_bar .js_bar span {
    width: 60%;
    height: 100%;
    position: absolute;
    background-color: rgb(89, 166, 29);
    border-radius: 25px;
}

.skill h2 {
    color: rgba(213, 79, 91, 0.948);
    font-size: 2.5rem;
}

/* ---------media query for making skill section responsize---------*/

@media(max-width:600px) {
    .skill {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .skill .col {
        width: 80%;
        margin-bottom: 2rem;
    }

    .skill_container h1 {
        margin-bottom: 8rem;
    }
}

/* --------------- Media query for webdevlopment container ----------------
@media(min-width:1050px) and (max-width:1496px){

    .dev_item{
        margin-top: 1.5rem;
     }
     
     .dev_item .iconimg{
         width: 3.5rem;
         height: 3.5rem;
     }
  
   .dev_item .html{
        padding: 0.5rem;
   }
} */




/* -------------------- CSS for Language----------------------  */

.lang-container {
    margin-top: 4rem;
    padding-left: 1rem;
    display: block;
}

.lang-container .row {
    display: flex;
    justify-content: space-evenly;
    padding-left: 2rem;
    padding-right: 3rem;
}

.outer-circle-bar {
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #59a61d;
}

.inner-circle-bar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ccc;
    /*---- This is for puting value at center---*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #000;
}

@media(min-width:600px) and (max-width:900px) {
    .outer-circle-bar {
        width: 90px;
        height: 90px;
    }

    .inner-circle-bar {
        width: 70px;
        height: 70px;
    }
}

.inner-circle-bar span {
    font-size: 2rem;
    font-weight: bold;
}

.inner-circle-bar .text {
    color: #132be4;
}

/* ---------------------More---------------- */
.More-text {
    padding-top: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
}

.More-text ul li {
    margin-left: 5rem;
    margin-bottom: 1rem;

}

.More-text ul li a {
    color: rgb(184, 222, 128);
    margin-left: 1rem;
}


/* ----------------------------- My Project --------------------------------*/

.project-container {
    display: flex;
    flex-direction: column;
    margin: 7rem;
}

.project-container .header {
    display: flex;
    font-size: 3rem;
    color: aquamarine;
    font-weight: 500;
    justify-content: center;
    align-items: center;
    margin-bottom: 8rem;
}

.project {
    display: flex;
    justify-content: space-around;
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 39rem;
    height: 39rem;
    border-radius: 5%;
}

.project-text {
    position: absolute;
    display: flex;
    border-radius: 5%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 0%;
    left: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgb(220, 215, 204), rgb(24, 202, 21));
}

.project-text p {
    padding-left: 2.2rem;
    font-size: 1.7rem;
    color: black;
}

.project-text .p2 {
    padding-left: 5rem;
}

.project-text h3 {
    font-size: 3rem;
    color: rgb(224, 48, 48);
    margin-bottom: 3rem;
}

.project-text a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: #dae48e;
    text-decoration: none;
    font-size: 2rem;
    margin-top: 2rem;
}


.project-img:hover {
    transform: scale(1.04);
    transition: all 0.5s ease;
}

.project-img:hover .project-text {
    height: 100%;
    transition: height 0.5s ease;
}

/* ----------Make project section responsive-------------- */

@media(max-width:700px) {
    .project {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .project1 {
        margin-bottom: 5rem;
    }
}

/* ------------------------------------ Contact Section ------------------------------------*/
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Divide the container into 2 colmun*/
    margin-top: 15rem;
}

.contact .left {
    display: flex;
    flex-direction: column;
    margin: 8rem;
    margin-top: 0;
}

/* -----  Css on form ---------*/
.contact form input,
form textarea {
    margin-bottom: 1rem;
    margin-left: 5rem;
    height: 5rem;
    width: 35vw;
    border-radius: 1rem;
    outline: none;
    background-color: #3939349f;
    color: white;
}

.contact .left .text {
    height: 15rem;
}

/*-------------------Contact right section--------------*/

.contact .right {
    display: flex;
    flex-direction: column;
}

.contact .right h3 {
    display: flex;
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: #dae48e;
}

.social-icon i,
.right i {
    margin-right: 1.3rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #81f5db;
}

.right {
    font-size: 1.5rem;
}

.social-icon {
    display: flex;
    flex-direction: row;
    margin-top: 5rem;
}

.social-icon a {
    text-decoration: none;
    /*To remove extra styling on link*/
}

.social-icon a i {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: #81f5db;
    color: black;
    font-size: 2.4rem;
    transition: transform 0.5s ease-out;
    text-decoration: none;
}

.btn-left {
    margin-left: 5.5rem;
    margin-bottom: 3rem;
}

.btn {
    width: 15rem;
    height: 5rem;
    border-radius: 1rem;
    color: white;
    background-color: red;
    margin-top: 2rem;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease-out;
}

/* ---- Hover effect on social icon------ */
.btn:hover {
    background-color: rgb(117, 222, 42);
    color: #000;
}

.social-icon :hover {
    transform: translate(0, -0.2rem);
}

@media(max-width:460px) {
    .contact .right {
        padding-right: 5rem;
    }
}

#submit-msg {
    margin-left: 6rem;
    margin-top: -2rem;
    font-size: 1.5rem;
    color: rgb(135, 201, 117);
}