/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff00;
    --secondary-color: #ff0080;
    --accent-color: #0080ff;
    --bg-dark: #000000;
    --bg-darker: #111111;
    --text-primary: #00ff00;
    --text-secondary: #ffffff;
    --text-muted: #888888;
    --border-color: #333333;
    --pixel-size: 4px;
}

body {
    font-family: 'Press Start 2P', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Pixel Background */
.pixel-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, var(--primary-color) 100%),
        linear-gradient(0deg, transparent 98%, var(--primary-color) 100%);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: -1;
    animation: pixelMove 20s linear infinite;
}

@keyframes pixelMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--primary-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    position: relative;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.logo-pixels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        var(--primary-color) 2px,
        var(--primary-color) 4px
    );
    opacity: 0.3;
    animation: pixelFlicker 0.5s infinite;
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 10px var(--primary-color); }
    100% { text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
}

@keyframes pixelFlicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 4px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary, .btn-secondary {
    position: relative;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-color);
}

.btn-pixels {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 4px
    );
    transition: left 0.5s ease;
}

.btn-primary:hover .btn-pixels {
    left: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    margin-bottom: 0.5rem;
    animation: titleSlide 1s ease-out forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.highlight {
    color: var(--secondary-color);
    text-shadow: 0 0 20px var(--secondary-color);
}

@keyframes titleSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-family: 'Orbitron', monospace;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Game Console */
.game-console {
    background: #333333;
    border: 4px solid #666666;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.console-screen {
    background: #000000;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.screen-content {
    text-align: center;
    color: var(--primary-color);
}

.pixel-character {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pixelBounce 2s ease-in-out infinite;
}

@keyframes pixelBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.screen-text {
    font-size: 1rem;
    margin-bottom: 1rem;
    animation: textFlicker 3s ease-in-out infinite;
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.3s; }
.loading-dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.console-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d-pad {
    position: relative;
    width: 60px;
    height: 60px;
}

.d-pad-up, .d-pad-down, .d-pad-left, .d-pad-right {
    position: absolute;
    background: #666666;
    border: 2px solid #999999;
}

.d-pad-up, .d-pad-down {
    width: 20px;
    height: 40px;
    left: 20px;
}

.d-pad-left, .d-pad-right {
    width: 40px;
    height: 20px;
    top: 20px;
}

.d-pad-up { top: 0; }
.d-pad-down { bottom: 0; }
.d-pad-left { left: 0; }
.d-pad-right { right: 0; }

.d-pad-center {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 20px;
    height: 20px;
    background: #999999;
    border: 2px solid #cccccc;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-a, .btn-b {
    width: 40px;
    height: 40px;
    background: #666666;
    border: 2px solid #999999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-a:hover, .btn-b:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary-color);
}

.title-decoration {
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    position: relative;
}

.title-decoration::before,
.title-decoration::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background: var(--secondary-color);
}

.title-decoration::before {
    left: -30px;
}

.title-decoration::after {
    right: -30px;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.text-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    background: rgba(0, 255, 0, 0.05);
}

.text-block h3 {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.text-block p {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border: 2px solid var(--primary-color);
    background: rgba(0, 255, 0, 0.1);
}

.stat-number {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.retro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-item {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    background: rgba(0, 255, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.grid-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.item-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.grid-item h4 {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.grid-item p {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'Orbitron', monospace;
}

/* Games Section */
.games {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: #222222;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    transform: translateY(-5px);
}

.game-screen {
    background: #000000;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
    text-align: center;
}

.game-title {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.game-preview {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-art {
    font-size: 3rem;
    animation: pixelRotate 4s linear infinite;
}

@keyframes pixelRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.game-info p {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.game-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat {
    font-size: 0.6rem;
    color: var(--text-muted);
    background: rgba(0, 255, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
}

.play-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--secondary-color);
    box-shadow: 0 0 20px var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: rgba(0, 255, 0, 0.05);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 10px;
}

.contact-details h4 {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.contact-form {
    background: #222222;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #000000;
    border: 2px solid var(--border-color);
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 2rem 0;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.footer-brand .logo-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--border-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .retro-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.7rem;
    }
    
    .game-console {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}
