:root {
    --primary-color: #00ff00;
    --background-color: #000000;
    --text-color: #00ff00;
    --glow-color: rgba(0, 255, 0, 0.5);
}

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

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "Press Start 2P", cursive;
    line-height: 1.6;
}

/* Mobile visibility classes */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-controls {
        display: flex; /* Show only on mobile */
        justify-content: space-around;
        padding: 1rem;
        gap: 1rem;
    }
}

/* Navigation */
.fixed-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    text-shadow: 0 0 5px var(--glow-color);
}

.mobile-menu-button {
    display: none;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* Sections */
.full-height {
    min-height: 100vh;
    padding: 5rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    padding: 2rem;
}

/* Game Container */
.game-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.game-instructions {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    margin: 1rem 0;
    animation: blink 2s infinite;
}

#gameCanvas {
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
}

/* Mobile Controls */
#mobile-controls {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    gap: 1rem;
}

#mobile-controls button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-size: 1.5rem;
    cursor: pointer;
    flex: 1;
}

.mobile-controls {
    display: none; /* Hidden by default */
}

.mobile-controls button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-size: 1.5rem;
    cursor: pointer;
    flex: 1;
}

/* Game Over Screen */
.game-over-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.error-container {
    padding: 2rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--glow-color);
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    max-width: 90%;
    margin: 20px;
}

/* Retro Effects */
.scanlines::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.2) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 999;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.home-button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-family: "Press Start 2P", cursive;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin-top: 2rem;
}

.home-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    transition: 0.5s;
}

.home-button:hover {
    box-shadow: 0 0 20px var(--glow-color);
    text-shadow: 0 0 5px var(--glow-color);
    transform: scale(1.05);
}

.home-button:hover::before {
    left: 100%;
}

.home-button:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px var(--glow-color);
}

/* Add blinking animation for arcade feel */
@keyframes coin-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.home-button {
    animation: coin-blink 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .retro-box {
        padding: 1rem;
        margin: 0.5rem;
    }
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
}

.project-card {
    border: 2px solid var(--primary-color);
    background: rgba(0, 255, 0, 0.05);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 0 10px var(--glow-color);
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    animation: scanline 2s linear infinite;
}

.project-card::after {
    content: ">";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateX(10px);
    box-shadow: 0 0 20px var(--glow-color);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--glow-color);
}

.project-card p {
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Añadir efecto de terminal */
.project-card::before {
    content: "$ ./";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0.5;
}

/* Añadir animación de escaneo */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Añadir efecto de glitch en hover */
.project-card:hover h3 {
    animation: glitch 0.3s linear infinite;
}

@keyframes glitch {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    50% {
        transform: translateX(2px);
    }
    75% {
        transform: translateX(-1px);
    }
    100% {
        transform: translateX(1px);
    }
}

/* Agregar líneas de decoración */
.project-card {
    position: relative;
}

.project-card::before,
.project-card::after {
    content: "";
    position: absolute;
    background: var(--primary-color);
}

.project-card::before {
    top: 10px;
    right: 10px;
    width: 20px;
    height: 2px;
}

.project-card::after {
    bottom: 10px;
    left: 10px;
    width: 20px;
    height: 2px;
}

/* Añadir esquinas decorativas */
.project-card {
    position: relative;
    padding: 2rem;
}

.project-card::before {
    content: "[]";
    position: absolute;
    top: 5px;
    left: 5px;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.project-card::after {
    content: ">";
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Efecto de hover mejorado */
.project-card:hover {
    transform: scale(1.02);
    box-shadow:
        0 0 20px var(--glow-color),
        inset 0 0 10px var(--glow-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .project-card {
        margin: 1rem 0;
    }
}
