@font-face {
	font-family: 'UglyQua';
	src: local('UglyQua'),
				url('./assets/fonts/UglyQua.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IntelMono';
	src: local('Intel One Mono'), local('Intel One Mono Regular'),
				url('./assets/fonts/IntelOneMono-Regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

body {
    font-size: 1.2rem;
}

#main-nav {
	color: #221111;
	margin: auto;
}

.nav-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

#main-nav.open .nav-links {
	display: block;
}

.nav-links > li.nav-projects {
    margin-left: 8%;
}

.nav-links > li.nav-about {
    margin-left: 16%;
}

.nav-links > li.nav-games {
    margin-left: 24%;
}

.nav-links > li.nav-other-things {
    margin-left: 32%;
}

.nav-links > li > a {
	color: #221111;
	text-decoration: none;
	font-family: var(--font-heading);
	letter-spacing: -1px;
	line-height: 1rem;
	white-space: nowrap;
	padding: 0.5rem;
	display: block;
}

body {
    background-color: #D8E5C9;
}

.main-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: auto;
    max-width: 35rem;
}

.main-title h2 {
    display: flex;
    flex-direction: column;
    font-size: 4rem;
    font-weight: 100;
    margin: 1rem 0 0;
    align-items: center;
}

.main-title .weird-title {
    display: flex;
    height: 70px;
}

.main-title .weird-title span {
    display: block;
}

.main-title .jude-span {
    align-self: start;
}

.main-title .brain-span {
    align-self: end;
}

.main-content {
    margin: auto;
    width: fit-content;
}

.main-content .projects {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #eff5e9;
    width: 22.5rem;
    height: 22.5rem;
    margin: auto;
    text-decoration: none;
}

.project-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
}

.project-container .project-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 20;
}

/* shimmer sweep on hover */
.project-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 25;
    background: linear-gradient(
        120deg,
        transparent 25%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 75%
    );
    transform: translateX(-150%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.project-container:hover::after {
    transform: translateX(150%);
}

.project-container .project-content {
    position: relative;
    z-index: 30;
    color: #ffffff;
    padding: 1.5rem 2rem;
}

/* - - - - - - - - - - Desktop - - - - - - - - - - */
@media (min-width: 1024px) {

    body {
        margin: auto;
        max-width: 1440px;
    }

    .main-title {
        max-width: unset;
        width: 800px;
    }

    .main-title h2 {
        align-items: center;
        flex-direction: row;
        font-size: 6rem;
        justify-content: space-between;
        height: 175px;
    }

    .main-title .weird-title {
        height: 140px;
    }

    .main-title .jude-span,
    .main-title .brain-span {
        align-self: unset;
    }

    #main-nav {
        width: 800px;
        margin: 0 auto 4rem;
        height: 4rem;
    }

	.nav-links {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .nav-links > li {
        width: 160px;
        height: 2rem;
    }

    .nav-links > li.nav-projects,
    .nav-links > li.nav-about,
    .nav-links > li.nav-games,
    .nav-links > li.nav-other-things {
        margin-left: 0;
    }

    .nav-links > li > a {
        width: fit-content;
    }

    .main-content .projects {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-container {
        width: 40rem;
        margin: 0;
    }

    .project-container .project-content {
        padding: 2rem 2.5rem;
        max-width: 55%;
    }

}