@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Grotesk:wght@400;700&display=swap');

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #000;
    color: #0f0;
    overflow-x: hidden;
    cursor: crosshair;
}

/* Matrix-style background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.15;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.05) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 255, 0, 0.05) 3px
    );
    z-index: 1;
    pointer-events: none;
}

/* Glitch effect */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch {
    animation: glitch 0.3s infinite;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    animation: pulse 2s infinite;
}

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

nav a {
    color: #0f0;
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

nav a::before {
    content: '> ';
    opacity: 0;
    transition: opacity 0.3s;
}

nav a:hover::before {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 1000px;
}

.ascii-art {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #0f0;
    line-height: 1.2;
    margin-bottom: 30px;
    white-space: pre;
    text-shadow: 0 0 5px #0f0;
}

.hero h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 48px;
    margin-bottom: 20px;
    color: #0f0;
    text-shadow: 0 0 20px #0f0, 0 0 40px #0f0;
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 0.9; }
}

.hero .subtitle {
    font-size: 20px;
    color: #00ff00;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.typing-effect {
    color: #ff00ff;
    border-right: 2px solid #ff00ff;
    animation: blink 0.7s infinite;
    display: inline-block;
    margin-left: 5px;
}

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

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: #0f0;
    text-decoration: none;
    border: 3px solid #0f0;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 30px;
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0f0;
    transition: left 0.5s;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: #000;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.8);
}

/* Sections */
section {
    padding: 100px 5%;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 32px;
    text-align: center;
    margin-bottom: 60px;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff;
}

.section-title::before {
    content: '[';
    color: #0f0;
}

.section-title::after {
    content: ']';
    color: #0f0;
}

/* Terminal-style content */
.terminal {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0f0;
    padding: 30px;
    font-family: 'Courier New', monospace;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.terminal-header {
    color: #0f0;
    margin-bottom: 20px;
    font-size: 14px;
}

.terminal-header::before {
    content: 'user@novasgame:~$ ';
    color: #ff00ff;
}

.terminal p {
    color: #0f0;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 15px;
}

.terminal .command {
    color: #00ffff;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.stat-card {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #0f0;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-card:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 10px;
    color: #00ffff;
}

.stat-card p {
    color: #0f0;
    font-size: 14px;
    line-height: 1.6;
}

/* Code block style */
.code-block {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #0f0;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    font-family: 'Courier New', monospace;
    color: #0f0;
    overflow-x: auto;
}

.code-block .comment {
    color: #666;
}

.code-block .keyword {
    color: #ff00ff;
}

.code-block .function {
    color: #00ffff;
}

/* Contact Section */
.contact-terminal {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #0f0;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.contact-line {
    font-family: 'Courier New', monospace;
    color: #0f0;
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-line::before {
    content: '> ';
    color: #ff00ff;
}

.email-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.email-link:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 5%;
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid #0f0;
    font-family: 'Courier New', monospace;
    color: #0f0;
}

.easter-egg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 40px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    filter: drop-shadow(0 0 10px #0f0);
}

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

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

    .section-title {
        font-size: 20px;
    }

    .ascii-art {
        font-size: 6px;
    }

    nav a {
        margin-left: 15px;
        font-size: 10px;
    }
}