/* --- FONTS --- */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMono-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMono-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --color-primary:    #dddddd;
    --color-secondary:  #888888;
    --color-dim:        #555555;
    --color-bg:         #333333;
    --color-dark:       #282828;
    --color-black:      #000000;
    --color-link:       #1788d3;
    --color-link-hover: #00ccff;

    --font-mono: 'JetBrains Mono', monospace;
}

/* --- RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-mono);
    font-weight: 400;
    background: var(--color-dark);
    color: var(--color-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

@media (min-width: 1201px) {
    /* --- NAV --- */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        height: 120px;
        background: var(--color-black);
        border-bottom: 1px solid var(--color-bg);
    }

    .nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .nav__logo{
        display: flex;
        flex-direction: column;
    }

    .logo__first{
        font-size: 2rem;
        font-weight: bold;
    }

    .logo__second{
        color: var(--color-secondary);
        font-size: 1.2rem;
    }

    .nav__links{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 48px;
    }

    .nav__link {
        transition: color 0.3s ease;
    }

    .nav__link:hover {
        color: var(--color-link-hover);
    }

    .nav__toggle {
        display: none;
    }

    /* --- STRUCTURAL --- */
    .upper-spacer{
        width: 100%;
        height: 144px;
    }

    .standard-section{
        width: 100%;
        scroll-margin-top: 144px;
    }

    .section__content{
        max-width: 1200px;
        margin: 0 auto;
    }

    .section__title{
        margin: 0 0 24px 0;
        text-align: center;
        font-size: 2rem;
    }

    .section-divider{
        width: 100%;
        height: 48px;
    }

    /* --- ABOUT --- */

    .about__text{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* --- PROJECTS --- */

    .projects__list{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .project{
        width: 100%;
        background-color: var(--color-bg);
        border-radius: 3px;
        padding: 32px;
        border: 1px solid var(--color-dim);
    }

    .project-container{
        width: 100%;
        display: flex;
        flex-direction: row;
    }

    .project__left{
        width: 160px;
        flex-shrink: 0;
        margin: 0 40px 0 0;
    }

    .project__right{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .project__img{
        width: 100%;
    }

    .project__title{
        text-transform: uppercase;
        font-size: 24px;
    }

    .project__detail{
        color: var(--color-secondary);
        font-weight: bold;
        font-size: 18px;
    }

    .project__ul{
        padding: 0 0 0 20px;
        list-style: disc;
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
    }

    .project__link{
        color: var(--color-link);
        transition: 0.2s ease;
    }

    .project__link:hover{
        color: var(--color-link-hover);
    }

    /* --- PROJECT WEBSITES --- */
    .websites{
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .website-divider{
        width: 100%;
        height: 1px;
        background-color: var(--color-dim);
    }

    .website__img{
        padding: 24px;
    }

    /* --- TECH STACK --- */
    .stack__list {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

    .stack__item {
        background-color: var(--color-bg);
        padding: 16px;
        border: 1px solid var(--color-dim);
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .stack__img-container{
        max-width: 100px;
    }

    .stack__img {
        width: 100%;
        filter: grayscale(30%);
    }

    .stack__label {
        text-align: center;
        color: var(--color-secondary);
    }

    /* --- CONTACT --- */
    .contact{
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .contact__left{
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .contact__right{
        width: 600px;
        padding: 32px;
        margin: 0 0 0 48px;
        background-color: var(--color-bg);
        border: 1px solid var(--color-dim);
        border-radius: 3px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        flex-shrink: 0;
    }

    .contact-links__divider{
        width: 100%;
        height: 1px;
        background-color: var(--color-dim);
    }

    .contact-links__list{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .contact-links__anchor{
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        font-size: 20px;
        transition: 0.2s ease;
    }

    .contact-links__anchor:hover{
        color: var(--color-link-hover);
    }

    .contact__svg-container{
        height: 28px;
        width: 28px;
        padding: 6px;
        border-radius: 4px;
        background-color: #dddddd;
        transition: 0.2s ease;
    }

    .contact-links__anchor:hover .contact__svg-container{
        background-color: var(--color-link-hover);
    }

    .contact__svg{
        width: 100%;
        filter: invert(20%);
    }

    /* --- FOOTER --- */
    .footer{
        height: 160px;
        width: 100%;
        background-color: var(--color-black);
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 1px solid var(--color-bg);
        color: var(--color-secondary);
    }
}

/*===================================================
--- MOBILE VIEW ---
===================================================*/

@media (max-width: 1200px) {
    /* --- NAV --- */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding: 16px;
        background: var(--color-black);
        border-bottom: 1px solid var(--color-bg);
    }

    .nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .nav__logo{
        display: flex;
        flex-direction: column;
    }

    .logo__first{
        font-size: 20px;
        font-weight: bold;
    }

    .logo__second{
        color: var(--color-secondary);
        font-size: 12px;
    }

    .nav__links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-black);
        padding: 24px;
        border-top: 1px solid var(--color-bg);
        border-bottom: 1px solid var(--color-bg);
        gap: 24px;
    }

    .nav__links--open {
        display: flex;
    }

    .nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 4px;
    }

    .nav__toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-primary);
    }

    /* --- STRUCTURAL --- */
    .upper-spacer{
        width: 100%;
        height: 90px;
    }

    .standard-section{
        width: 100%;
        scroll-margin-top: 90px;
    }

    .section__content{
        width: 100%;
        padding: 0 16px;
    }

    .section__title{
        margin: 0 0 16px 0;
        text-align: center;
        font-size: 24px;
    }

    .section-divider{
        width: 100%;
        height: 32px;
    }

    /* --- ABOUT --- */

    .about__text{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* --- PROJECTS --- */

    .projects__list{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .project{
        width: 100%;
        background-color: var(--color-bg);
        border-radius: 3px;
        padding: 16px 12px;
        border: 1px solid var(--color-dim);
    }

    .project-container{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .project__left{
        max-width: 160px;
    }

    .project__right{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .project__img{
        width: 100%;
    }

    .project__title{
        text-transform: uppercase;
        font-size: 20px;
        text-align: center;
    }

    .project__detail{
        color: var(--color-secondary);
        font-weight: bold;
    }

    .project__p{
        font-size: 14px;
    }

    .project__ul{
        padding: 0 0 0 16px;
        list-style: disc;
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }

    .project__link{
        color: var(--color-link);
    }

    /* --- PROJECT WEBSITES --- */
    .websites{
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .website-divider{
        width: 100%;
        height: 1px;
        background-color: var(--color-dim);
    }

    .website__img{
        max-width: 100px;
    }

    /* --- TECH STACK --- */
    .stack__list {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stack__item {
        background-color: var(--color-bg);
        padding: 8px;
        border: 1px solid var(--color-dim);
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .stack__img-container{
        max-width: 64px;
    }

    .stack__img {
        width: 100%;
        filter: grayscale(30%);
    }

    .stack__label {
        text-align: center;
        color: var(--color-secondary);
        font-size: 14px;
    }

    /* --- CONTACT --- */
    .contact{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .contact__left{
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .contact__right{
        width: 100%;
        padding: 12px;
        background-color: var(--color-bg);
        border: 1px solid var(--color-dim);
        border-radius: 3px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .contact-links__divider{
        width: 100%;
        height: 1px;
        background-color: var(--color-dim);
    }

    .contact-links__list{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .contact-links__anchor{
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        font-size: 14px;
    }

    .contact__svg-container{
        height: 22px;
        width: 22px;
        padding: 4px;
        border-radius: 4px;
        background-color: #dddddd;
    }

    .contact__svg{
        width: 100%;
        filter: invert(20%);
    }

    /* --- FOOTER --- */
    .footer{
        height: 120px;
        width: 100%;
        background-color: var(--color-black);
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 1px solid var(--color-bg);
        padding: 16px;
        color: var(--color-secondary);
    }

    .footer p{
        font-size: 14px;
        text-align: center;
    }
}