:root {
    --primary: #cddc39;
    /* Paparajote Lemon Green */
    --primary-dim: #9e9d24;
    --accent: #00e5ff;
    /* Cyan */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(205, 220, 57, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.05) 0%, transparent 25%);
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo .highlight {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(205, 220, 57, 0.5);
}

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

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-main);
    text-transform: uppercase;
}

/* Simple Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--primary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(13px, 9999px, 86px, 0);
    }

    20% {
        clip: rect(65px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(2px, 9999px, 120px, 0);
    }

    60% {
        clip: rect(98px, 9999px, 4px, 0);
    }

    80% {
        clip: rect(23px, 9999px, 66px, 0);
    }

    100% {
        clip: rect(56px, 9999px, 92px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(3px, 9999px, 20px, 0);
    }

    40% {
        clip: rect(88px, 9999px, 5px, 0);
    }

    60% {
        clip: rect(10px, 9999px, 54px, 0);
    }

    80% {
        clip: rect(45px, 9999px, 76px, 0);
    }

    100% {
        clip: rect(110px, 9999px, 32px, 0);
    }
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 300;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: var(--transition);
}

.cta-button:hover::after {
    width: 100%;
}

.cta-button:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(205, 220, 57, 0.4);
}

/* Games Section */
.games-section {
    padding: 5rem 5%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 50%, var(--bg-dark) 100%);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.section-title .highlight {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about-section {
    padding: 8rem 5%;
    text-align: center;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.4rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary);
}

.card-image {
    height: 250px;
    background-color: #222;
    position: relative;
    overflow: hidden;
    /* Placeholders for images - in real scenario, use img tags */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder Colors */
.pokemon-fr {
    background: linear-gradient(45deg, #ff5252, #b71c1c);
}

.pokemon-em {
    background: linear-gradient(45deg, #69f0ae, #1b5e20);
}

.zelda-mc {
    background: linear-gradient(45deg, #448aff, #0d47a1);
}

.zelda-lttp {
    background: linear-gradient(45deg, #e040fb, #aa00ff);
}

.card-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.game-card:hover .card-image .overlay {
    background: rgba(0, 0, 0, 0);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-main);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.card-content p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.download-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.download-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.download-btn .icon {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
}

.footer-content p {
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.footer .heart {
    color: var(--primary);
}

.socials a {
    color: var(--text-dim);
    margin: 0 10px;
    text-decoration: none;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Hide nav links on mobile for simplicity */
    }

    .navbar {
        justify-content: center;
    }
}