@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Outfit:wght@100..900&display=swap');

:root {
    --title-font: "Archivo Black", sans-serif;
    --text-font: "Outfit", sans-serif;
    --nav-font: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    --name-font: "obviously medium", sans-serif;
    --aside-title-font: "Archivo Black", sans-serif;
    --header-height: 100px;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f500;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

header {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    height: var(--header-height);
    background: linear-gradient(180deg, #ffffffbb, #00000000);
}

header > a {
    text-decoration: none;
    color: black;
    display: flex;
}

header > a > h1 {
    font-family: var(--name-font);
    font-size: 1.7rem;
    font-weight: 600;
    margin-left: 5vw;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    display: flex;
    justify-content: center; 
    transform: scaleY(0.7);
    transform-origin: center;
}

header > button, nav#mobile-nav > button { 
    display: none;
    font-size: 1.5em;
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    margin-right: 5vw;
}

nav#mobile-nav > button {
    display: block;
    margin: 0;
}

header > nav {
    display: flex;
    align-items: center; 
    margin-right: 5vw;
}

header > nav > ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

header > nav > ul > li {
    margin: 0 10px;
}

header > nav > ul > li > a {
    text-decoration: none;
    color: #000000;
    font-family: var(--nav-font);
    text-transform: uppercase;
    position: relative;
}

header > nav > ul > li > a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s;
}

header > nav > ul > li.instagram > a::after {
    margin-top: 5px;
}

header > nav > ul > li > a:hover::after {
    width: 100%;
}

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

main > p {
    font-family: var(--text-font);
    font-size: 1.2em;
    margin: 6vh 5vw;
}

main p.annotation {
    font-size: 1em;
    font-style: italic;
}

main > section {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 0 5vw;
}

main > section.reverse {
    flex-direction: row-reverse;
}

main > section.half {
    height: auto;
}

main > section > video {
    width: 50vw;
    height: auto;
}

main > section.portfolio {
    flex-direction: column;
}

main > section.portfolio > video {
    width: 90vw;
    max-height: 90vh;
    margin: 2vh 0;
}

main > section.videosection {
    height: calc(100vh - var(--header-height));
    min-height: calc(100vh - var(--header-height));
}

main > section.videosection > article {
    margin-bottom: calc(var(--header-height) / 2);
}

main > section > img {
    width: 40vw;
    max-height: 90vh;
    object-fit: contain;
    margin: 2vh 0;
}

main > section > aside {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 35vw;
    margin: 0 5vw;
}

main > section > aside > p {
    font-family: var(--text-font);
    font-size: 1.2em;
    margin: 2vh 0;
    text-align: justify;
}

main > section > aside > h2 {
    font-family: var(--title-font);
    font-size: 1.5em;
    margin: 2vh 0;
    text-align: left;
}

main > section > article {
    width: 35vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

main > section > article > h1 {
    font-family: var(--title-font);
    font-size: 2em;
    text-align: center;
    width: 70%;
    font-weight: 1000;
    margin: 2vh 0;
}

main > section > article > p {
    font-family: var(--text-font);
    font-size: 1.2em;
    margin: 2vh 0;
    text-align: center;
}

main > section > article > a {
    font-family: var(--text-font);
    font-size: 1.2em;
    text-decoration: none;
    color: black;
    background-color: white;
    padding: 10px 20px;
    border-radius: 1.2em;
    transition: background-color 0.3s;
    margin: 2vh 0;
}

main > section > article > a:hover {
    background-color: #ffffffb2;
}

main > h1 {
    font-family: var(--title-font);
    text-align: center;
    margin: 2vh 0;
}

/* Media Queries */
@media (min-width: 769px) {
    header > button {
        display: none;
    }

    header > nav {
        display: flex;
    }

    nav#mobile-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        align-items: center;
        text-align: center;
    }

    header > h1 {
        margin: 2vh 0;
    }

    header > button {
        display: block;
    }

    header > nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav#mobile-nav {
        display: none;
        z-index: 1000;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        justify-content: center;
        align-items: center;
        background-color: rgb(255, 255, 255);
    }

    nav#mobile-nav > ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    nav#mobile-nav > ul > li {
        margin: 10px 0;
    }

    nav#mobile-nav > ul > li > a {
        text-decoration: none;
        color: #000000;
        font-family: var(--nav-font);
        text-transform: uppercase;
        position: relative;
    }

    header > nav > ul {
        flex-direction: column;
        align-items: center;
    }

    header > nav > ul > li {
        margin: 5px 0;
    }

    main > p {
        font-size: 1em;
        margin: 4vh 3vw;
    }

    main > section, main > section.reverse {
        flex-direction: column;
        align-items: center;
    }

    main > section > img {
        width: auto;
        max-width: 90vw;
    }

    main > section > aside {
        width: 90vw;
    }

    main > section > video, main > section > article {
        width: 90vw;
        margin: 2vh 0;
    }

    main > section > article {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    main > p {
        font-size: 0.9em;
        margin: 3vh 2vw;
    }

    main > section > video, main > section > article {
        width: 100vw;
    }
}
