:root {
    /* Retro 80s/90s Palette */
    --neon-pink: #FF00FF;
    --electric-blue: #00FFFF;
    --lime-green: #32CD32;
    --bright-yellow: #FFFF00;
    --tv-black: #111111;
    --static-gray: #CCCCCC;
    --white: #FFFFFF;
    
    /* Fonts */
    --font-display: 'Press Start 2P', cursive;
    --font-body: 'VT323', monospace;
    --font-bold: 'Archivo Black', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Press+Start+2P&family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white' stroke='black' stroke-width='2'><path d='M0,0 L12,12 L6,14 L6,24 L0,24 Z'/></svg>"), auto;
}

body {
    background-color: var(--tv-black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.2rem;
    overflow-x: hidden;
    position: relative;
    line-height: 1.4;
}

/* CRT Overlay Effect */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Noise Texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 1.5;
}

h1 {
    font-size: 2.5rem;
    color: var(--neon-pink);
    text-shadow: 4px 4px 0 var(--electric-blue);
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.8rem;
    color: var(--bright-yellow);
    border-bottom: 4px solid var(--lime-green);
    display: inline-block;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

a {
    color: var(--electric-blue);
    text-decoration: none;
}

a:hover {
    background-color: var(--electric-blue);
    color: var(--tv-black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Header */
header {
    border-bottom: 4px solid var(--white);
    padding: 2rem 0;
    background: var(--tv-black);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-bold);
    font-size: 2rem;
    color: var(--white);
    background: var(--neon-pink);
    padding: 0.5rem 1rem;
    transform: rotate(-2deg);
    box-shadow: 5px 5px 0 var(--electric-blue);
    display: inline-block;
}

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

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--white);
    padding: 0.5rem;
    border: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    border-color: var(--lime-green);
    color: var(--lime-green);
    background: transparent;
    animation: blink 0.5s step-end infinite alternate;
}

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

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 4px dashed var(--static-gray);
    padding: 4rem 0;
    position: relative;
}

.hero-box {
    border: 4px solid var(--white);
    padding: 3rem;
    background: rgba(0,0,0,0.8);
    box-shadow: 10px 10px 0 var(--neon-pink), -10px -10px 0 var(--electric-blue);
    max-width: 800px;
}

.pixel-btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1rem;
    padding: 1rem 2rem;
    background: var(--lime-green);
    color: var(--tv-black);
    border: 4px solid var(--white);
    box-shadow: 5px 5px 0 var(--tv-black);
    margin-top: 2rem;
    transition: transform 0.1s;
}

.pixel-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--tv-black);
    background: var(--bright-yellow);
    color: var(--tv-black);
}

.pixel-btn.secondary {
    background: var(--electric-blue);
}

/* Sections */
section {
    padding: 6rem 0;
}

/* Grid */
.retro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.retro-card {
    border: 4px solid var(--white);
    padding: 2rem;
    background: var(--tv-black);
    position: relative;
}

.retro-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--static-gray);
    z-index: -1;
}

.retro-card h3 {
    color: var(--electric-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.retro-card:hover {
    background: #222;
}

.icon-pixel {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--neon-pink);
}

/* Marquee */
.marquee-container {
    background: var(--bright-yellow);
    color: var(--tv-black);
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-bold);
    text-transform: uppercase;
    border-top: 4px solid var(--tv-black);
    border-bottom: 4px solid var(--tv-black);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-size: 1.5rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Contact Form */
.retro-input {
    width: 100%;
    padding: 1rem;
    background: #000;
    border: 2px solid var(--lime-green);
    color: var(--lime-green);
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.retro-input:focus {
    outline: none;
    background: #111;
    box-shadow: 0 0 10px var(--lime-green);
}

/* Footer */
footer {
    background: var(--white);
    color: var(--tv-black);
    padding: 4rem 0;
    text-align: center;
    font-family: var(--font-bold);
}

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

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

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

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

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 15px, 0); }
    20% { clip: rect(50px, 9999px, 80px, 0); }
    40% { clip: rect(10px, 9999px, 30px, 0); }
    60% { clip: rect(60px, 9999px, 90px, 0); }
    80% { clip: rect(30px, 9999px, 50px, 0); }
    100% { clip: rect(90px, 9999px, 20px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 90px, 0); }
    20% { clip: rect(30px, 9999px, 10px, 0); }
    40% { clip: rect(80px, 9999px, 50px, 0); }
    60% { clip: rect(20px, 9999px, 20px, 0); }
    80% { clip: rect(50px, 9999px, 60px, 0); }
    100% { clip: rect(15px, 9999px, 80px, 0); }
}

/* Mobile Nav */
.hamburger {
    display: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    border: 2px solid var(--white);
    padding: 0.2rem 0.5rem;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--tv-black);
        border-bottom: 4px solid var(--white);
        padding: 2rem;
        align-items: center;
    }
    .nav-links.active {
        display: flex;
    }
}
