@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');


/* Universl */
*{
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
    transition: all 0.5s ease;
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html::-webkit-scrollbar{
    width: 1.5rem;
}

html::-webkit-scrollbar-track{
    background-color: white;
}

html::-webkit-scrollbar-thumb{
    background-color: var(--blue);
    border-radius: 1rem;
}

/* Variables */
:root{
    --primary: #f0f7fb;
    --blue: #3452ff;
    --black: #0b0a0c;
    --white: #ffffff;
    --shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
    --border: 0.1rem solid var(--blue)
}


section{
    margin: 0 10%;
    text-align: center;
}

.btn{
    font-size: 3rem;
    padding: 1.5rem 2.5rem;
    background-color: var(--blue);
    border-radius: 1rem;
    color: var(--white);
    margin: 2rem 0;
    cursor: pointer;
}

.btn a{
    color: var(--white);
}

.btn a:hover{
    color: var(--blue);
}

.btn:hover{
    color: var(--blue);
    background-color: var(--white);
    border: var(--border);
}


.heading{
    color: var(--blue);
    margin: 10rem 0 5rem 0;
    font-size: 5rem;
    text-align: center;
    position: relative;
    display: inline-block;
    font-weight: 500;
}

.heading::before{
    content: '';
    position: absolute;
    bottom: -.5rem;
    left: 0;
    width: 80%;
    height: 0.4rem;
    background-color: var(--blue);

}


/* Navigation css Starts Here */
.navbar{
    position: fixed;
    width: 100%;
    background-color: var(--primary);
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar.sticky{
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.navbar h2 a{
    font-size: 3.5rem;
    text-decoration: underline;
    color: var(--black);
}

.navbar .nav-list{
    display: flex;
    list-style: none;
}

.nav-list li{
    margin: 1rem;
}

.nav-list li a{
    font-size: 2.2rem;
    color: var(--black);
}

.nav-list li a:hover{
    color: var(--white);
    background-color: var(--blue);
    border-radius: 1rem;
    padding: 1rem;
}

.navbar #menu-btn{
    display: none;
    cursor: pointer;
    font-size: 3rem;
}

.navbar #menu-btn:hover{
    color: var(--blue);
}

.navbar .nav-list p{
    font-size: 3rem;
    font-weight: 500;
    color: #999;
    padding: 2rem;
    display: none;
}

.navbar .menu{
    font-size: 4rem;
    
}

.navbar #cancel-btn{
    display: none;
    font-size: 6rem;
    cursor: pointer;
    color: var(--black);
}

.navbar #cancel-btn:hover{
    color: red;
    /* transform: rotate(90deg); */
}
/* Navigation css Ends Here */




/* Header css starts here */
header{
    background-color: var(--primary);
}

.header{
    padding: 25rem 0;
    background-color: var(--primary);
    display: flex;
    overflow: hidden;
    align-items: center;
    text-align: left;
}

.header .image{
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    background-color: var(--blue);
    position: relative;
    margin-right: 10rem;
    margin-left: 2rem;
    box-shadow: 1rem -0.5rem 2rem var(--blue);
    position: relative;
    z-index: 10;
}

.header .image .lines span{
    width: 3px;
    background-color: var(--black);
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0; 
    right: 0; 
    margin-left: auto; 
    margin-right: auto; 
    transform: rotate(30deg);
    display: block;
    z-index: 10;
}

.header .image .lines span:nth-child(2){
    left: -20%; 
}

.header .image .lines span:nth-child(3){
    left: 20%; 
}

.header .image .skin{
    width: 40rem;
    height: 40rem;
    background-color: antiquewhite;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    top: 2rem;
    right: 2rem;
    box-shadow: 1rem -0.5rem 2rem antiquewhite;
}

.header .image .skin img{
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    position: relative;
    top: -2rem;
    right: -2rem;
    background-color: var(--primary);
    z-index: 20;
}

.header .image .person-info{
    font-size: 2rem;
    position: absolute;
    bottom: 3.5rem;
    right: 3.5rem;
    color: var(--white);
    background-color: var(--black);
    padding: 2rem;
    border-radius: 50%;
    line-height: 1.8rem;
    cursor: pointer;
    box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.3);
    animation: sunrise 2s infinite linear forwards;
    z-index: 30;
}

@keyframes sunrise{
    0%{
        box-shadow: none;
    }
}

.header .image .person-info:hover{
    background-color: var(--blue);
}

.blur{
    display: none;
    height: 100vh;
    background-color: rgba(29,27,25,.95);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10000000000;
    overflow-y: auto;
}

.blur .person-cancel{
    font-size: 2.5rem;
    color: var(--white);
    position: absolute;
    right: 3rem;
    top: 3rem;
    cursor: pointer;
}

.blur .person-cancel:hover{
    color: red;
}

.blur.active{
    display: block;
}

.header .text h4{
   font-size: 4rem;
   font-weight: 300;
}

.header .text h2{
    font-size: 7rem;
    font-weight: 600;
}

.header .text h1{
    font-size: 4rem;
    font-weight: 600;
}

.header .text h3{
    font-size: 2.5rem;
    font-weight: 300;
}



/* Header css ends here */
.about{
    display: flex;
    justify-content: space-between;
}

.about .image{
    width: 35%;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: var(--border);
}

.about .image img{
    width: 100%;
}

.about .content{
    width: 60%;
    text-align: left;
}

.about .content p{
    font-size: 2.5rem;
}

.about .content h2{
    font-size: 3rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.about .skills div{
    margin: 1rem;
}


.about .skills div{
    background-color: var(--primary);
    border-radius: 2rem;
    font-size: 2.5rem;
    padding: 1rem;
    display: inline-block;
    font-weight: 400;
}
/* About css starts here */


/* form input:focus,
form input:valid{
    border-color: var(--blue);
}

form textarea:focus,
form textarea:valid{
    border-color: var(--blue);
} */

/* Contact css ends here */

/* Footer css starts here */
.footer{
    margin-top: 15rem;
    padding: 5rem 0;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.footer a{
    font-size: 2rem;
    color: var(--blue);
    margin: 1rem;
}

.footer a:hover{
    transform: scale(1.3)
}

.footer p{
    font-size: 2rem;
    text-align: center;
    padding: 1rem;
}

.footer p span{
    font-size: 2.5rem;
    color: var(--blue);
}

.footer a{
    text-decoration: underline;
}
/* Footer css ends here */










/* Media Query for Respnsive */

@media (max-width: 1350px){
    section{
        margin: 0 5%;
    }
    .navbar{
        padding: 1.5rem 5%;
    }
}

@media (max-width: 1250px){
    html{
        font-size: 55%;
    }
}


@media (max-width: 1070px){
    html{
        font-size: 50%;
    }
}


@media (max-width: 940px){

    html{
        font-size: 45%;
    }

    .header .text h2{
        font-size: 6rem;
        font-weight: 600;
     }
    
     .header .text h1{
        font-size: 4rem;
        font-weight: 600;
     }
}

@media (max-width: 790px){

    .resume{
        overflow: auto;
    }

    .resume .profile{
        width: 100%;
    }

    .resume .right{
        width: 100%;
        margin-top: 10%;
        overflow: visible;
    }
    
    .nav-list{
        position: absolute;
        top: 0;
        right: -120%;
        flex-direction: column;
        background-color: white;
        width: 50rem;
        max-width: 75%;
        padding: 3rem 5rem;
        height: 100vh;
    }

    .nav-list li a{
        display: block;
        padding: 1rem;
    }

    .nav-list li a:hover{
        color: var(--blue);
        background-color: var(--primary);
        padding-left: 3.5rem;
        border-left: 1rem solid var(--blue);
    }

    .navbar #menu-btn{
        display: inline-block;
    }
    
    .navbar #cancel-btn{
        position: absolute;
        top: 3rem;
        right: 3rem;
        display: inline-block;
 
    }

    .navbar .nav-list p{
        display: block;
        margin-top: 5rem;
    }

    .nav-list li a{
        font-size: 4rem;
        color: var(--black);
    }
    
    .nav-list.active{
        right: 0;
        box-shadow: 0 0 0 100vw rgba(0,0,0,0.8);
       
    }

    .header{
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .header .image{
        width: 50rem;
        height: 50rem;
        margin: 0;
    }
    
    .header .image .skin{
        width: 50rem;
        height: 50rem;
    }
    
    .header .image img{
        width: 50rem;
        height: 50rem;
    }

    .header .text{
        margin-top: 10rem;
    }
    
    .header .text h4{
       font-size: 4rem;
       font-weight: 300;
    }
    
    .header .text h2{
        font-size: 7rem;
        font-weight: 600;
    }
    
    .header .text h1{
        font-size: 4rem;
        font-weight: 600;
    }
    
    .header .text h3{
        font-size: 2.5rem;
        font-weight: 300;
    }

    .about{
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .about .image{
        width: 50%;
        margin-bottom: 3rem;
    }

    .about .content{
        width: 100%;
        text-align: center;
    }

    .contact{
        flex-wrap: wrap;
    }

    .contact .contactinfo{
        position: static;
        width: 100%;
        background-color: var(--primary);
        color: var(--black);
    }

    .contact .contactinfo h2::before{
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 20%;
        height: 0.3rem;
        background-color: var(--black);
    }

    .contact .contactinfo .info li a{
        color: var(--black);
        font-weight: 400;
        font-size: 2.5rem;
    }

    .contact .contactinfo .info li a:hover{
        color: var(--blue);
        border-color: var(--blue);
    }

    .contact .contactinfo .social{
        border-bottom: 0.1rem solid gray;
        padding-bottom: 3rem;
    }

    .contact .contactinfo .social li a{
        color: var(--blue);
    }

    .contact .contactform{
        margin: 0;
        padding: 3rem;
        z-index: 900;
    }

}


@media (max-width: 485px){

    .header{
        padding: 18rem 0;
    }

    .header .image{
        width: 30rem;
        height: 30rem;
    }
    
    .header .image .skin{
        width: 30rem;
        height: 30rem;
    }
    
    .header .image .skin img{
        width: 30rem;
        height: 30rem;
    }
    
    .header .image .person-info{
        bottom: 2rem;
        right: 2rem;
    }

    .header .text{
        margin-top: 5rem;
    }

    .header .text h2{
        font-size: 5rem;
        font-weight: 600;
    }
    
    .header .text h1{
        font-size: 3rem;
        font-weight: 600;
    }
    
    .header .text h3{
        font-size: 2.5rem;
        font-weight: 300;
    }

    .header .image img{
        padding-top: 1.5rem;
    }
}


#preloader{
    background-color: #ddd;
    background-size: 30%;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#preloader .loader{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 0 15px var(--black);
    position: relative;
}

#preloader .loader::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--black) 30%,
    #2196f3);
    border-radius: 50%;
    animation: animate 1s linear infinite;
}

#preloader .loader::after{
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: var(--black);
    border-radius: 50%;
    box-shadow: inset 0 0 0 5px var(--black);
}

@keyframes animate{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}