html {
    font-family: "Quantico", sans-serif;
}

body {
    margin: 0;
}

header {
    width: 100%;
    height: 70vh;
    padding: 0;
    margin: 0;
    background: center/100% url("assets/up_bg.png");
}

.self-holder {
    width: 80%;
    height: 100%;
    margin: 0 10%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

.self-name {
    width: 100%;
    padding: 2% 0 1%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;

    & h1 {
        padding: 0;
        margin: 0;
        font-size: 90px;
    }
}

.self-description {
    width: 100%;
    padding: 1% 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    & p {
        padding: 0;
        margin: 0;
        font-size: 24px;
    }
}

.self-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    & a {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }
    & * img {
        width: 35px;
        height: 35px;
        transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    & * img:hover {
        width: 37px;
        height: 37px;
    }
}

.self-profile {
    margin: 25px 0 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    & p {
        font-size: 16px;
        margin: 2px 0;
    }
}

main {
    width: 100%;
    padding: 0;
    margin: 0;
    background: center/100% url("assets/up_bg.png");
}

.projects-holder {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    & .project-container:nth-child(even) {
        flex-direction: row-reverse;
        & .project-description {
            padding-left: 5%;
            margin-left: 6%;
            border-left: 2px solid black;
            border-radius: 2px;
        }
    }
    & .project-container:nth-child(odd) {
        flex-direction: row;
        & .project-description {
            padding-right: 5%;
            margin-right: 6%;
            border-right: 2px solid black;
            border-radius: 2px;
        }
    }
}

.project-container {
    width: 85%;
    height: 320px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition:
        opacity 0.5s ease-in-out,
        transform 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.project-button {
    border: 3px solid;
    border-radius: 10px;
    width: 20%;
    margin: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    & span {
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        position: absolute;
        color: white;
        background-color: rgba(0, 0, 0, 0.35);
        border-radius: 10px;
        width: 200px;
        height: 200px;
        transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    & img {
        width: 200px;
        height: 200px;
    }
    &:hover {
        border: 3px solid deepskyblue;
    }
}

.project-description {
    width: 30%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    & p {
        font-size: 16px;
        text-align: center;
    }
}

.project-title {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    & p {
        font-size: 24px;
    }
    & a {
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0px 15px;
        transition: 1.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    & a:hover {
        transform: translate(0, 0px) scale(1.2);
    }
    & a img {
        width: 32px;
        height: 32px;
    }
}

.project-logos {
    display: flexbox;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: 25%;
    height: 128px;
    & img {
        width: 64px;
        height: 64px;
        margin: 0 2px;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    & img:hover {
        transform: translate(0, -20px) scale(1.2);
    }
}

footer {
    width: 100%;
    height: 300px;
    padding: 0;
    margin: 0;
    background: no-repeat center/100% url("assets/foot_bg.png");
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;

    & .about {
        height: 80%;
    }
    & span {
        height: 20%;
        font-size: 14px;
        color: gainsboro;
        text-align: center;
    }
}

.popup-holder {
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7);
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: white;
    border-bottom: 2px solid gainsboro;
    transition: opacity 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    a {
        font-size: 20px;
        text-decoration: none;
        font-weight: bolder;
        color: steelblue;
    }
}

/*   */
/* M */
/* E */
/* D */
/* I */
/* A */
/*   */
/* S */
/* C */
/* R */
/* E */
/* E */
/* N */
/*   */

@media screen and (max-width: 800px) {
    header {
        height: 60vh;
    }
    .self-name {
        justify-content: center;
        margin-top: 50px;
        & h1 {
            font-size: 30px;
        }
    }
    .self-description {
        flex-direction: row-reverse;
        margin-top: 25px;
        & p {
            font-size: 16px;
        }
    }
    .self-profile {
        & p {
            font-size: 11px;
        }
    }
    .project-container {
        height: 225px;
        flex-direction: column;
    }
    .project-button {
        width: 64px;
        height: 64px;
        & span {
            font-size: 10px;
            width: 64px;
            height: 64px;
        }
        & img {
            width: 64px;
            height: 64px;
        }
    }
    .project-description {
        height: 50%;
        & p {
            font-size: 8px;
            text-align: center;
        }
    }
    .project-logos {
        & img {
            width: 32px;
            height: 32px;
        }
    }
    .project-title {
        & p {
            font-size: 9px;
        }
        & a img {
            width: 12px;
            height: 12px;
        }
    }
}
