@font-face {
    font-family: 'sf-mono';
    src: url('assets/fonts/sf-mono/SFMono-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'sf-mono';
    src: url('assets/fonts/sf-mono/SFMono-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'sf-mono';
    src: url('assets/fonts/sf-mono/SFMono-Light.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'sf-mono';
    src: url('assets/fonts/sf-mono/SFMono-LightItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}

html {
  overflow-y: scroll;
}
body {
    background-color: #1d1f20;
    align-items: center;
    font-family: 'sf-mono';
    font-weight: normal;
    font-style: normal;
}

/* Header */
nav {
    width: 40%;
    margin: 4rem auto;
    display: flex;
    justify-content: space-between;
    display: flex;
}
nav img {
    height: 4rem;
}
.nav-links {
    display: flex;
    list-style: none;
    margin-right: auto;
    gap: 1.5rem;
    padding-top: 0.5rem;
    font-size: 0.95rem;
    padding-left: 1rem;
}
.nav-links a {
    text-decoration: none;
    color: #d6ba7c;
}
.hover-bar {
    display: inline-block;
    padding-bottom: 0.30em;
    position: relative;
    text-decoration: none;
}
.hover-bar::before {
    background-color: #d6ba7c;
    bottom: 0;
    content: '';
    height: 0.15rem;
    left: 0;
    position: absolute;
    transition: width 0.3s ease;
    width: 0;
}
.hover-bar:hover::before {
    width: 100%;
}
.nav-hover-bar:active::before {
    left: auto;
    right: 0;
    transition: width 0.3s ease;
    width: 0;
}
.nav-dropdown {
    position: relative;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1d1f20;
    border: 1px solid #444444;
    border-radius: 0.25rem;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 999;
    min-width: 150px;
}
.nav-dropdown-menu li a {
  margin: 1rem;
}
.nav-dropdown-menu li a:hover {
  background-color: #2c2c2e;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.contact-button {
    display: flex;
}
.contact-img {
    filter: invert() opacity(50%);
    height: 2rem;
    padding-top: 1rem;
}

/* Main */
main {
    width: 40%;
    margin: 0 auto;
    text-align: left;
    animation: loadPage 0.6s;
}
@keyframes loadPage {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 100%;
  }
}
h1 {
    color: #eeeeee;
    font-weight: bold;
}
h2 {
    color: #eeeeee;
    margin-top: 4rem;
}
h3 {
    color: #d6ba7c;
    text-decoration: underline;
    font-size: 1rem;
}
p {
    color: #bbbbbc;
    font-weight: 100;
    font-size: 1rem;
}
.no-select {
    user-select: none;
}

/* Footer */
footer {
    margin: 0 auto;
    justify-content: center;
    display: flex;
    color: #eeeeee;
    background-color: #171717;
}

/* Home */
.intro h1 {
    text-decoration: none;
    color: #d6ba7c
}
.intro h2 {
    text-decoration: none;
    color:#bbbbbc;
    font-size: 1.3rem;
    font-weight: 100;
    font-style: italic;
    margin-top: 0px;
}
.intro-slide {
    animation: slideRightText 1s;
}
@keyframes slideRightText {
    0% {
        margin-left: -2rem;
        opacity: 0;
    }
    25% {
        opacity: 0;
    }
    100% {
        margin-left: 0;
        opacity: 1;
    }
}
.intro-fade {
    animation: fadeInText 2s;
}
@keyframes fadeInText {
    0% {
        opacity: 0;
    }
    60% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.intro-bar {
    animation: slideInBar 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes slideInBar {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 100%;
  }
}
.projects {
    gap: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.project-item {
    background-color: #27272a;
    height: 7rem;
    border-radius: 0.25rem;
    padding: 1rem;
}
.projects-link {
    color: #bbbbbc;
    right: 0px;
    text-decoration: underline;
}
.tech-stack {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding-left: 0;
}
.tech-stack-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}
.tech-stack-item-img {
    height: 2.5rem;
    aspect-ratio: 1/1;
    object-fit: contain;
    filter: invert() opacity(25%);
}
.tech-stack-item-img:hover {
    filter: invert() opacity(75%);
    transition-duration: 0.5s;
}
/* Art */
.art-container {
    margin-bottom: 3rem;
    border-radius: 1rem;
    padding: 0.5rem;
}
.art-img {
    width: 100%;
}
.art-title {
    user-select: none;
}
.art-desc {
    user-select: none;
}
/* FFXIV */
.screenshot-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.screenshot-container {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}
.screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease;
}
.screenshot-container:hover .screenshot {
    transform: scale(1.05);
}