/* Light mode */
/* :root {
    --globalRadius: 5px;
    --mainBackground: #ededed;
    --mainColor: #FFF;
    --mainColorHover: #DDD;
    --secondaryColor: #404040;
    --inputField: #F5F5F5;
    --secondTextColor: #C0C0C0;
    --sidebar: #DEEEFF;
} */

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --globalRadius: 20px;
        --mainBackground: #FFF;
        --mainColor: #1F2324;
        --secondaryColor: #FFF;
        --color1: #F6C042;
        --color2: #FFAC2E;
        --color3: #F2721D;
    }
}


::-webkit-scrollbar {
    width: 5px;
    background: transparent;
    border-radius: var(--globalRadius);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #F6C042;
    /* border-radius: 5px; */
}


/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #FFAC2E;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    /* min-height: 90vh; */
    margin: 0;
    background-color: var(--mainBackground);
    color: var(--mainColor);
    overflow-x: hidden;
    position: relative;
    color: #2a2a2a;
}

header {
    position: fixed;
    display: flex;
    width: 200px;
    height: 230px;
    z-index: 9999;
    cursor: pointer;
    user-select: none;
    /* transform: translateY(-10%); */
    transform: translate(-15%, -15%) scale(0.7);
    transition: all 0.3s;
}

.header_hidden {
    transform: translateY(-80%);
}

.header_hidden:hover {
    transform: translateY(-50%);
}

.menu_back {
    width: 180px;
    height: 180px;
    background-image: url(../img/menu_back.svg);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    transition: all 0.3s;
    position: absolute;
    overflow: hidden;
}

header:hover .menu_back {
    width: 210px;
    height: 210px;
}

.menu_front {
    width: 130px;
    height: 130px;
    background-image: url(../img/menu_front.svg);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    position: absolute;
    transition: all 0.3s;
}

header:hover .menu_front {
    margin-top: -10px;
    margin-left: -10px;
}

.header_expanded .menu_front {
    margin-top: -35px !important;
    margin-left: -35px !important;
}

.header_expanded .menu_back {
    width: 390px !important;
    height: 390px !important;
}

header ul {
    z-index: 999;
    font-size: 2.5em;
    font-weight: 600;
    margin-top: 50px;
    margin-left: 0px;
    opacity: 0;
    list-style-type: none;
    pointer-events: none;
    transition: all 0.3s;
}

header ul li {
    margin-top: 20px;
}

.header_expanded ul {
    margin-left: 80px;
    opacity: 1;
    pointer-events: all;
}

header ul a {
    color: var(--secondaryColor);
    text-decoration: none;
    transition: all 0.3s;
}

header ul a:hover {
    color: var(--mainColor);
}

.header_hidden .menu_icon {
    bottom: 70px;
    left: 40px;
}

.header_peak {
    transform: translateY(-50%);
}

.header_expanded {
    transform: none;
}

.menu_icon {
    position: absolute;
    bottom: 100px;
    left: 70px;
    z-index: inherit;
    color: var(--secondaryColor);
    transform: scale(2);
    transition: all 0.3s;
}

header:hover .menu_icon {
    transform: scale(2.3);
}

.header_expanded .menu_icon {
    left: -50px;
    transform: scale(0);
    opacity: 0;
}

footer {}

a {
    color: var(--color2)
}

a:hover {
    color: var(--color2)
}

#home {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing_header {
    position: absolute;
    width: 100vw;
    /* top: 35%; */
    /* left: 12%; */
    /* transform: translate(-50%, -50%); */

    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    -webkit-text-stroke: 2px var(--color3);
    -webkit-text-fill-color: var(--mainBackground);
    /* backdrop-filter: blur(5px); */
    margin: 0;
    padding: 0;
    font-size: 13vw;
    text-align: center;
    /* opacity: 0.6; */
}

#threedcontainer {
    margin-bottom: 100px;
    pointer-events: none;
}

.portrait {
    border-radius: 20px;
    width: 20vw;
    margin-left: 50%;
    transform: translate(-50%);
    margin-top: -5%;
}

h2 {
    margin-top: 2%;
    font-size: 4vw;
    text-align: center;
}

#about p {
    margin: 0 auto;
    margin-top: 10px;
    width: 50%;
    font-size: 1.2vw;
    text-align: center;
}

h3 {
    margin-top: 50px;
    color: #FFAC2E;
    font-size: 1.5vw;
    text-align: center;
}

.skill_container {
    width: 35%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skill_pill {
    font-size: 1.3vw;
    color: white;
    background-color: #F6C042;
    border-radius: 50px;
    padding: 10px 20px;
    margin: 10px;
}

/* .resume_container svg{
    width: 3vw;
    height: 3vw;
    background-color: #F2721D;
    display: flex;
    justify-content: center;
    align-items: center;
} */

.resume_container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.resume_container svg {
    /* transform: scale(2); */
    height: 60px;
    width: fit-content;
    margin: 20px;
    transition: all 0.3s;
}

.resume_container svg:hover {
    transform: scale(0.95);
}


#works {
    /* overflow: hidden; */
    /* height: 100vh; */
    position: relative;
    display: flex;
    flex-wrap: wrap;
    /* width: fit-content; */
    margin: 0 auto;
    /* background-color: var(--mainColor); */
    margin-top: -4%;
}

.para_containers {
    margin: 0 auto;
    width: 33.3333333%;
    max-height: 100vh;
    /* top: 50% !important; */
    /* left: 50% !important; */
    /* border: 2px solid var(--color2); */
    /* padding: 60px; */
    background-color: var(--mainBackground);
    /* height: max-content; */
    /* background-size: cover; */
    background-color: #2a2a2a;
    background-position: bottom;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
}

.preview_animation {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    transition: all 0.3s;
    /* filter: brightness(0.7) saturate(0.2); */
    opacity: 0.4;
    transform: scale(1.01) translateY(-0.9%);
}

.preview_animation:hover {
    opacity: 1;
    /* filter: brightness(1); */
}

/* scroll to #works first */

.preview_animation_active {
    opacity: 1;
    filter: none;
    transform: scale(1);
    border-radius: 0px !important;
}

.contact_container {
    width: 40%;
    margin: 0 auto;
    padding-bottom: 3vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.contact_container .skill_pill {
    background-color: #F2721D;
    text-decoration: none;
    transition: all 0.3s;
}

.contact_container .skill_pill:hover {
    /* background-color: #F2571D; */
    color: white;
    transform: scale(0.95);
}

/* PROJECTS PAGE============== */


#project_body {
    background-color: #2a2a2a;
}

.start_up_anim {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 9999;
    transition: all 0.5s;
}

.start_up_anim_active {
    transform: translateX(-100%);
    /* opacity: 0; */
}

#projects {
    display: flex;
    /* justify-content: flex-end; */
    align-items: flex-end;
    flex-direction: column;
    transition: all 0.3s;
}

.loadin_anim {
    transform: translateX(100%);
    opacity: 0;
}

.project_image {
    width: 60%;
}

#sidebar {
    color: #fff;
    position: fixed;
    transition: all 0.3s;
    width: 30%;
    height: 100vh;
    background-color: #2a2a2a;
    padding: 50px;
    /* padding-top: 150px; */
    padding-top: 190px;
}

.loading_sidebar {
    transform: translateX(-100%);
}

#sidebar h1 {
    -webkit-text-stroke: transparent;
    -webkit-text-fill-color: none;
    font-size: 3em;
    text-align: left;
}

#sidebar h2 {
    font-size: 1.5em;
    text-align: left;
}

#sidebar h3 {
    font-size: 1em;
    text-align: left;
}

#sidebar ul {
    margin-top: 10px;
    /* padding-left: 20px; */
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

#sidebar li {
    margin: 10px;
    margin-left: 0;
    padding: 10px 20px;
    background-color: white;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 500;
    color: #2a2a2a;
}

#sidebar a li {
    color: #2a2a2a;
    background-color: #FFF;
    /* color: #FFAC2E; */
    text-decoration: none;
    word-break: break-all;
    transition: all 0.3s;
}

#sidebar a li:hover {
    background-color: #FFF;
    color: #FFAC2E;
}




























@media only screen and (max-width: 1000px) {
    header {
        transform: scale(0.6) translate(-34%, -34%);
    }


    #threedcontainer {
        /* width: 200%;
        transform: translateX(-50%); */
    }

    .portrait {
        border-radius: 20px;
        width: 70vw;
        margin-left: 50%;
        transform: translate(-50%);
        margin-top: -5%;
    }

    h1 {
        font-size: 16vw;
    }

    h2 {
        font-size: 3em;
    }

    h3 {
        font-size: 2em;
    }

    #about p {
        font-size: 1em;
        width: 90%;
    }

    .skill_container {
        width: 100%;
    }

    .skill_pill {
        font-size: 1.5em;
    }


    .para_containers {
        margin: 0 auto;
        width: 90%;
        margin-bottom: 20px;
    }

    .preview_animation,
    .para_containers {
        border-radius: 20px;
    }

    .project_image {
        width: 100% !important;
    }

    #sidebar {
        /* position: relative !important; */
        width: 100% !important;
        height: auto !important;
        padding: 20px !important;
        overflow-y: auto;
        /* padding-top: 150px; */
        /* padding-top: 190px; */
    }

    #projects {
        position: relative;
        padding-top: 90vh !important;
        z-index: 100;
        pointer-events: none;
    }


}