:root {
    --primary: #8b5cf6; /* Vibrant Purple from the game */
    --secondary: #d97706; /* Warm Brown/Orange */
    --accent: #10b981; /* Forest Green */
    --bg-dark: #121212;
    --text-light: #fef3c7; /* Warm Cream Text */
    --pixel-border: 4px;
    --glow: 0 0 15px rgba(139, 92, 246, 0.4);
}

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

body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Press Start 2P', cursive;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background image handling with BLUR */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/3vZpSj.gif') center/cover no-repeat;
    filter: blur(8px); /* Added Blur */
    transform: scale(1.1); /* Prevent blur edges from showing */
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

/* Navbar */
.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: var(--pixel-border) solid var(--primary);
}

.nav-logo {
    height: 90px;
    filter: drop-shadow(0 0 5px var(--primary));
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.lang-switch button:hover, .lang-switch button.active {
    color: var(--secondary);
    text-shadow: 0 0 5px var(--secondary);
}

.separator {
    color: var(--primary);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.pixel-card {
    background: rgba(22, 18, 26, 0.9);
    border: var(--pixel-border) solid var(--secondary);
    padding: 3rem;
    max-width: 900px;
    text-align: center;
    box-shadow: var(--glow);
    position: relative;
    clip-path: polygon(
        0% var(--pixel-border), 
        var(--pixel-border) var(--pixel-border), 
        var(--pixel-border) 0%, 
        calc(100% - var(--pixel-border)) 0%, 
        calc(100% - var(--pixel-border)) var(--pixel-border), 
        100% var(--pixel-border), 
        100% calc(100% - var(--pixel-border)), 
        calc(100% - var(--pixel-border)) calc(100% - var(--pixel-border)), 
        calc(100% - var(--pixel-border)) 100%, 
        var(--pixel-border) 100%, 
        var(--pixel-border) calc(100% - var(--pixel-border)), 
        0% calc(100% - var(--pixel-border))
    );
}

.hero-logo {
    width: 200px;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    line-height: 1.6;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}

.description {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

/* Button */
.pixel-button {
    display: inline-block;
    padding: 1.5rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 
        inset -8px -8px 0px 0px rgba(0,0,0,0.3),
        8px 8px 0px 0px rgba(0,0,0,0.2);
}

.pixel-button:hover {
    background: #ff33ff;
    transform: scale(1.05);
}

.pixel-button:active {
    transform: scale(0.95);
    box-shadow: inset 8px 8px 0px 0px rgba(0,0,0,0.3);
}



/* Gallery Section */
.gallery {
    padding: 4rem 2rem;
    background: rgba(10, 10, 10, 0.9);
    text-align: center;
    border-top: var(--pixel-border) solid var(--primary);
}

.gallery h2 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    text-shadow: 3px 3px 0px rgba(0,0,0,0.5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    background: var(--bg-dark);
    border: var(--pixel-border) solid var(--secondary);
    padding: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.95);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    border-top: 2px solid var(--primary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.social-links {
    margin-top: 0.5rem;
}

.social-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.twitter-icon {
    font-weight: bold;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 1.2rem; }
    .description { font-size: 1.4rem; }
    .pixel-card { padding: 2rem 1.5rem; }
}
