@font-face {
    font-family: "Junicode";
    src: url("https://cdn.eriksonarias.dev/fonts/Junicode-RegularCondensed.woff");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Junicode";
    src: url("https://cdn.eriksonarias.dev/fonts/Junicode-BoldCondensed.woff");
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "Junicode";
    src: url("https://cdn.eriksonarias.dev/fonts/Junicode-ItalicCondensed.ttf");
    font-style: italic;
    font-weight: 400;
}

@font-face {
    font-family: "Junicode";
    src: url("https://cdn.eriksonarias.dev/fonts/Junicode-BoldItalicCondensed.ttf");
    font-style: italic;
    font-weight: 600;
}

:root {
    --green: #008d07;
    --red: #c51a1a;
    --blue: #1B47D8;
    --yellow: #cfa027;
}

html {
    background-color: black;
    margin: 0;
    color: white;
    font-family: "Junicode", serif;
    font-size: 24pt;
    letter-spacing: -3%;
}

body {
    margin: 0;
    width: 100vw;
    min-height: 100vh;
}

h2, h3, h4 {
    margin: 0;
    line-height: 0.8;
    font-weight: 400;
}

h3 {
    font-size: 24pt;
}

h4 {
    font-style: italic;
    font-size: 16pt;
    font-weight: 600;
}

a {
    color: var(--blue);
}

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

/*    NAVIGATION    */
nav {
    z-index: 1;
    width: 100%;
    padding: 50px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 100px;
    position: relative;

    nav-img {
        height: 50px;

        img {
            height: 100%;
        }
    } 

    nav-links {
        display: flex;
        gap: 100px;

        .nav-link {
            color: white !important;
            text-decoration: none;
            font-size: 24pt;
            transition: color 0.25s ease;
        }

        .nav-link:hover {
            color: var(--blue) !important;
        }

        .nav-link:visited {
            color: white;
        }
    }
}

content {
    width: 100%;
    display: flex;
    justify-content: center;
}

/*    FOOTER    */
footer {
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    font-size: 12pt;
}

#home-footer {
    position: absolute;
    bottom: 0;
}

/*    HOMEPAGE    */
#homepage {
    display: block;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100vw;

    #hero {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;

        #hero-img {
            width: 40%;
            z-index: -1;
            position: absolute;
            display: flex;
            justify-content: center;
            align-items: center;

            img {
                max-width: 50vw;
                width: 100%;
                height: 100%;
                max-height: 50vh;
                filter: brightness(0.7);
            }
        }

        #hero-logo {
            img {
                margin-top: 50px;
                width: 100px;
            }
        }
     
        p {
            margin: 0;
            line-height: 0.75;
            font-size: 72pt;
            transition: all 0.5s ease;

            #is-a {
                font-style: italic;
                color: var(--green);
                transition: color 0.25s ease;
                font-weight: 600;
                line-height: 0;
            }
        }
    }
}

/*    PROJECTS PAGE    */
#projects {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    padding: 0 100px 0 100px;
    width: 75%;

    a {
        color: white !important;
        text-decoration: none !important;
    }

    a:visited {
        color: white !important;
    }

    h1 {
        text-align: center;
    }

    .project {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 30vw;
        max-width: 600px;
        transition: transform 0.1s ease;

        .project-divider {
            background-color: white;
            height: 20px;
            width: 15%;
            position: relative;
            display: flex;
            justify-content: space-between;
            will-change: transform;
            

            .project-divider-inner {
                background-color: black;
                width: 20px;
                border-radius: 20px;
            }

            .project-divider-inner:first-child {
                transform: translateX(-50%);
            }

            .project-divider-inner:last-child {
                transform: translateX(50%);
            }
        }

        .project-top {
            background-color: white;
            border-radius: 10px;
            padding: 10px;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            width: 100%;

            h3 {
                background-color: var(--blue);
                border-radius: 5px;
                padding: 5px 10px 5px 10px;
                display: inline-block;
            }
        }

        .project-mid {
            background-color: white;
            border-radius: 10px;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;

            img-container {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 15px;

                img {
                    width: 100%;
                    height: 100%;
                    aspect-ratio: 1/1;
                    object-fit: cover;
                    border-radius: 15px;
                    border: 2px solid black;
                    box-sizing: border-box;
                }
            }
        }

        .project-bot {
            background-color: white;
            border-radius: 10px;
            width: 100%;
            padding: 30px;
            box-sizing: border-box;
            color: black;

            h2 {
                line-height: 0.75;
                padding-bottom: 10px;
            }
        }
    }
}

/*    PROJECT PAGE    */
#project {
    display: flex;
    flex-direction: column;
    width: 50%;
    min-width: 1000px;
    gap: 50px;

    header-img {
        height: 200px;
        width: 100%;

        img-container {
            width: 100%;
            height: 100%;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: top;
            }
        }
    }

    header {
        text-align: center;
        h1 {
            margin: 20px 0 0 0;
            font-weight: 400;
            line-height: 0.7;
        }

        h2 {
            font-style: italic;
            font-size: 24pt;
        }

        h3 {
            background-color: var(--blue);
            border-radius: 5px;
            padding: 5px 10px 5px 10px;
            display: inline-block;
        }
        
        h4 {
            font-size: 24pt;
            margin: 25px 0 0 0;
            font-weight: 600;
        }
    }

    project {

        p {
            font-size: 24pt;
            line-height: 1;
            text-align: justify;
            font-weight: 600;
            
            a {
                font-weight: 600;
            }
        }

        project-header {
            text-align: center;

            h2 {
                font-size: 36pt;
                margin-top: 10px;
            }
            
            project-year {
                display: flex;
                justify-content: center;
            }
            
            h3 {
                margin-top: 100px;
                font-size: 24pt;
                background-color: var(--green);
                border-radius: 5px;
                padding: 5px 10px 5px 10px;
                display: inline-block;
                text-align: center;
            }

            h4 {
                margin-bottom: 20px;
            }
        }

        img-container {
            display: flex;
            justify-content: center;
            width: 100%;
            max-height: 1000px;

            img {
                width: 100%;
                margin: 20px 0 20px 0;
                object-fit: contain;
            }
        }

        double-img-container {
            width: 100%;
            max-height: 1000px;

            img {
                width: calc(50% - 20px);
                margin: 20px 0 20px 0;
                object-fit: contain;
            }
        }

        embed-container {
            display: flex;
            justify-content: space-around;
            width: 100%;
            gap: 20;
        }
    }
}

/*    RESUME    */
#resume {
    width: 50%;
    min-width: 1000px;
    margin-bottom: 100px;

    header {
        text-align: center;
        margin-bottom: 50px;

        h1 {
            margin: 0;
            line-height: 0.9;
            font-weight: 400;
        }

        h2 {
            font-size: 16pt;
            font-weight: 600;
        }
    }

    section {
        margin-top: 100px;
        margin-bottom: 25px;

        h2 {
            font-size: 36pt;
            text-align: center;
        }
    }

    section resume-block {
        padding-bottom: 50px;

        info {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-top: 50px;
            margin-bottom: 20px;

            h3 {
                font-size: 36pt;
                font-style: italic;
                font-weight: 600;
                line-height: 1;
            }

            span {
                font-size: 24pt;
            }

            .years {
                background-color: var(--blue);
                border-radius: 5px;
                padding: 5px 10px 5px 10px;
                display: inline-block;
                text-align: center;
                line-height: 0.9;
                white-space: nowrap;
            }
        }
    }

    tags {
        margin-top: 50px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;

        tag {
            border-radius: 5px;
            padding: 5px 20px 5px 20px;
            line-height: 0.9;
        }

        .green {
            background-color: var(--green);
        }

        .red{
            background-color: var(--red);
        }
    }

    resume-details {
        p {
            margin: 0;
        }

        a {
            font-weight: bold;
        }
    }
}

/*    GALLERY    */
#gallery {
    display: flex;
    flex-direction: column;
    min-width: 1000px;
    align-items: center;

    #gallery-wall {
        width: 70%;
        display: flex;
        gap: 10px;

        .gallery-column {
            display: flex;
            flex-direction: column;

            .gallery-item {
                a {
                    width: 100%;


                    .gallery-img {
                        width: 100%;
                        transform: initial;
                        transition: transform 0.1s ease;
                    }
                }
            }
        }
    }
}

/*    CONTACT    */
#contact {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100vw;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 50px;

    p {
        margin: 0;
        font-size: 36pt;
        line-height: 0.9;
    }
}

@media screen and (max-width: 1920px) {
    html {
        font-size: 16pt;
    }

    h2, h3, h4 {
        line-height: 0.8;
    }

    #homepage {
        #hero {
            text-align: center;

            p, span {
                font-size: 48pt;
            }

            #hero-img {
                width: 70%;

                #hero-img-img {
                    max-width: initial;
                    max-height: initial;
                    transform: initial;
                    transition: transform 0.1s ease;
                }
            }

            #hero-logo {
            img {
                margin-top: 20px;
            }
        }
        }
    }

    #project {
        project {
            p {
                font-size: 16pt;
            }
        }
    }

    #resume {
        section resume-block {
            span {
                font-size: 16pt;
            }
        }
    }
}

@media screen and (max-width: 1080px) {
    html {
        font-size: 12pt;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 16pt !important;
    }

    h3 {
        font-size: 12pt;
    }

    h4 {
        font-style: italic;
        font-size: 12pt;
        font-weight: 600;
    }

    nav {
        gap: 50px;
        padding: 25px;

        nav-img {
            display: flex;
            align-items: center;

            a {
                display: flex;
                align-items: center;
            }

            img {  
                height: initial;
                width: 50px;
            }
        }

        nav-links {
            gap: 50px;
        }

        .nav-link {
            font-size: 16pt !important;
        }
    }

    content {
        width: calc(100% - 50px);
        padding: 20px;
    }

    #homepage {
        width: calc(100vw - 40px);
        height: calc(100vh - 40px);

        #hero {
            text-align: center;

            p, span {
                font-size: 24pt;
            }

            #hero-img {
                width: 90%;

                img {
                    max-width: initial;
                    max-height: initial;
                }
            }

            #hero-logo {
                img {
                    width: 50px;
                    margin-top: 20px;
                }
            }
        }
    }

    #project header h1 {
        margin-top: 10px;
    }

    #projects {
        min-width: initial;
        width: 100%;

        .project {
            media img-container img {
                max-height: initial;
            }
        }
    }

    #project-page {
        #project {
            width: calc(100% - 40px);
            min-width: initial;
        }
    }

    #gallery {
        width: 100%;
        padding: 0;
        min-width: initial;

        #gallery-wall {
            width: calc(100% - 40px);
        }
    }

    #resume {
        width: calc(100% - 40px);
        min-width: initial;

        header {
            margin-bottom: 0;
        }

        resume {
            margin-top: 0;
        }

        section {
            margin-top: 25px;

            h2 {
                font-size: 24pt !important;
            }
        }

        section resume-block info {
            margin-top: 20px;
            margin-bottom: 20px;

            h3 {
                font-size: 16pt;
            }

            span {
                font-size: 16pt;
            }
        }

        tags {
            margin-top: 20px;
        }
    }

    #contact {
        width: calc(100% - 40px);
        height: calc(100% - 40px);

        p {
            font-size: 24pt;
        }
    }
}