@font-face {
    font-family: 'Amazon Ember';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: local('Amazon Ember'),
        url('//db.onlinewebfonts.com/t/157c6cc36dd65b1b2adc9e7f3329c761.woff2') format('woff2');
}

/* ::-webkit-scrollbar {
    width: 0.5px;
    height: 0.5px;
  }
  
  ::-webkit-scrollbar-button {
    width: 0.5px;
    height: 0.5px;
  } */


*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font__1: hsl(165, 8%, 80%);
    --font__2: hsl(302, 57%, 9%);
    --background-body__1: hsl(23, 84%, 59%);
    --background-body__2: hsl(2, 84%, 59%);
    --background-body__3: hsl(351, 65%, 48%);
    --background-body__4: hsl(341, 74%, 29%);
    --background-body__5: hsl(326, 78%, 18%);
    --background-body__6: hsl(302, 38%, 13%);
    --background-body: radial-gradient(circle at center, var(--background-body__3) 10%, var(--background-body__4) 30%, var(--background-body__5)60%, var(--background-body__6)80%);



    --background__6: hsla(165, 36%, 10%, 90%);
    --background__gh-img: hsl(171, 4%, 34%);
    --background__in-img: hsl(202, 100%, 37%);
    --background__ig-img: radial-gradient(circle at bottom left,
            hsl(54, 80%, 52%), 30%,
            hsl(0, 80%, 52%), 65%,
            hsl(240, 60%, 60%));
    --background__fb-img: hsl(220, 42%, 42%);
    --background__tw-img: hsl(203, 100%, 55%);
    --nav-bar-color: hsl(165, 100%, 55%);
    --box-shadow__1: 6px 6px 6px -2px;
    --box-shadow__2: 0px 5px 6px -1px;


    --background__4: rgba(237, 240, 240, 0.40);
    --background__5: rgba(237, 240, 240, 0.60);
    --background__6: rgba(38, 19, 40, 0.5);
    --border-card__1: 1px solid rgba(255, 255, 255, .25);
    --border-card-radius: 8px;
    --card-shadow: 0 0 10px 1px rgba(0, 0, 0, .3);
    --card-shadow__2: 0px 0px 16px 1px var(--font__2);
    --card-shadow__3: 0px 0px 10px 3px var(--font__2);
    --card-filter: blur(15px);

    --text-font: Amazon Ember, arial;
}

body {
    display: flex;
    flex-direction: column;
    background: var(--background-body);
    color: var(--font__2);
    height: 100vh;
    overflow: hidden;
    font-family: var(--text-font);
    z-index: 0;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    /*-----Screen size adjustment (mobile), Fallback otherwise (100vh)----*/
    width: 100%;
    /* width: var(--doc-width); */
    height: 100vh;
    /* height: var(--doc-height); */
}


/*--------------------------Floating Social Media Buttons----*/
.sm-img {
    width: 40px;
    height: 40px;
}

.sm-container {
    display: flex;
    position: fixed;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 5rem;
    z-index: 20;
}

.sm-img-box {
    display: flex;
    justify-content: right;
    padding: .4em;
    width: 60%;
    cursor: pointer;
    transition: ease-in-out .3s;
    box-shadow: var(--box-shadow__2) var(--background__3);
}

.sm-img-box:hover {
    width: 100%;
}

.gh-img {
    background-color: var(--background__gh-img);
}

.in-img {
    background-color: var(--background__in-img);
}

.ig-img {
    background: var(--background__ig-img);
}

.fb-img {
    background-color: var(--background__fb-img);
}

.tw-img {
    background-color: var(--background__tw-img);
}



/*------------------------------Navbar-------------*/
#nav-bar {
    display: flex;
    justify-content: right;
    position: absolute;
    width: 100%;
    height: 1.7rem;
    margin: 0;
    padding: 0 2em;
    font-weight: bold;
    background-color: var(--background__4);
    border: var(--border-card__1);
    border-bottom-left-radius: var(--border-card-radius);
    border-bottom-right-radius: var(--border-card-radius);
    box-shadow: var(--card-shadow);
    backdrop-filter: var(--card-filter);
    z-index: 30;
}

.nav-bar-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

a {
    text-decoration: none;
    color: var(--font__2);

}


a:visited {
    color: var(--font__2);
}

.list-item {
    list-style: none;
    margin: 0;
    padding: 0 .5em;
    font-size: 1.3em;
    display: flex;
    position: relative;
    justify-content: center;
}

.list-item::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid transparent;
    transform: translate(0, 1.2em);
    width: 0;
}

.list-item:hover::before {
    border-bottom: 2px solid var(--background-body__1);
    width: 100%;
    transition: width ease-out 200ms;
    left: 0;
}

.list-item>a:hover {
    color: var(--nav-bar-color);
    transition: color ease 200ms;
}

.navbar-buttom {
    visibility: hidden;
}

/*------------------------About----------*/

.card {
    display: flex;
    /* position: relative; */
    justify-content: center;
    align-items: center;
    margin: 0 2rem;
    padding: 0rem 3rem;
    width: 1220px;
    height: 600px;
    background-color: var(--background__4);
    border: var(--border-card__1);
    border-radius: var(--border-card-radius);
    box-shadow: var(--card-shadow);
    backdrop-filter: var(--card-filter);
}

.profile-frame {
    float: left;
    --profile-frame: 300px;
    width: var(--profile-frame);
    height: var(--profile-frame);
    border-radius: 1000px;
    box-shadow: var(--card-shadow);
    transform: translateY(-1.2rem);
    /* overflow: hidden; */
}

.profile-img {
    width: var(--profile-frame);
    height: var(--profile-frame);
    /* transform: rotate(40deg); */
}


.title-intro {

    position: absolute;
    transform: translate(-16rem, -12rem);
    font-size: 2.5rem;
}

.title-intro>span {
    font-size: 3.2rem;
    transform: translate(.5rem, -.5rem);

}

.text-intro {
    float: left;
    width: 800px;
    margin: 1.5rem;
    font-weight: lighter;
    text-indent: 20px;
    text-align: justify;
    line-height: 1.7;
    font-size: 1.2rem;
    transform: translate(-1.2rem, 1.8rem);
}

.bioGitHub {
    display: flex;
    justify-content: center;
    position: absolute;
    width: 220px;
    height: 30px;
    font-weight: bold;
    text-align: justify;
    line-height: 1.7;
    font-size: 1.2rem;
    transform: translate(25.5rem, 9.2rem);
}

.download-btn {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;    
    text-indent: 20px;
    transform: translateY(14rem);
}

.download-btn,
#submit {
    width: 200px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    color: var(--font__2);
    box-shadow: var(--card-shadow);
    background: var(--background-body__4);
    transition: .3s ease-in-out;
    border-radius: 32px;
    cursor: pointer;
}



.resume-link {
    display: flex;
    position: relative;
    transform: translateX(1rem);

}

.resume-link>img {
    position: absolute;
    transform: scale(.5) translate(-8rem, -3rem);
}

.download-btn:hover,
#submit:hover {
    background: var(--background-body__3);
}

.download-btn:hover>.resume-link,
#submit:hover {
    color: var(--font__1);
}

.download-icon {
    filter: grayscale(200%);
    -webkit-filter: grayscale(200%);
}   

/*---------------------------Projects/Contact-Functionality---------------*/
.tab-side {
    position: fixed;
    transform: translateX(100%);
    z-index: 10;
    /* background: var(--background-body); */
    transition: transform 0.3s;
}

.tab-side-active {
    transform: translateX(0);
}

.tab-side-btn {
    visibility: hidden;
    display: flex;
    justify-content: center;
    position: absolute;
    right: 3rem;
    top: 4.5rem;
    width: 35px;
    height: 35px;
    font-size: 3rem;
    font-weight: bolder;
    cursor: pointer;
    color: var(--background-body__1);
    z-index: 20;
}

.tsb-active {
    visibility: visible;
}

.ts {
    font-size: 2rem;
}

.tsb1 {
    transform: translate(.4rem, -0.1rem) rotate(45deg);

}

.tsb2 {
    transform: translate(-.5rem, -0.1rem) rotate(-45deg);
}

/*---------------------------Projects---------------*/

.pr-card,
.ct-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    top: 1.2rem;
    margin: 0 2rem;
}

.pr-title {
    display: flex;
    transform: translateY(-14rem);
    font-size: 3rem;
}

.pr-subtitle {
    display: flex;
    font-size: 1.5rem;
    transform: translateY(-14rem);
}


.pr-container {
    position: absolute;
    display: grid;
    padding: .5rem;

    grid-template-columns: repeat(2, 520px);
    align-items: stretch;
    grid-auto-flow: dense;
    grid-auto-rows: 290px;
    column-gap: 25px;
    row-gap: 25px;
    width: 1100px;
    height: 450px;
    overflow-y: scroll;
    overflow-x: hidden;
    transform: translateY(3rem);
    z-index: 6;
}

::-webkit-scrollbar {
    width: 1.3rem;
}

::-webkit-scrollbar-track {
    background: var(--background__6);
    border-radius: 1000px;
    box-shadow: inset var(--card-shadow__2);
    margin-inline: .1rem;
}

::-webkit-scrollbar-thumb {
    background-color: var(--background-body__3);
    border: .1rem solid var(--background-body__6);
    box-shadow: inset var(--card-shadow__3);
    border-radius: 1000px;
}

@supports (scrollbar-color: var(--background-body__6)) {
    * {
        scrollbar-color: var(--background-body__4) var(--background-body__6);
        scrollbar-width: auto;
    }
}

.pr-img {
    transform: translateY(1rem);
    width: 248px;
    height: 248px;
    border-radius: 6px;
}

.pr-img-box {
    display: flex;
    border: var(--border-card__1);
    box-shadow: var(--card-shadow);
    background: var(--background__5);
    border-radius: 8px;
    z-index: 10;
}

.pr-description {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 230px;
    height: 200px;
    line-height: 1.7;
    transform: translate(1rem, 4rem);
}

.desc-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.desc-text {
    font-weight: lighter;
    text-indent: 20px;
    font-size: .8rem;
    text-align: justify;
}

.pr-item-title {
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    transform: translateY(.6rem);
    font-weight: bolder;
    color: var(--background-body__4);
}


/*---------------------------Contact---------------*/

.ct-title {
    display: flex;
    transform: translateY(-16rem);
    font-size: 3rem;
}

#ct-form {
    display: flex;
    position: absolute;
    align-items: center;
    flex-direction: column;
    width: 600px;
    height: 500px;
    transform: translateY(2.5rem);
}

#name,
#email,
#message {
    padding-left: .5rem;
    margin: 1.3rem;
    width: 500px;
    outline: none;
    font-weight: lighter;
    text-align: justify;
    line-height: 1.7;
    font-size: 1.2rem;
    border: var(--border-card__1);
    box-shadow: var(--card-shadow);
    border-radius: var(--border-card-radius);
}

#name,
#email {
    width: 400px;
    height: 2.5rem;
}

#message {
    resize: none;
    width: 400px;
    height: 170px;
}

#submit {
    display: flex;
    justify-content: center;
    align-items: center;
}


/*----------------------@Media-Query--------------------*/

@media (max-width: 1300px) {


    .card {
        width: 900px;
        height: 500px;
        transform: translateY(-3rem);
    }

    .profile-frame {
        --profile-frame: 200px;
        width: var(--profile-frame);
        height: var(--profile-frame);
        transform: translateY(-3.2rem);
    }

    .profile-img {
        width: var(--profile-frame);
        height: var(--profile-frame);
    }


    .title-intro {

        position: absolute;
        transform: translate(-13rem, -12rem);
        font-size: 1.5rem;
    }

    .title-intro>span {
        font-size: 2.2rem;
        transform: translate(.5rem, -.5rem);

    }

    .text-intro {
        width: 600px;
        font-size: 1rem;
        transform: translate(-1.2rem, -.8rem);
    }

    .bioGitHub {
        font-size: 1rem;
        transform: translate(19rem, 5.2rem);
    }

    .download-btn {
        transform: translateY(12rem);
    }


    /*---------------------------Projects---------------*/
    .pr-title {
        transform: translateY(-12rem);
        font-size: 2rem;
    }

    .pr-subtitle {
        font-size: 1.2rem;
        transform: translateY(-14.3rem);
    }


    .pr-container {
        grid-template-columns: repeat(2, 420px);
        align-items: stretch;
        grid-auto-flow: dense;
        grid-auto-rows: 260px;
        column-gap: 25px;
        row-gap: 25px;
        width: 900px;
        height: 400px;
        transform: translateY(2.5rem);
    }

    .pr-img {
        width: 218px;
        height: 218px;
    }

    .pr-description {
        width: 180px;
        height: 220px;
        line-height: 1.7;
        transform: translate(1rem, 2rem);
    }

    .desc-title {
        font-size: 1rem;
    }

    .desc-text {
        text-indent: 18px;
        font-size: .8rem;
    }

    .pr-item-title {
        font-size: 1.1rem;
    }


    /*---------------------------Contact---------------*/

    .ct-title {
        transform: translateY(-14rem);
        font-size: 2rem;
    }

    .sm-container {
        flex-direction: row;
        height: 5rem;
        bottom: 0;
        width: 100%;
        transform: rotate(180deg);
    }

    .sm-img-box {
        display: flex;
        width: 3em;
        height: 3em;
        padding: .4em;
        justify-content: center;
        cursor: pointer;
        transform: rotate(180deg);
        transition-delay: .5s;
        transition: transform ease-in-out .3s, height ease-in-out .3s;
    }

    .sm-img-box:hover {
        height: 5em;
        width: 3em;
    }

}


@media (max-width: 910px) {
    .card {
        width: 750px;
        height: 500px;
    }

    .profile-frame {
        --profile-frame: 150px;
        width: var(--profile-frame);
        height: var(--profile-frame);
        transform: translateY(-3.2rem);
    }

    .profile-img {
        width: var(--profile-frame);
        height: var(--profile-frame);
    }


    .title-intro {
        transform: translate(-11rem, -12rem);
        font-size: 1rem;
    }

    .title-intro>span {
        font-size: 1.8rem;
        transform: translate(.5rem, -.5rem);

    }

    .text-intro {
        width: 600px;
        font-size: .9rem;
        transform: translate(-1.2rem, -.8rem);
    }

    .bioGitHub {
        font-size: 1rem;
        transform: translate(16rem, 3.2rem);
    }


    /*---------------------------Projects---------------*/
    .pr-title {
        transform: translateY(-12rem);
        font-size: 1.8rem;
    }

    .pr-subtitle {
        font-size: 1rem;
        transform: translateY(-13.7rem);
    }


    .pr-container {
        grid-template-columns: repeat(1, 500px);
        align-items: stretch;
        grid-auto-flow: dense;
        grid-auto-rows: 258px;
        overflow-y: scroll;
        column-gap: 25px;
        row-gap: 25px;
        width: 750px;
        height: 400px;
        transform: translate(8rem, 2.5rem);
    }

    .pr-img {
        width: 218px;
        height: 218px;
    }

    .pr-description {
        width: 240px;
        height: 220px;
        line-height: 1.7;
        transform: translate(1rem, 2rem);
    }

    .desc-title {
        font-size: 1rem;
    }

    .desc-text {
        text-indent: 18px;
        font-size: .8rem;
    }

    .pr-item-title {
        font-size: 1.1rem;
    }


    /*---------------------------Contact---------------*/

    .ct-title {
        transform: translateY(-14rem);
        font-size: 2rem;
    }


}

@media (max-width: 768px) {
    .card {
        width: 540px;
        height: 500px;
    }

    .profile-frame {
        --profile-frame: 100px;
        width: var(--profile-frame);
        height: var(--profile-frame);
        transform: translateY(-3.2rem);
    }

    .profile-img {
        width: var(--profile-frame);
        height: var(--profile-frame);
    }


    .title-intro {
        transform: translate(-5.5rem, -12.5rem);
        font-size: 1rem;
    }

    .text-intro {
        width: 610px;
        margin: 0 .3rem;
        font-size: .8rem;
        transform: translate(-1.2rem, -.8rem);
    }

    .bioGitHub {
        font-size: .8rem;
        transform: translate(11rem, 1.4rem);
    }


    /*---------------------------Projects---------------*/
    .pr-title {
        transform: translateY(-12rem);
        font-size: 1.8rem;
    }

    .pr-subtitle {
        font-size: 1rem;
        transform: translateY(-13.7rem);
    }


    .pr-container {
        grid-template-columns: repeat(1, 480px);
        align-items: stretch;
        grid-auto-flow: dense;
        grid-auto-rows: 258px;
        overflow-y: scroll;
        column-gap: 25px;
        row-gap: 25px;
        width: 750px;
        height: 400px;
        transform: translate(8rem, 2.5rem);
    }

    .pr-img {
        width: 218px;
        height: 218px;
    }

    .pr-description {
        width: 240px;
        height: 220px;
        line-height: 1.7;
        transform: translate(1rem, 2rem);
    }



}

@media (max-width: 450px) {

    body,
    section {
        width: 420px;
        height: 900px;
    }

    /*---------------------------Navbar---------------*/
    #nav-bar {
        width: 420px;
        height: 40px;
    }

    .list-item {
        list-style: none;
        margin: 0;
        padding: 0 .7em;
        font-size: 1em;
    }

    /*---------------------------About---------------*/
    .card {
        width: 380px;
        height: 650px;
        transform: translateY(-3rem);
        margin: auto;
    }

    .profile-frame {
        --profile-frame: 100px;
        width: var(--profile-frame);
        height: var(--profile-frame);
        transform: translate(0rem, -13rem);
    }

    .profile-img {
        width: var(--profile-frame);
        height: var(--profile-frame);
    }


    .title-intro {
        transform: translate(0rem, -18rem);
        font-size: .85rem;
    }

    .text-intro {
        position: absolute;
        width: 320px;
        margin: 0;
        padding: 0;
        font-size: .85rem;
        transform: translate(0rem, 3.1rem);
    }

    .bioGitHub {
        font-size: .7rem;
        transform: translate(0rem, -8.8rem);
    }

    .download-btn {
        transform: translateY(18rem);
    }




    /*---------------------------Projects---------------*/
    .pr-title {
        transform: translateY(-18rem);
        font-size: 1.8rem;
    }

    .pr-subtitle {
        justify-content: center;
        font-size: 1rem;
        width: 360px;
        transform: translateY(-17rem);
    }


    .pr-container {
        grid-template-columns: repeat(1, 340px);
        align-items: stretch;
        grid-auto-flow: dense;
        grid-auto-rows: 230px;
        overflow-y: scroll;
        column-gap: 15px;
        row-gap: 10px;
        width: 375px;
        height: 520px;
        transform: translate(0rem, 2.5rem);

    }

    .pr-img {
        width: 150px;
        height: 150px;
        margin-right: .5rem;

    }

    .pr-description {
        width: 175px;
        height: 200px;
        line-height: 1.7;
        transform: translate(0rem, 0.5rem);
    }

    .pr-item-title {
        display: flex;
        justify-content: center;
        font-size: 1rem;
        width: 150px;
        text-align: center;
    }

    .desc-text {
        font-weight: lighter;
        text-indent: 20px;
        font-size: .8rem;
        text-align: justify;
    }

    .tsb1 {
        transform: translate(3.36rem, .7rem) rotate(45deg);

    }

    .tsb2 {
        transform: translate(2.4rem, .7rem) rotate(-45deg);
    }


    /*---------------------------Contact---------------*/

    .ct-title {
        display: flex;
        transform: translateY(-18rem);
        font-size: 2.3rem;
    }

    #ct-form {
        width: 370px;
        height: 600px;
        transform: translateY(2.5rem);
    }

    #name,
    #email,
    #message {
        padding-left: .5rem;
        margin: 1.3rem;
        outline: none;
        font-weight: lighter;
        text-align: justify;
        line-height: 1.7;
        font-size: 1.2rem;
        border: var(--border-card__1);
        box-shadow: var(--card-shadow);
        border-radius: var(--border-card-radius);
    }

    #name,
    #email {
        width: 350px;
        height: 2.5rem;
    }

    #message {
        resize: none;
        width: 350px;
        height: 170px;
    }

    #submit {
        text-align: left;

        text-indent: 0px;
        transform: translateY(8.5rem);

    }
}