@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100;0,9..40,200;0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;0,9..40,1000;1,9..40,100;1,9..40,200;1,9..40,300;1,9..40,400&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,700&display=swap");

:root {
    --primary-color: #0a0908;
    --secondary-color: #F0EFEE;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

body {
    /* background-color: rgb(14, 14, 14); */
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-family: "DM Sans", sans-serif;
    /* font-family: 'Courier Prime', monospace; */
    position: relative;
}

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

main {
    padding: 6rem 6rem 0 6rem;
    display: flex;
    flex-flow: row;
    gap: 3rem;
    height: 100vh;
}

.left {
    flex: 1;
    /* width: 300px; */
    align-self: flex-start;
}

.right {
    padding: 0 2rem;
    flex: 1;
    overflow-y: auto;
}

.right::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, newer Edge */
}

.myself {
    width: 80%;
}

.myself #myAvatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    /* padding: 0.5rem 0; */
}

.profession {
    font-size: 1.3rem;
    font-weight: 500;
}

.bio {
    padding: 0.5rem 0;
    color: gray;
}

.nav {
    margin: 2rem 0;
    display: flex;
    flex-flow: column;
    gap: 0.8rem;
}

.nav a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
    transition: color 0.5s ease-in-out;
}

.h_box:hover .line {
    background-color: red;
}

.h_box:hover a {
    color: red;
}

.nav .h_box .mouse_enter_line {
    background-color: red;
}

.nav .h_box .mouse_enter {
    color: red;
}

.h_box {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 1rem;
}

.line {
    height: 2px;
    width: 30px;
    background-color: var(--secondary-color);
    transition: background-color 0.5s ease-in-out;
}

.socials {
    display: flex;
    flex-flow: row wrap;
    gap: 0.5rem;
}

.socials a {
    display: flex;
    flex-flow: column;
    gap: 0.5rem;
    position: relative;
}

.socials a i {
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* .socials a:nth-child(1):hover{
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;
            background-color: white;
            color: black;
        } */


.socials a label {
    font-weight: 700;
    color: var(--primary-color);
    padding: 0.5rem;
    background-color: var(--secondary-color);
    border-radius: 5px;
    visibility: hidden;
    position: absolute;
    top: 2.5rem;
}

.socials a:hover label {
    visibility: visible;
}

.themes {
    margin: 2rem 0;
}

.themes i {
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* 
        #projects {
            margin: 4rem 0;
            display: flex;
            flex-flow: column;
        } */

#skills {
    padding: 0 0 2rem 0;
    display: flex;
    flex-flow: column;
}

.project {
    padding: 1.5rem;
    display: flex;
    flex-flow: row;
    gap: 1rem;
}

.project:hover {
    cursor: pointer;
    /* From https://css.glass */
    /* background: rgba(125, 125, 125, 0.1); */
    /* background-color: rgba(241, 224, 198, 0.1); */
    background-color: rgba(125, 125, 125, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
}

.project .project-thumbnail {
    width: 150px;
    border-radius: 5px;
    height: 90px;
}

.project .project-thumbnail img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.project .project-thumbnail video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.project .project-info {
    flex: 1;
}

.project .project-info .project_title {
    padding: 0 0 0.5rem 0;
    font-weight: 700;
}

ul {
    padding: 1rem 0;
    list-style-type: none;
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    align-items: center;
}

ul li {
    height: 80px;
    width: 80px;
    border-radius: 5px;
    background-color: var(--secondary-color);
    /* background-color: rgba(235, 235, 235, 0.1); */
    /* background-color: rgba(10, 10, 10, 0.1); */
    padding: 1rem;
}

ul li img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

#skills ul li:hover {
    /* background-color: rgba(255, 255, 255, 1); */
    background-color: rgb(0, 255, 0);
    box-shadow: rgba(255, 255, 255, 0.7) 0px 2px 4px, rgba(255, 255, 255, 0.3) 0px 7px 13px -3px, rgba(255, 255, 255, 0.6) 0px -3px 0px inset;
}

.footer {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    text-align: center;
    padding: 1rem;
}

.active {
    color: dodgerblue;
    font-size: 5rem;
}

.project_title i {
    color: dodgerblue;
    font-size: 0.8rem;
    margin-left: 0.1rem;
}

.video_player_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.video_player {
    position: relative;
    max-width: 50%;
    background-color: rgba(0, 0, 0, 0.1);
}

.close_player {
    font-size: 32px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
}

p {
    font-weight: 500;
}

.skills p {
    font-size: 1.5rem;
    margin: 1rem 0;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
}


@media screen and (max-width:768px) {
    h1 {
        margin: 1rem 0 1.5rem 0;
    }

    main {
        padding: 2rem 2rem 0 2rem;
        display: block;
        /* height: 100%; */
    }

    .themes {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        padding: 0.5rem;
    }

    .themes i {
        font-size: 1.5rem;
    }

    .myself {
        width: 100%;
    }

    .myself #myAvatar {
        width: 100%;
        padding: 2rem 0;
    }

    .right {
        padding: 0;
    }

    .project {
        padding: 1.5rem 0;
        display: flex;
        flex-flow: column;
        gap: 1rem;
    }

    .project .project-thumbnail {
        width: 100%;
        border-radius: 5px;
        height: auto;
    }

    .video_player_wrapper {
        display: block;
        align-items: center;
        justify-content: center;
        z-index: 999;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .video_player {
        position: relative;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 420px) and (max-width: 992px) and (orientation: landscape) {
    .left {
        flex: 0;
        /* width: 300px; */
        align-self: flex-start;
    }

    .name {
        font-size: 2.3rem;
    }

    body main {
        padding: 2rem 2rem 0 2rem;
        display: flex;
        flex-flow: row;
        gap: 1rem;
        height: 100vh;
    }

    .nav {
        margin: 1rem 0;
        display: flex;
        flex-flow: row;
        gap: 0.8rem;
    }

    .nav .h_box .mouse_enter {
        border-bottom: 2px solid red;
    }

    .nav a {
        border-bottom: 2px solid var(--secondary-color);
        padding: 0.2rem;
        transition: color 0.5s ease-in-out;
    }

    .h_box:hover a {
        border-bottom: 2px solid red;
    }

    .h_box {
        display: block;
    }

    .line {
        display: none;
    }

    .socials {
        display: flex;
        flex-flow: row wrap;
        gap: 0.5rem;
    }

    .socials a {
        display: flex;
        flex-flow: column;
        gap: 0.5rem;
        position: relative;
    }

    .socials a i {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    /* .socials a:nth-child(1):hover{
                border-top-left-radius: 5px;
                border-top-right-radius: 5px;
                background-color: white;
                color: black;
            } */


    .socials a label {
        font-weight: 700;
        color: black;
        padding: 0.5rem;
        background-color: var(--secondary-color);
        border-radius: 5px;
        visibility: hidden;
        position: absolute;
        top: 2.5rem;
    }

    .socials a:hover label {
        visibility: visible;
    }
}