@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400&family=Rubik:wght@500&family=Tajawal:wght@400;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    font-family: 'Josefin Sans', sans-serif;
}

.mob-nav {
    display: none;
}

header {
    padding: 1rem 5rem;
    display: flex;
    justify-content: space-between;
}

.menu-mobile {
    display: none;
}

.logo1 {
    width: 60px;
}

.home1 {
    position: relative;
    height: min-content;
}

.l-1 {
    text-transform: capitalize;
    color: white;
    font-size: 25px;
    text-decoration: none;
}

.c-links {
    padding: 0;
    list-style-type: none;
    display: flex;
    column-gap: 5rem;
    justify-content: space-between;
}

.wave-t {
    z-index: -1;
    top: 0;
    right: 0;
    position: absolute;
    width: 80%;
}

.main-2 {
    display: flex;
    column-gap: 5rem;
    position: relative;
    justify-content: flex-start;
    padding: 1rem 5rem;
}


.line {
    background-color: #7f7f7f;
    width: 1px;
    height: 500px;
}

.name {
    top: 30%;
    right: 60%;
    position: absolute;
}

h1 {
    margin-bottom: 10px;
    text-transform: capitalize;
    font-size: 5rem;

}

.job {
    margin: 20px 0 0 60px;
    font-size: 1.3rem;
    color: #4114F5;
}

@keyframes float {
    0% {
        transform: rotate(-30deg) translateY(20%);
        transition: .1s ease;
        -webkit-transform: rotate(-30deg) translateY(20%);
        -moz-transform: rotate(-30deg) translateY(20%);
        -ms-transform: rotate(-30deg) translateY(20%);
        -o-transform: rotate(-30deg) translateY(20%);
        -webkit-transition: .1s ease;
        -moz-transition: .1s ease;
        -ms-transition: .1s ease;
        -o-transition: .1s ease;
    }

    50% {
        transform: rotate(-30deg) translateY(-20%);
        transition: .1s ease;
        -webkit-transform: rotate(-30deg) translateY(-20%);
        -moz-transform: rotate(-30deg) translateY(-20%);
        -ms-transform: rotate(-30deg) translateY(-20%);
        -o-transform: rotate(-30deg) translateY(-20%);
    }

    100% {
        transform: rotate(-30deg) translateY(20%);
        transition: .1s ease;
        -webkit-transform: rotate(-30deg) translateY(20%);
        -moz-transform: rotate(-30deg) translateY(20%);
        -ms-transform: rotate(-30deg) translateY(20%);
        -o-transform: rotate(-30deg) translateY(20%);
    }
}

.rot-im {
    position: absolute;
    animation: float 5s infinite;
}

.pic1 {
    left: 200px;
}

.pic2 {
    right: 55%;
}

.pic3 {
    left: 150px;
    bottom: 70px;
}

.pic4 {
    right: 45%;
    bottom: 20%;
}

#skills {
    margin: 8rem 5rem;
}

h2 {
    text-transform: capitalize;
    font-weight: 400;
    font-size: 2.5rem;
}

.sk-w2 {
    padding: 3rem 2rem 0;
    display: flex;
    column-gap: 2rem;
    align-items: center;
    justify-content: flex-start;
}

.lang-flex {
    flex-wrap: wrap;
    padding: 4rem 0;
    display: flex;
    justify-content: space-evenly;
    column-gap: 1rem;
}

.lang {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid;
    width: 200px;
    height: 200px;
    border-radius: 100%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    -o-border-radius: 100%;
}

.js {
    border-color: #FFFAD1;
    background-color: #FFFAD1;
}

.css {
    border-color: #E9FBFF;
    background-color: #E9FBFF;
}

.html {
    border-color: #FFE9E9;
    background-color: #FFE9E9;
}

/* skills code ends here */

#work {
    margin: 10rem 5rem;
    padding-left: 2rem;
    border-left: 1px solid rgb(127, 127, 127);
}

.projects {
    padding: 2rem 0 0;
}

.conts {
    display: flex;
    justify-content: flex-start;
    column-gap: 2rem;
}

.cr-projects {
    overflow-x: auto;
    padding: 3rem 0;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    display: flex;
    overflow-x: auto;

    justify-content: space-between;
    column-gap: 1rem;
}

.pro-1 {
    scroll-snap-align: start;
    width: 100%;
    background-color: rgb(255, 255, 255);
}

.cr-projects::-webkit-scrollbar {
    width: 0;
}

.cs {
    width: 400px;
}

.ks {
    text-decoration: none;

}

.source-c {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.icon {
    cursor: pointer;
}

.project-l2 {
    text-transform: capitalize;
    color: #20034c;
    text-decoration: none;
}

.github-acc {
    color: #20034c;
    text-decoration: none;
}

/* footer code */
footer {
    background-image: url('Vector (2).png');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 7rem 0rem 0;
    position: relative;
}

.l-m {
    position: relative;
    z-index: 1;
    margin: 0;
}

.ft-p1 {
    font-size: 1.2rem;
    color: white;
    margin: 10px 0;
}

.sc-m {
    display: flex;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: flex-start;
    column-gap: 1rem;
}

.l-n {
    padding: 10px 0;
    list-style-type: none;
}

.l-m {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media screen and (max-width:764px) {

    header {
        position: relative;
        align-items: center;
        padding: 1rem;
    }

    nav {
        display: none;
    }

    .c-links {
        column-gap: 1rem;

    }

    .wave-t {
        width: 500px;
    }

    .main-2 {
        column-gap: 1rem;
        padding: 1rem;
        margin: 3rem 0 0;
    }

    .line {

        height: 400px;
    }

    .name {
        top: 20%;
        right: 15%;
    }

    h1 {
        font-size: 4rem;

    }

    .job {
        font-size: 1.1rem;

    }

    .rot-im {
        position: absolute;
        animation: float 5s infinite;
    }

    .pic1 {
        left: 40px;
    }

    .pic2 {
        right: 10%;
    }

    .pic3 {
        display: none;
    }

    .pic4 {
        right: 40%;
        bottom: 10%;
    }

    #skills,
    #work {
        margin: 4rem 1rem;
    }

    #work {
        padding-left: 1rem;
    }

    .lang {
        display: flex;
        margin: 1rem 0;
        width: 150px;
        height: 150px;
    }

    .cr-projects {

        column-gap: 2rem;
    }

    .projects {
        padding: 0;
    }

    .cs {
        width: 370px;
    }

    .l-m {
        display: block;
    }

    .menu-mobile {
        margin: 13px 0;
        display: block;
        cursor: pointer;
        position: relative;
    }

    h2 {
        font-size: 2rem;
    }

    .mob-nav {
        display: none;
        z-index: 1;
        right: 0;
        left: 0;
        top: 0px;
        height: 500px;
        width: 100%;
        position: absolute;
        background-color: #5000CA;

    }

    .c-links2 {

        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        margin: 30px 0;
    }

    .c-links2 li {
        margin: 20px 0;
        list-style-type: none;
    }

    .l-2 {
        text-decoration: none;
        color: white;
        text-transform: capitalize;
        font-size: 2rem;
    }

    .m-b {
        cursor: pointer;
        margin: 10px 0;
        content: "";
        width: 45px;
        height: 5px;
        background-color: white;
    }

    .del {
        padding: 20px;
    }

    .m-b::before {
        top: 0px;
        position: absolute;
        content: "";
        width: 45px;
        height: 5px;
        background-color: white;
    }

    .m-b::after {
        bottom: 0px;
        position: absolute;
        content: "";
        width: 45px;
        height: 5px;
        background-color: white;
    }
}

@media screen and (max-width:1023px) and (min-width:767px) {
    header {
        padding: 1rem 2rem;
    }

    .menu-mobile {
        display: none;
    }

    .mob-nav {
        display: none;
    }

    .l-1 {
        font-size: 28px;

    }

    .c-links {
        column-gap: 1.5rem;
    }

    .wave-t {
        width: 700px;
    }

    .main-2 {
        padding: 1rem 2rem;
    }

    .name {
        top: 20%;
        right: 50%;
    }

    .pic1 {
        left: 100px;
    }

    .pic2 {
        top: 15%;
        right: 25%;
    }

    .pic3 {
        left: 100px;
        bottom: 80px;
    }

    .pic4 {
        right: 40%;
        bottom: 20%;
    }

    #work {
        margin: 10rem 2rem;
        padding-left: 2rem;
        border-left: 1px solid rgb(127, 127, 127);
    }

}