body,html{
    scroll-behavior: smooth;
}
body{
    background: #fafafa;
}
main{
    height: fit-content;
    padding: 60px 1rem 0 1rem;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}


/*Header*/
header{
    font-family: Bahnschrift,sans-serif;
    padding: 0;
    margin: 0;
    position: fixed;
    top:0;
    right:0;
    left:0;
    z-index: 10;
}
.navbar{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(243, 243, 243, 0.88);
    height: 60px;
    border-radius: 2px;
    flex-wrap: wrap;
}
.image-name-section{
    width: fit-content;
    display: flex;
    justify-content: start;
    align-items: center;
    max-width: 400px;
}
.image-container{
    height: 50px;
    width: 50px;
    overflow: hidden;
    padding: 4px 10px;
}
.profile-picture{
    height: 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    border-radius: 30px;
    object-fit: cover;
    object-position: center;
}
.name-page-home{
    text-decoration: none;
    padding: 4px 10px 4px 0;
    font-size: 25px;
    font-weight: bold;
    color: rgb(0,0,0);
    transition: color 0.15s;
}
.name-page-home:hover , .name-page-home:active{
    color: rgb(104, 109, 118);
}
.nav-menu{
    max-width: 600px;
    height: 90%;
}
.nav-menu ul{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 100%;
    margin: 0;
}
.nav-menu ul li {
    list-style: none;
}
.nav-link-home,
.nav-link-about ,
.nav-link-projects ,
.nav-link-contact{
    text-decoration: none;
    padding: 10px 10px;
    margin: 0 12px;
    color: rgb(57, 62, 70);
    transition: color 0.15s ,font-weight 0.15s,
    background-color 0.15s , margin 0.1s , padding 0.1s;
    font-size: 1.125em;
}
.nav-link-home:hover, .nav-link-home:active,
.nav-link-about:hover, .nav-link-about:active
,.nav-link-projects:hover, .nav-link-projects:active
,.nav-link-contact:hover, .nav-link-contact:active{
    color: black;
    font-weight: bolder;
    background-color: #d6f4fd;
    border-radius: 2px;
}
#menu-expand,
#menu-collapse{
    cursor: pointer;
    padding: 0 2vw;
    display: none;
}
.nav-small-h{
    display: none;
}
.nav-small-links{
    color: #000000;
    font-size: 1.2rem;
    text-decoration: none;
}
.nav-small-links:hover{
    color: #4480d7;
}
.nav-small-v{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    row-gap: 2vh;
    position: fixed;
    background-color: rgba(243, 243, 243, 0.88);
    padding: 1vh 1vh 1vh 2vh;
    top: 59px;
    right: 0;
    left: 0;
    height: fit-content;
    border-bottom-right-radius: 20%;
    border-bottom-left-radius: 20%;
}
@media screen and (max-width: 768px) {
    .nav-menu{
        display: none;
    }
    .navbar{
        justify-content: space-between;
    }
    #menu-expand{
        display: block;
    }
}


/*Home*/
.home-section{
    padding-top: 12vh;
    margin-bottom: 20vh;
}
.home-section-wrapper{
    display: flex;
    flex-wrap: wrap-reverse;
    padding: 0 20px 10px 20px;
    row-gap: 40px;
    column-gap: 60px;
    justify-content: center;
    align-items: start;
}
.home-left-section{
    flex: 1 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}
#home-name-heading{
    font-size: 2.8rem;
    font-family: "Sanskrit Text",sans-serif;
    margin: 1px 0;
}
#home-iam{
    font-size: 1.4rem;
    margin: 1px 2px 15px 4px;
}
#home-typing-js{
    color: #4480d7;
    font-family: cursive;
}
#home-tagline{
    font-size: 1.4rem;
    text-wrap: pretty;
    line-height: 1.2;
    margin: 0 0 20px 4px;
    font-family: "Sans Serif Collection",sans-serif;
    color: rgba(0,0,0,0.6);
    font-style: italic;
}
.home-section-social-media{
    height: 40px;
    overflow: hidden;
    display: grid;
    margin-top: 30px;
    margin-left: 2px;
    grid-template-columns: repeat(3,50px);
    column-gap: 10px;
}
.home-section-social-media a,img{
    height: 90%;
    width: 90%;
}
#home-hola-button{
    margin-top: 50px;
    margin-left: 1%;
    cursor: pointer;
    padding: 10px 14px;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: background-color 0.15s, box-shadow 0.15s;
}
#home-hola-button:hover{
    background-color: black;
    box-shadow: 1px 1px 14px black;
}
#home-hola-button a{
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
}
#home-hola-button img{
    display: inline-block;
}
.home-right-section {
    height: 400px;
    overflow: hidden;
    min-width: 300px;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: start;
}
.home-image-container {
    display: flex;
    width: 310px;
    height: 310px;
    background: linear-gradient(45deg, #da9696, #256fd9, rgba(204, 86, 88, 0.74), #594c4c);
    /*background: linear-gradient(45deg, #ff0000, #0fff00, #0000ff, #ff0000);*/
    background-size: 200% 200%;
    border-radius: 20%;
    animation: gradientAnimation 2s infinite;
    justify-content: center;
    align-items: center;
}
@keyframes gradientAnimation {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}
.home-right-section img {
    height: 300px;
    width: 300px;
    object-position: center;
    object-fit: cover;
    border-radius: 20%;
}
@keyframes gradientAnimation {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}
/* mouse */
#mouse-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    column-gap: 20px;
    margin-top: 20px;
    cursor: pointer;
}
#mouse-action{
    animation: mouse-animation 2s infinite linear;
    transition: opacity 2s, bottom 2s;
    color: black;
    padding: 0;
    margin: 0;
}
#mouse {
    height: 50px;
    width: 30px;
    border-radius: 25px;
    border: 0.15rem solid black;
    position: relative;
    animation: mouse-animation 2s infinite linear;
    transition: opacity 2s, bottom 2s;
}
#mouse-arrow {
    height: 6px;
    background-color: black;
    border: 0.1rem solid black;
    position: absolute;
    bottom: 8px;
    left: 50%;
    border-radius: 0.2rem;
    transform: translateX(-50%);
    animation: arrow-up 2s infinite linear;
    transition: opacity 2s, bottom 2s;
}
@keyframes mouse-animation {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes arrow-up {
    0% {
        bottom: 30%;
    }
    25%{
        bottom: 40%;
    }
    50% {
        bottom: 50%;
    }
    60%{
        bottom: 60%;
    }
    80%{
        bottom: 70%;
    }
    100% {
        bottom: 80%;
    }
}
@media screen and (max-width: 770px){
    .home-section-wrapper{
        row-gap: 0;
        padding: 0;
    }
    .home-section{
        padding-top: 6vh;
    }
    .home-right-section {
        height: 340px;
    }
    #mouse-container {
        display: none;
    }
    #home-name-heading{
        font-size: 2.3rem;
    }
}
@media screen and (max-width: 770px) and (min-width: 450px){
    .home-left-section {
        min-width: 361px;
    }
}
@media screen and (max-width: 400px) {
    .home-right-section img {
        height: 290px;
        width: 290px;
    }
    .home-image-container {
        height: 300px;
        width: 300px;
    }
}


/*About*/
.about-section{
    text-align: center;
    padding: 0;
    margin: 0 0 15vh 0;
}
#about-me-heading {
    font-size: 2.5rem;
    margin: 1.1rem;
}
.about-section-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 3rem;
    row-gap: 4rem;
}
.about-image-container{
    height: 90%;
    width: 30vw;
    min-height: 280px;
    min-width: 280px;
    overflow: hidden;
    text-align: center;
    border-radius: 10px;
}
.about-image{
    height: 90%;
    width: 90%;
    object-position: center;
    object-fit: cover;
    border-radius: 20px;
}
.about-text-container{
    flex: 1;
    display: flex;
    flex-direction: column;
}
.about-section-grid{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-column-gap: 10px;
    place-items: center;
    place-content: center;
}
.about-section-grid div{
    background-color: rgba(255,255,255,74);;
    color: black;
    padding: 10px;
    max-width: 80px;
    border-radius: 12px;
    box-shadow: 1px 1px 6px black;
}
#about-me-text{
    text-wrap: normal;
    font-size: 18px;
    text-align: center;
}
#resume-button-wrapper{
    margin-top: 20px;
    width: fit-content;
    padding: 1rem;
    background-color: black;
    border: 2px white solid;
    border-radius: 18px;
    text-align: center;
}
#resume-download-button{
    text-decoration: none;
    color: white;
    padding: 1rem;
}
#about-section-drop a,span{
    text-decoration: none;
    color: rgba(0,0,0,0.6);
}
@media screen and (max-width: 850px) and (min-width:780px){
    .about-section-wrapper{
        row-gap: 2rem;
    }
    #about-me-text{
        min-width: 500px;
        padding: 0 2.5rem;
    }
    #resume-button-wrapper{
        align-self: center;
    }
    .about-section-grid {
        grid-template-columns: repeat(4,120px);
    }
}
@media screen and (max-width: 779px) and (min-width: 440px){
    .about-section-wrapper{
        row-gap: 2rem;
    }
    #about-me-text{
        min-width: 400px;
        padding: 0 2.5rem;
    }
    #resume-button-wrapper{
        align-self: center;
    }
    .about-section-grid {
        grid-template-columns: repeat(4,max-content);
        grid-column-gap: 2.5rem;
    }
}
@media screen and (max-width: 439px){
    .about-section-wrapper{
        row-gap: 2rem;
    }
    #resume-button-wrapper{
        align-self: center;
    }
}


/*Qualification*/
.qualification-section{
    padding-top: 80px;
    margin-bottom: 20vh;
}
.qualification-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.qualification-heading{
    margin: 0 0 50px 0;
    padding: 2px;
    font-size: 2.5rem;
}
.quali-options-wrapper{
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 40px;
    place-content: center;
    place-items: center;
    margin-bottom: 40px;
}
.quali-option{
    width: max-content;
    text-align: center;
    display: flex;
    min-width: max-content;
    cursor: pointer;
    padding: 8px;
    font-size: 1.1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.6);
}
.quali-img,
.course-year-svg{
    width: 20px;
    height: 20px;
    padding-right: 8px;
}
.education-container,
.experience-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    row-gap: 40px;
}
.edu-info,
.experience-info{
    display: flex;
    flex-direction: inherit;
}
.education-container{
    display: none;
    padding-left: 20px;
}
.course-name,
.experience-role{
    font-weight: bold;
    margin: 0;
    font-size: 1.25rem;
}
.course-from,
.experience-from{
    font-size: 1.125rem;
    margin: 10px 14px;
}
.course-year,
.experience-year{
    display: flex;
    justify-content: start;
    padding-left: 14px;
    margin: 0;
    color: #565555;
    font-size: 1rem;
}


/*Projects*/
.projects-section{
    margin-top: 8px;
    margin-bottom: 30vh;
}
.project-section-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    text-align: center;
}
.project-section-wrapper h2{
    margin: 10px;
    font-size: 2.5rem;
}
.project-menu-options ul{
    display: grid;
    place-items: center;
    place-content: center;
    list-style: none;
    padding: 0;
    grid-template-columns: repeat(5,max-content minmax(0,max-content));
}
.options{
    padding: 10px;
    margin: 10px;
    border: none;
    border-radius: 10px;
    background-color: #000000;
    color: #d6f4fd;
    cursor: pointer;
}
.options-selected{
    box-shadow: 1px 1px 10px #ff0000;
}
.project-detail-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 40px;
    column-gap: 30px;
}
.projects-card-container{
    position: relative;
    height: 300px;
    width: 230px;
    border: none;
    border-radius: 10%;
    z-index: 1;
}
.project-card{
    position: absolute;
    height: 100%;
    width: 100%;
    border: none;
    border-radius: 10%;
    transform-style: preserve-3d;
    transition: all 0.8s ease;
}
.project-card:hover {
    box-shadow: 1px 1px 20px rgba(0, 0, 0, 1);
}
.project-front,
.project-back{
    position: absolute;
    height: 100%;
    width: 100%;
    border: none;
    backface-visibility: hidden;
    border-radius: 10%;
    overflow: hidden;
    box-shadow: 1px 1px 10px black;
}
.project-front{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}
.project-image{
    height: 82%;
    width: 100%;
}
.project-card-front-heading{
    margin: auto;
}
.project-front:hover .project-card-invisible-desc{
    display: flex;
}
.project-card-invisible-desc{
    position: absolute;
    height: 40px;
    background-color: rgba(63, 134, 245, 0.8);
    top:0;
    right: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: space-around;
}
.project-card-link-img,
.project-card-flip-back{
    height: 30px;
    width: 30px;
}
.project-back{
    transform: rotateY(180deg);
    display: flex;
    position: absolute;
    flex-direction: column;
    overflow-y: auto;
    justify-content: start;
    align-items: center;
}
.project-back-flip{
    position: absolute;
    height: 35px;
    width: 35px;
    top: 10px;
    left: 20px;
}
.project-back-heading{
    text-align: center;
}
.project-back-desc{
    text-align: center;
    text-wrap: normal;
    padding: 10px 10px;
}
@media screen and (max-width: 450px){
    .project-menu-options ul{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
    }
}
@media screen and (max-width: 538px){
    .projects-card-container{
        max-height: 160px;
        max-width: 120px;
    }
    .project-card-front-heading{
        font-size: 0.85rem;
    }
    .project-card-link-img, .project-card-flip-back{
        height: 24px;
        width: 24px;
    }
    .project-card-invisible-desc{
        height: 36px;
    }
    .project-back-heading{
        margin: 8px 0 0 10px;
    }
    .project-back-desc{
        margin: 0;
        font-size: 0.6rem;
        padding: 5px 6px;
    }
    .project-back-flip{
        height: 24px;
        width: 24px;
        top: 1vh;
        left: 0.6vw;
    }
}


/*Skills & Experience*/
.skill-section{
    margin-bottom: 30vh;
    text-align: center;
}
.skill-heading{
    font-size: 2.5rem;
}
.skill-container{
    display: flex;
    flex-wrap: wrap;
    column-gap: 40px;
}
.left-skill-section{
    display: flex;
    flex: 1 1;
    justify-content: center;
    align-items: center;
    gap: 40px;
    column-gap: 30px;
    flex-wrap: wrap;
    cursor: pointer;
    min-width: 300px;
}
.skill-badge{
    height: 100px;
    width: 100px;
    background: #ffffff;
    text-align: center;
    border-radius: 50%;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.6s;
}
.skill-badge:hover{
    box-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}
.skill-badge img{
    height: 60%;
    width: 60%;
    object-position: center;
    padding-top: 20px;
}
.right-skill-section{
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    padding-top: 40px;
    align-content: center;
    cursor: pointer;
    gap: 20px;
}
.right-skill-badge{
    padding: 10px;
    background: white;
    box-shadow: 1px 1px 10px rgba(0,0,0,0.2);
    border-radius: 2px;
    transition: box-shadow 0.6s;
    min-width: max-content;
}
.right-skill-badge:hover{
    box-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}
@media screen and (max-width: 425px) {
    .left-skill-section{
        padding-right: 6px;
    }
    .skill-badge{
        height: 50px;
        width: 50px;
    }
    .skill-badge img{
        padding-top: 12px;
    }
}
@media screen and (max-width: 810px) {
    .skill-container{
        flex-direction: column;
    }
}


/*Contact*/
textarea:focus, input:focus{
    outline: none;
}
.contact-section{
    display: flex;
    justify-content: space-around;
    align-items: start;
    flex-wrap: wrap;
    padding-bottom: 10px;
    row-gap: 10px;
    column-gap: 10px;
    margin-top: 8rem;
}
.contact-option-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    margin: 0 auto;
}
.contact-option-container h2{
    margin: 20px 0 50px 0;
}
.contact-options{
    margin: 6px;
}
.contact-options button{
    border: 2px solid white;
    padding: 10px 6px;
    border-radius: 4px;
    background-color: rgb(12, 73, 108);
    color: white;
    font-family: Bahnschrift,sans-serif;
    font-size: 16px;
}
#contact-me-button{
    box-shadow: 1px 1px 10px aqua ;
    background-color: rgba(9, 145, 218,0.8);
}
.contact-form{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 10px;
}
.mentorship-form{
    display: none;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 10px;
}
.contact-form input, textarea,
.mentorship-form input,textarea{
    padding: 10px;
    background-color: aliceblue;
    border-radius: 6px;
    border: none;
    font-family: Bahnschrift,sans-serif;
}
.form-name-input,
.form-organisation-input,
.form-phonenumber-input{
    width: 200px;
}
.form-email-input{
    width: 425px;
}
.textarea-container{
    width: 425px;
    height: 150px;
}
.more-detail-input{
    max-width: 100%;
    min-width: 20%;
    max-height: 90%;
    min-height: 40%;
}
.form-submit{
    margin: auto;
}
.form-submit-button:hover , .form-submit-button:active{
    background-color: aqua;
    box-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}
/* mentorship form */
.mentorship-form-name,
.form-email-input{
    width: 425px;
}
@media screen and (max-width: 365px) {
    .contact-option-container h2{
        font-size: 1.3rem;
    }
}
@media screen and (max-width: 500px){
    .form-name-input,
    .form-organisation-input,
    .form-phonenumber-input{
        width: 113px;
    }
    .form-email-input{
        width: 250px;
    }
    .textarea-container{
        width: 250px;
        max-height: 150px;
    }
    /* mentorship form */
    .mentorship-form-name,
    .form-email-input{
        width: 250px;
    }
}


/*Footer*/
footer{
    padding: 0;
    margin: 15vh 0 0 0;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
}
.footer-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 0;
}
.upper-section{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: fit-content;
    width: fit-content;
    flex-wrap: wrap;
}
.footer-upper-left-text{
    font-size: 1.2em;
    margin-right: 15px;
    flex-wrap: nowrap;
    text-wrap: none;
}
.footer-svg-container{
    display: flex;
    flex-direction: column;
    align-items: start;
    flex: 1;
}
.footer-div-container{
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 0.2em 0.1em;
    padding: 0.1em;
}
.footer-svg{
    height: 30px;
    width: 30px;
    margin-right: 6px;
}
.footer-svg-text,
.footer-more-links{
    font-size: 1em;
    text-decoration: none;
    color: black;
}
.vertical-line{
    height: 8em;
    border: 1px solid black;
    margin: 0.1em 4em;
}
.footer-more-links-container{
    display: flex;
    flex-direction: column;
}
.footer-more-links{
    padding: 0.4em;
}
.footer-also-visit-text{
    font-size: 1.2em;
    padding: 0.1em 0;
}
.footer-also-visit{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    margin: 2em;
}
.back-to-top{
    background-color: white;
    border: 1px solid black;
    border-radius: 2px;
    height: 25px;
    width: 25px;
    text-align: center;
    position: absolute;
    top:-30px;
    right:10vw;
}
.back-to-top a:hover , .back-to-top a:active{
    cursor: grab;
}
.middle-line{
    margin: 10px 0 2px 0;
    padding: 0;
    color: black;
    border: 1px black solid;
    width: 90%;
}
.lower-section{
    height: 2rem;
    display: flex;
    align-items: center;
}
.lower-section p{
    font-size: 0.9em;
}
.lower-section span {
    padding-top: 2px;
    margin-right: 1px;
    font-size: 1em;
}
@media screen and (max-width: 684px) {
    .vertical-line{
        display: none;
    }
}
@media screen and (max-width: 600px) {
    #footer-mycompanypage,
    #footer-myblogs{
        display: none;
    }
}


/*Scroll Animation*/
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out,
                transform 0.6s ease-out;
}
.section.in-view {
    opacity: 1;
    transform: translateY(0);
}


/*Project Cards Animation*/
.projects-card-container-animation{
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out,
                transform 0.6s ease-out;
}
.projects-card-container-animation.in-view{
    opacity: 1;
    transform: translateY(0);
}