:root {
    --font-main: "M PLUS Code Latin", monospace;
    --color-fg: #0f0f0f;
    --color-bg: #242424;
    --color-accent: #a5c422;
    --color-muted: #444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-weight: 200;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    color: var(--color-fg);
    line-height: 1.6;
    background-color: var(--color-bg);
}

header {
    background: #faf9f4;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 0px solid #fff;
    position: relative;
}

header img {
    max-width: 200px;
    margin: 40px;
}

nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    background: #faf9f4;
    padding: 1rem 0;
}

nav a {
    text-decoration: none;
    color: var(--color-fg);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
    display: block;
    }

    nav.active {
    display: flex;
    }
}

.section {
    padding: 4rem 1.5rem;
    background-color: inherit;
}

.section a {
    text-decoration: none;
    color: var(--color-accent);
}

.section h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

#games > .section-inner {
    position: relative;
    z-index: 1;
}

#games {
    background-color: #c0426c;
    color: var(--color-accent);
    position: relative;
    overflow: hidden;
}

#games::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 20px 20px; /* space between dots */
    animation: movePattern 10s linear infinite;
    z-index: 0;
}

/* @keyframes movePattern {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 28.28px 28.28px;
    }
} */

#about {
    background-color: #faf9f4;
    color: #c0426c;
    font-weight: 400;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.project {
    background: #fff;
    border: 0px solid #bbb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.project a {
    color: #0f0f0f;
}

.project:hover {
    transform: translateY(-4px);
}

.project img {
    width: 100%;
    display: block;
}

.caption {
    padding: 1.25rem;
    text-align: center;
}

.caption h3 {
    color: #0f0f0f;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.caption p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--color-accent);
    color: #0f0f0f;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #8aa31b;
}

footer {
    background: #c0426c;
    border-top: 1px solid #c0426c;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 100;

    /* Add dot pattern */
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: movePattern 10s linear infinite;
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    margin: 0 0.5rem;
    color: var(--color-accent);
    transition: color 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--color-fg);
}
.social-icons i {
    font-size: 2.0rem;
    vertical-align: middle;
}