/* --- 1. Color Palette & Core Setup (Dark Mode) --- */
:root {
    --bg-color: #11071F;
    --text-color: #E0D8FF;
    --primary-color: #8A2BE2;
    --accent-color: #DB7093;
    --card-bg-color: #1A0B2E;
    --status-completed: #4ade80;
    --status-progress: #facc15;
    --status-planned: #8A2BE2;
}

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

html {
    scroll-behavior: smooth;
}

/* --- 2. Intuitive Cursor --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    cursor: default;
}

a,
button,
.game-card,
.social-card,
input,
textarea {
    cursor: pointer;
}

/* --- 3. Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border: 2px solid var(--bg-color);
    border-radius: 10px;
}

/* --- 4. Loader --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* --- 5. Layout & Typography --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    padding: 6rem 1rem;
}

h1,
h2,
h3 {
    font-family: 'Press Start 2P', cursive;
}

h1 {
    font-size: clamp(2rem, 2.5vw, 5rem);
    line-height: 1.2;
    color: var(--text-color);
    text-shadow: 0 0 1px #000000, 0 0 10px #ff0000, 0 0 1px var(--primary-color), 0 0 2px var(--primary-color);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
}

p {
    line-height: 1.8;
    color: #ffffff;
}

/* --- 6. Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: background-color 0.3s, box-shadow 0.3s;
}

header.scrolled {
    background-color: rgba(34, 0, 81, 0.8);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}

.desktop-nav {
    display: flex;
    gap: 1.5rem;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--accent-color);
}

/* --- 7. Hero Section --- */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 1rem;
    text-align: center;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#home .content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

/* --- 8. UI Components --- */
.btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    border: none;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(219, 112, 147, 0.7);
}

/* --- 9. Game Cards --- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--card-bg-color);
    border: 2px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--primary-color);
}

.game-card-image-container {
    position: relative;
}

.game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
}

.game-card-content {
    padding: 1.5rem;
}

.game-card h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.game-card h3 span {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-left: 0.5rem;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 7, 31, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.game-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.platform-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Press Start 2P';
    font-size: 0.8rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.platform-links a:hover {
    color: var(--accent-color);
}

.platform-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* --- 10. Roadmap Timeline --- */
.roadmap-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.roadmap-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.roadmap-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--accent-color);
    border: 4px solid var(--bg-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.roadmap-item:nth-child(odd) {
    left: 0;
}

.roadmap-item:nth-child(even) {
    left: 50%;
}

.roadmap-item:nth-child(even)::after {
    left: -10px;
}

.roadmap-content {
    padding: 1.5rem;
    background-color: var(--card-bg-color);
    border: 2px solid var(--primary-color);
    position: relative;
}

.roadmap-content h3 {
    color: var(--text-color);
    font-size: 1rem;
}

.roadmap-content p {
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.roadmap-content ul {
    list-style: none;
    padding-left: 0;
    font-size: 0.9rem;
}

.roadmap-status {
    font-family: 'Press Start 2P';
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--bg-color);
}

.status-completed {
    background-color: var(--status-completed);
}

.status-progress {
    background-color: var(--status-progress);
}

.status-planned {
    background-color: var(--status-planned);
}

/* --- 11. Community & Contact --- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-card {
    background-color: var(--card-bg-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    color: var(--text-color);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.social-card:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.social-card svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.social-card span {
    font-family: 'Press Start 2P';
    font-size: 1rem;
}

#contact {
    background-color: #0c0417;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--text-color);
    background: var(--card-bg-color);
    color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

/* --- 12. Footer --- */
footer {
    padding: 2rem;
    text-align: center;
    color: #64748B;
}

/* --- 13. Responsiveness --- */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    #home {
        text-align: center;
    }

    section {
        padding: 4rem 1rem;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-timeline::after {
        left: 10px;
    }

    .roadmap-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .roadmap-item:nth-child(even) {
        left: 0;
    }

    .roadmap-item:nth-child(even)::after {
        left: 1px;
    }

    .roadmap-item::after {
        left: 1px;
    }

    #studio {
        text-align: center;
    }

    #community h2 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 0.7rem;
        padding: 0.8rem 1.2rem;
    }

    .game-card-image {
        height: 150px;
    }
}
