:root {
    --black: #050505;
    --white: #ffffff;
    --grey: #333333;
}

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

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
}

/* --- The Spark Canvas --- */
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10; /* Above the background, below the text */
}

/* --- Custom Cursor --- */
#cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.star-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 700px;
    height: 700px;
}

.star-svg {
    width: 100%;
    height: 100%;
    fill: var(--white);
    filter: url(#glow);
    animation: pulse 10s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.6; }
}

.hero h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.85;
    z-index: 2;
    text-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    z-index: 2;
    color: #888;
    margin-top: 20px;
}

/* --- Layout --- */
nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 40px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

.logo { font-family: 'Archivo Black', sans-serif; text-decoration: none; color: var(--white); font-size: 1.4rem; }
.nav-links a { text-decoration: none; color: var(--white); margin-left: 40px; font-size: 0.8rem; letter-spacing: 2px; }

section { padding: 120px 10%; position: relative; z-index: 3; }

.work-title { font-family: 'Archivo Black', sans-serif; font-size: 3rem; margin-bottom: 50px; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.game-card { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111; }
.game-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.game-card:hover img { filter: grayscale(0%); transform: scale(1.05); }

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    background: var(--white);
    color: var(--black);
}

.about h2 { font-family: 'Archivo Black', sans-serif; font-size: 3.5rem; line-height: 1; }
.about p { font-size: 1.1rem; line-height: 1.8; }

.highlight-box { border: 2px solid var(--black); padding: 30px; margin-top: 30px; font-weight: 700; }

footer { padding: 80px 10%; display: flex; justify-content: space-between; border-top: 1px solid #222; }

.reveal { opacity: 0; transform: translateY(40px); transition: all 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .about { grid-template-columns: 1fr; }
    .star-container { width: 400px; height: 400px; }
}