:root {
    /* Arcade Theme Colors */
    --arcade-purple: #6B2D8B;
    --arcade-cyan: #00F0FF;
    --arcade-pink: #FF00AA;
    --arcade-yellow: #FFD700;
    --arcade-dark: #0A0A1F;
    --arcade-black: #000000;
    --arcade-white: #FFFFFF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--arcade-purple) 0%, var(--arcade-cyan) 100%);
    --gradient-glow: linear-gradient(90deg, var(--arcade-pink), var(--arcade-purple), var(--arcade-cyan));
    
    /* Fonts */
    --font-heading: 'Press Start 2P', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
    background-color: var(--arcade-dark);
    color: var(--arcade-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) translateY(100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    z-index: -2;
    opacity: 0.5;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 40px; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    padding: 1.5rem 0;
    border-bottom: 2px solid rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--arcade-white);
    text-shadow: 2px 2px var(--arcade-pink), -2px -2px var(--arcade-cyan);
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--arcade-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--arcade-cyan);
    text-shadow: 0 0 10px var(--arcade-cyan);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--arcade-purple);
    color: var(--arcade-white);
    border: 2px solid var(--arcade-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.btn-primary:hover {
    background: var(--arcade-cyan);
    color: var(--arcade-dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
}

.btn-glow {
    position: relative;
    background: var(--arcade-dark);
    color: var(--arcade-white);
    border: 2px solid var(--arcade-pink);
    box-shadow: 0 0 15px rgba(255, 0, 170, 0.6);
    z-index: 1;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-glow);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-glow:hover {
    border-color: transparent;
    box-shadow: 0 0 25px rgba(255, 0, 170, 0.9);
}

.btn-outline {
    background: transparent;
    color: var(--arcade-cyan);
    border: 2px solid var(--arcade-cyan);
}

.btn-outline:hover {
    background: var(--arcade-cyan);
    color: var(--arcade-dark);
    box-shadow: 0 0 15px var(--arcade-cyan);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.glitch {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--arcade-white);
    position: relative;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
}

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

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

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--arcade-cyan);
    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(61px, 9999px, 8px, 0); }
    40% { clip: rect(29px, 9999px, 81px, 0); }
    60% { clip: rect(98px, 9999px, 32px, 0); }
    80% { clip: rect(74px, 9999px, 45px, 0); }
    100% { clip: rect(21px, 9999px, 63px, 0); }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Arcade Cabinet Graphic */
.arcade-cabinet {
    width: 300px;
    height: 400px;
    background: #111;
    border: 4px solid var(--arcade-purple);
    border-radius: 10px 10px 0 0;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(107, 45, 139, 0.5), inset 0 0 20px rgba(0,0,0,0.8);
    transform: perspective(800px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.arcade-cabinet:hover {
    transform: perspective(800px) rotateY(0deg) scale(1.05);
}

.arcade-cabinet::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -4px;
    right: -4px;
    height: 60px;
    background: var(--arcade-pink);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 20px var(--arcade-pink);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.screen {
    width: 85%;
    height: 200px;
    background: #000;
    margin: 40px auto 0;
    border: 10px solid #222;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.2);
}

.screen-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    color: var(--arcade-yellow);
    font-size: 1rem;
    text-align: center;
    text-shadow: 0 0 10px var(--arcade-yellow);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #222;
    transform: perspective(300px) rotateX(45deg);
    transform-origin: bottom;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 2px solid var(--arcade-purple);
}

.joystick {
    width: 15px;
    height: 40px;
    background: #555;
    position: relative;
    border-radius: 5px;
}

.joystick::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -7.5px;
    width: 30px;
    height: 30px;
    background: var(--arcade-pink);
    border-radius: 50%;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.5);
}

.button {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    box-shadow: 0 5px 0 #000, inset -2px -2px 5px rgba(0,0,0,0.5);
}

.button.red { background: #ff3333; }
.button.blue { background: #3333ff; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .nav {
        display: none; /* Add mobile menu later if needed */
    }
}
