:root {
    --accent: #f5e97a;
}

html, body {
    background-color: #0f0f13;
    color: white;
    font-family: "JetBrains Mono", monospace;
    scroll-behavior: smooth;
    font-size: clamp(15px, 1.5vh, 99999999px);
    margin: 0;
    padding: 0;
}

h1 {
    font-weight: 900;
}

.nexttopfp h1 {
    font-weight: 500;
}

strong {
    font-weight: 900;
    color: var(--accent);
}

a {
    color: var(--accent);
    text-decoration: underline 1px;
    font-weight: 600;
}

a:hover {
    text-decoration: underline wavy var(--accent) 2px;
}

#starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    z-index: 0;
    position: absolute;
    border-radius: 50%;
    background: white;
    animation: twinkle var(--dur, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: var(--bright, 0.6); transform: scale(1.3); }
}

.pfp {
    height: 12rem;
    border-radius: 2rem;
}

#home {
    display: flex;
    align-items: center;
    height: 100vh;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#about {
    max-width: 65vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    margin-left: auto;
    margin-right: auto;
}

#projects {
    max-width: 65vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    margin-left: auto;
    margin-right: auto;
}

.everythingelse {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.nexttopfp {
    margin-left: 3rem;
}

p {
    line-height: 1.5;
}

.nav {
    color: white;
    background-color: #0f0f13;
    font-weight: bold;
    padding: 0.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    align-items: center;
    font-family: "JetBrains Mono", monospace;
    border-radius: 676767676767px;
    border: 4px dashed var(--accent);
    font-size: 1.1rem;
    transition: background-color 0.3s, color 0.3s;
}

.nav.active {
    background-color: var(--accent);
    color: #0f0f13;
}

.nav:hover {
    border: 4px solid var(--accent);
    cursor: pointer;
}

header button {
    margin-right: 1rem;
}

header button:last-child {
    margin-right: 0;
}

header {
    z-index: 100;
    width: 100%;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #0f0f13cc 0%, #0f0f1300 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    z-index: -1;
}

img {
    z-index: 10;
}

.projects {
    margin-top: 5rem;
    display: flex;
    flex-direction: horizontal;
    justify-content: center;
    gap: 3%;
}

.project {
    width: 30%;
    display: block;
}

.project img {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 7%;
}

.pic {
    position: relative;
    z-index: 999;
    display: flex;
    background-color: #1a1a1f;
    width: 100%;
    border-radius: 2rem 2rem 0 0;
}

.pdesc {
    position: relative;
    z-index: 999;
    padding: 1rem;
    background-color: #212129;
    border-radius: 0 0 2rem 2rem;
}

.contact img {
    width: 3rem;
}