@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nova+Round&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sora&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Mono', monospace;
}

:root {
    --darkBg: #1e2022;
    --lightdarkBg: #343535;
    --minimal: #52616b;
    --light3: #8e989f;
    --light2: #c9d6df;
    --light1: #f0f5f9;
}


html,
body {
    width: 100%;
    height: 100%;
    position: relative;
    overflow-x: hidden;
    /* cursor: none; */
    scroll-behavior: smooth;
    user-select: none;
}


/* loader code */

/* loader code */

.loader-wrap {
    position: absolute;
    z-index: 10;
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.loader-wrap svg {
    position: absolute;
    top: 0;
    width: 100vw;
    height: 110vh;
    fill: #f0f5f9;
}

.loader-wrap .loader-wrap-heading h1 {
    font-size: 32px;
    letter-spacing: 6px;
    z-index: 20;
    color: #1e1e1e;
    text-transform: uppercase;
    font-weight: lighter;
    font-family: nebula;
}

/* loader code ends */


/* main code  */

#main {
    /* width: 100%;
    min-height: 100vh; */
    background-color: #1e2022;
    position: relative;
    z-index: 0;
    /* background-color: aliceblue; */
}

#cursor {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 100%;
    background-color: var(--light1);
    transform: translate(-50%, -50%);
    display: none;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: difference;
    transition: all cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
}

#cursor.cursor-grow {
    transform: scale(3.6);
    background-color: var(--light2);
}

#cursor.cursor-grow-average {
    transform: scale(3.8);
    background-color: var(--light2);
}

#cursor.cursor-grow-big {
    transform: scale(6);
    background-color: var(--light2);
}



.home {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url("./imgs/Msvector.svg");
    background-position: right;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 6vh 8vw;
}

.navbar {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: blueviolet; */
}

.navbar .links-overlay {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: var(--light1);
    color: var(--lightdarkBg);
    z-index: 7;
}

.navbar div a {
    text-decoration: none;
    color: var(--light2);
    font-size: 15px;
    font-weight: 500;
    transition: color cubic-bezier(0.19, 1, 0.22, 1) 0.4s;
    z-index: 3;
}


.navbar div a.link-hovered {
    color: var(--darkBg);
}

.navbar div a span {
    font-weight: 600;
    font-size: 16px;
    margin-left: 10px;
}

.navbar div a.active {
    color: var(--light1);
}

.navbar div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.navbar .menu {
    display: none;
}

.navbar img {
    position: relative;
    height: 70px;
    cursor: pointer;
    /* mix-blend-mode: screen; */
    z-index: 0;
}

.home-container {
    width: 100%;
    height: 92%;
    padding: 20px 80px;
    /* background-color: rgb(62, 69, 69); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}


.home-container>p {
    font-size: 18px;
    font-weight: 500;
    color: var(--light1);
    padding-bottom: 5px;
}

.home-container h1 {
    font-size: 72px;
    color: var(--light1);
    padding-bottom: 5px;
}

.home-container span {
    font-weight: 600;
    color: var(--light3);
    word-wrap: break-word;
    font-size: 34px;
    padding-bottom: 18px;
}

.home-container .intro-txt {
    font-size: 13px;
    line-height: 140%;
    color: var(--minimal);
    letter-spacing: 0.4px;
    width: 40%;
}

.home-container button {
    padding: 14px 30px;
    margin-top: 40px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    border-radius: 3px;
    border: 2px solid var(--light2);
    background-color: transparent;
    transition: background-color cubic-bezier(0.19, 1, 0.22, 1) 0.6s;
}

.home-container button a {
    text-decoration: none;
    color: var(--light2);
}

.home-container button:hover {
    background-color: var(--light2);

}

.home-container button:hover a {
    color: var(--darkBg);
}



/* ABOUT Section */


.about {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 6vh 8vw;
}

.about .heading {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: aquamarine; */
    border-bottom: 1px solid var(--minimal);
}

.heading span:first-child {
    opacity: 0.8;
}

.heading span {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--light2);
}

.heading .num {
    font-size: 32px;
}

.about-container {
    width: 100%;
    height: 92%;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background-image: url("./imgs/AboutMask.svg");
    background-position: center;
    background-size: cover;
    /* background-color: antiquewhite; */

}

.about-container .left-content {
    width: 38%;
    /* height: 100%; */
    font-size: 24px;
    color: var(--light2);
    text-align: justify;
}

.left-content h2 span {
    font-family: 'IBM Plex Mono', monospace;
}

.left-content h2 {
    width: 100%;
    line-height: 160%;
    font-weight: 500;
    color: var(--light2);
    text-align: justify;
    font-family: 'IBM Plex Mono', monospace;
}

.left-content h2:first-child {
    color: var(--light3);
}

.left-content h2:last-child span {
    color: var(--light3);
}

.left-content h2:first-child span:nth-child(2) {
    color: orange;
}

.left-content h2:first-child span:nth-child(3) {
    color: white;
}

.left-content h2:first-child span:nth-child(4) {
    color: green;
}

.left-content h2:nth-child(2n) {
    text-align: center;
}

.about-container .right-content {
    padding: 20px 0;
    padding-left: 90px;
    width: 60%;
    /* height: 100%; */
    text-align: start;
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-direction: column;
    gap: 30px;
    color: var(--light3);
}

.right-content p {
    font-size: 14px;
    text-align: justify;
    line-height: 150%;
    letter-spacing: 0.4px;
    font-weight: 400;
    word-spacing: 1px;
}

.right-content .one::first-letter {
    font-size: 48px;
    font-weight: 600;
    color: var(--light3);
}

.right-content .one span {
    color: cyan;
    font-weight: 500;
    font-size: 18px;
}

.right-content .two span {
    color: greenyellow;
    font-weight: 500;
    font-size: 18px;
}

.right-content .three span {
    color: magenta;
    font-weight: 500;
    font-size: 18px;
}


/* Skills Section  */

.skills {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 6vh 8vw;
}

.skills .heading {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: aquamarine; */
    border-bottom: 1px solid var(--minimal);
}

.skills-container {
    width: 100%;
    height: 92%;
    padding: 20px 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 40px;
    background-image: url("./imgs/SkillsMask.svg");
    background-position: center;
    background-size: cover;
    /* background-color: antiquewhite; */
}

.skills-container .elem {
    display: flex;
    justify-content: start;
    gap: 30px;
    align-items: center;
}

.elem img {
    width: 20%;
    border-radius: 12%;
}

.elem span {
    color: var(--light3);
    font-weight: 600;
    font-size: 16px;
    text-transform: lowercase;
}


.projects {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 6vh 8vw;
}

.projects .heading {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: aquamarine; */
    border-bottom: 1px solid var(--minimal);
}

.projects-container {
    width: 100%;
    height: 92%;
    padding: 20px 80px;
    background-image: url("./imgs/ProjectMask.svg");
    background-position: center;
    background-size: cover;
    /* background-color: antiquewhite; */
}

.elem-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    /* background-color: aliceblue; */
}

.elem-container .elem {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 32px;
    padding: 20px 0;
    padding-right: 20px;
    border-bottom: 2px solid var(--minimal);
    color: var(--minimal);
    text-decoration: none;
    transition: color border-bottom cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s;
}


.elem-container .elem:hover {
    color: var(--light2);
    border-bottom: 2px solid var(--light2);
}

.elem-container .elem:hover>a {
    color: var(--light2);
}

.elem-container .elem>a {
    text-decoration: none;
    font-size: 40px;
    color: var(--minimal);
    font-weight: 600;
    transition: all cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s;
}


.elem-container .elem img {
    width: 40px;
    transition: all cubic-bezier(0.075, 0.82, 0.165, 1) 0.3s;
}

.elem-container a img:hover {
    transform: scale(1.3);
}

/* this part is used for dynamic change in image but due to lag i have commented */
/* #project-img {
    position: absolute;
    height: 250px;
    width: 350px;
    overflow: hidden;
    z-index: 9;
    left: 0;
    top: 0;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transition: height 0.5s, width 0.5s, background-image 0.5s, cubic-bezier(0.19, 1, 0.22, 1) 0.4s;
}
*/

.contact {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 6vh 8vw;
}

.contact .heading {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: aquamarine; */
    border-bottom: 1px solid var(--minimal);
}

.contact-container {
    width: 100%;
    height: 92%;
    padding: 40px 80px 20px 80px;
    background-image: url("./imgs/ContactMask.svg");
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: contain;
}

.contact-container h1 {
    width: 100%;
    /* text-align: center; */
    font-size: 56px;
    color: var(--light1);
    padding-bottom: 10px;
}

.contact-content {
    width: 100%;
    height: 84%;
    padding-top: 40px;
    /* background-color: aquamarine; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-content .left {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contact-content .left h3 {
    align-self: flex-end;
    margin-right: 20%;
    margin-bottom: 6px;
    color: var(--light2);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-content .left form {
    align-self: flex-start;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.contact-content .left form input,
.contact-content .left form textarea,
.contact-content .left form button {
    width: 80%;
    padding: 1rem;
    outline: none;
    border: 1px solid var(--light3);
    background-color: transparent;
    border-radius: 1px;
    color: var(--light2);
    font-weight: 500;
    letter-spacing: 0.4px;

}

.contact-content .left form input::placeholder {
    color: var(--light2);
}


.contact-content .left form textarea {
    resize: none;
    background-color: var(--darkBg);
}

.contact-content .left form textarea::placeholder {
    color: var(--light2);
    font-size: 14px;
}

.contact-content .left form button {
    background-color: var(--darkBg);
    color: var(--light1);
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 3px;
}

.contact-content .left form button:hover {
    background-color: #2c3032;
}

.contact-content .right {
    width: 50%;
    height: 100%;
    gap: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: start;
    flex-direction: column;
}

.contact-content .right h3 {
    color: var(--light2);
    font-size: 16px;
    text-transform: uppercase;
    margin-top: 38.6px;
}

.contact-content .right p {
    color: var(--light3);
    text-align: justify;
}

.contact-content .right .social-links {
    width: 70%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.contact-content .right .social-links a {
    text-decoration: none;
    color: var(--light1);
    font-weight: 500;
    transition: scale cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s;
}

.contact-content .right .social-links a:hover {
    scale: 1.4;
}

.contact-content .right .social-links a::first-letter {
    color: cyan;
    font-size: 26px;
    font-weight: 600;
    border-bottom: 2px solid var(--light2);
}



/* footer code starts here */

.footer {
    width: 100%;
    height: 42vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    background-color: #2f2f2f52;
}

.footer img {
    width: 16%;
}

.footer .links {
    width: 24%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .links a {
    text-decoration: none;
    color: var(--light3);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f0f5f933;
    transition: all cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s;
}

.footer .links a:hover {
    color: var(--light1);
}

.footer .social-icons {
    width: 14%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 20px 0;
}

.footer .social-icons a img {
    width: 26px;
    opacity: 0.6;
    transition: all cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}

.footer .social-icons a:hover img {
    transform: translateY(-2px) scale(1.1);
}

.footer p {
    margin-top: 10px;
    opacity: 0.4;
    font-size: 12px;
    color: var(--light2);
}





/* responsiveness code for tablets*/

@media screen and (min-device-width : 768px) and (max-device-width : 1024px) {
    .home {
        padding: 2vh 2vw;
    }

    #cursor {
        display: none;
        width: 0;
        height: 0;
    }

    .navbar div a span {
        font-size: 13px;
        margin-left: 6px;
    }

    .navbar div a {
        font-size: 12px;
    }

    .navbar div a:hover {
        color: var(--light1);
    }

    .navbar img {
        height: 50px;
    }

    .navbar .menu {
        display: none;
    }

    .home-container {
        padding: 10px 50px;
    }

    .home-container>p {
        font-size: 14px;
    }

    .home-container h1 {
        font-size: 48px;
    }

    .home-container span {
        font-size: 24px;
    }

    .home-container .intro-txt {
        font-size: 10px;
        width: 56%;
    }

    .home-container button {
        padding: 9px 18px;
        font-size: 10px;
        margin-top: 30px;
    }

    .about {
        padding: 2vh 2vw;
    }

    .about .heading {
        height: 40px;
    }

    .heading {
        height: 40px;
    }

    .heading span {
        font-size: 11px;
    }

    .heading .num {
        font-size: 20px;
    }

    .about-container {
        padding: 10px 50px;
    }

    .about-container .left-content {
        width: 40%;
        font-size: 14px;
    }

    .about-container .left-content h2 {
        line-height: 140%;
    }

    .about-container .right-content {
        padding: 40px 6px;
    }

    .about-container .right-content p {
        font-size: 10px;
    }

    .right-content .one::first-letter {
        font-size: 28px;
    }

    .about-container .right-content p span {
        font-size: 14px;
    }

    .skills {
        padding: 2vh 2vw;
    }

    .skills .heading {
        height: 40px;
    }

    .skills-container {
        padding: 10px 50px;
        grid-template-columns: repeat(3, 1fr);
    }

    .skills-container .elem img {
        width: 16%;
    }

    .skills-container .elem span {
        font-size: 14px;
    }

    .projects {
        padding: 2vh 2vw;
    }

    .projects .heading {
        height: 40px;
    }

    .projects-container {
        padding: 10px 50px;
    }

    .projects-container .elem-container .elem>a {
        font-size: 28px;
    }

    .projects-container .elem-container .elem img {
        width: 30px;
    }

    .contact {
        padding: 2vh 2vw;
    }

    .contact .heading {
        height: 40px;
    }

    .contact-container {
        padding: 10px 50px;
    }

    .contact-container h1 {
        font-size: 32px;
        margin-top: 30px;
    }

    .contact-content {
        height: 80%;
    }

    .contact-content .left h3 {
        font-size: 12px;
        margin-right: 9%;
    }

    .contact-content .left form {
        gap: 2px;
    }

    .contact-content .left form input,
    .contact-content .left form textarea,
    .contact-content .left form button {
        padding: 0.7rem;
        width: 90%;
    }

    .contact-content .left form textarea::placeholder {
        font-size: 10px;
    }

    .contact-content .left form input::placeholder {
        font-size: 10px;
    }

    .contact-content .left form button {
        font-size: 12px;
    }

    .contact-content .right {
        padding-top: 26px;
    }

    .contact-content .right h3 {
        font-size: 12px;
        letter-spacing: 0.7px;
        font-weight: 600;
    }

    .contact-content .right p {
        font-size: 12px;
    }

    .contact-content .right .social-links {
        width: 100%;
    }

    .contact-content .right .social-links a {
        font-size: 14px;
    }

    .contact-content .right .social-links a::first-letter {
        font-size: 18px;
    }

    .footer {
        height: 30vh;
        gap: 8px;
    }

    .footer img {
        width: 14%;
    }

    .footer .links {
        width: 40%;
    }

    .footer .links a {
        font-size: 11px;
    }

    .footer .social-icons {
        width: 30%;
    }

    .footer .social-icons a img {
        width: 18px;
    }
}




/* responsiveness code for mobiles */

@media screen and (min-device-width:320px) and (max-device-width:480px) {
    .home {
        padding: 20px;
    }

    #cursor {
        display: none;
        width: 0;
        height: 0;
    }

    .navbar .main-links {
        display: none;
    }

    .navbar .links-overlay{
        transition: all ease-in 0.5s;
    }

    .navbar img {
        height: 40px;
    }

    .navbar .menu {
        display: block;
        width: 20px;
        cursor: pointer;
        z-index: 1;
    }

    .navbar .links-overlay a {
        color: var(--darkBg);
    }

    .navbar .dark-menu-close {
        position: absolute;
        top: 10%;
        right: 10%;
        width: 16px;
        cursor: pointer;
    }


    .home-container {
        padding: 12px;
    }

    .home-container>p {
        font-size: 12px;
    }

    .home-container h1 {
        font-size: 28px;
    }

    .home-container span {
        font-size: 15px;
    }

    .home-container .intro-txt {
        font-size: 9px;
        width: 94%;
        text-align: justify;
    }

    .home-container button {
        padding: 8px 14px;
        font-size: 10px;
        margin-top: 30px;
    }

    .heading span {
        font-size: 12px;
    }

    .heading .num {
        font-size: 20px;
    }

    .about {
        padding: 20px;
    }

    .about .heading {
        height: 30px;
    }

    .about-container {
        flex-direction: column;
        gap: 40px;
        justify-content: center;
        padding: 16px 12px;
    }

    .about-container .left-content {
        width: 100%;
    }

    .about-container .left-content h2 {
        font-size: 20px;
        line-height: 120%;
    }

    .about-container .right-content {
        width: 100%;
        padding: 0;
    }

    .about-container .right-content p {
        font-size: 9px;
    }

    .right-content .one::first-letter {
        font-size: 16px;
    }

    .about-container .right-content p span {
        font-size: 11px;
    }

    .skills {
        padding: 20px;
    }

    .skills .heading {
        height: 30px;
    }

    .skills-container {
        padding: 12px;
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-container .elem {
        gap: 10px;
    }

    .skills-container .elem img {
        width: 14%;
    }

    .skills-container .elem span {
        font-size: 10px;
    }

    .projects {
        padding: 20px;
    }

    .projects .heading {
        height: 30px;
    }

    .projects-container {
        padding: 12px;
    }

    .projects-container .elem-container {
        gap: 20px;
    }

    .projects-container .elem-container .elem {
        padding: 10px 0;
    }

    .projects-container .elem-container .elem>a {
        font-size: 20px;
    }

    .projects-container .elem-container .elem img {
        width: 24px;
    }

    .contact {
        padding: 20px;
    }

    .contact .heading {
        height: 30px;
    }

    .contact-container {
        padding: 12px;
    }

    .contact-container h1 {
        text-align: center;
        font-size: 30px;
        margin-top: 30px;
    }

    .contact-content {
        flex-direction: column;
        gap: 10px;
    }

    .contact-content .left {
        width: 100%;
    }

    .contact-content .left h3 {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .contact-content .left form input,
    .contact-content .left form textarea,
    .contact-content .left form button {
        width: 100%;
        padding: 0.5rem;
    }

    .contact-content .left form textarea::placeholder {
        font-size: 8px;
    }

    .contact-content .left form input::placeholder {
        font-size: 8px;
    }

    .contact-content .left form button {
        font-size: 10px;
    }

    .contact-content .right {
        width: 100%;
        gap: 26px;
        padding-top: 10px;
    }

    .contact-content .right h3 {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .contact-content .right p {
        font-size: 12px;
    }

    .contact-content .right .social-links {
        width: 100%;
        margin-top: 30px;
    }

    .contact-content .right .social-links a {
        font-size: 12px;
    }

    .contact-content .right .social-links a::first-letter {
        font-size: 14px;
    }

    .footer {
        height: 30vh;
        gap: 8px;
    }

    .footer img {
        width: 38%;
    }

    .footer .links {
        width: 80%;
    }

    .footer .links a {
        font-size: 11px;
    }

    .footer .social-icons {
        width: 60%;
    }

    .footer .social-icons a img {
        width: 16px;
    }

    .footer p {
        font-size: 9px;
    }
}