:root {
    --bg-color: #050505;
    --grid-color: rgba(0, 255, 242, 0.1);
    --primary-neon: #00fff2;
    --secondary-neon: #ff00ff;
    --text-color: #e0e0e0;
    --font-header: 'Press Start 2P', cursive;
    --font-body: 'Share Tech Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Retro Grid Background */
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;

    /* Vignette */
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
}

/* CRT Scanline Effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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;
    pointer-events: none;
    z-index: 10;
    animation: scroll 10s linear infinite;
}

@keyframes scroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Header & Headshot */
.headshot-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    position: relative;
    border: 4px solid var(--primary-neon);
    box-shadow: 0 0 20px var(--primary-neon), inset 0 0 20px var(--primary-neon);
    border-radius: 50%;
    /* Circular */
    overflow: hidden;
    background: #000;
}

.headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2) brightness(1.1);
    /* Retro feel */
}

h1 {
    font-family: var(--font-header);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 4px 4px var(--secondary-neon);
    line-height: 1.4;
}

.subtitle {
    color: var(--secondary-neon);
    /* Changed to pink */
    font-size: 1.2rem;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--secondary-neon);
}

/* Links Menu */
.links-menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.retro-btn {
    display: block;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--primary-neon);
    color: var(--primary-neon);
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.2);
}

.retro-btn:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 20px var(--primary-neon);
    transform: scale(1.02);
}

.retro-btn:active {
    transform: scale(0.98);
}

/* Footer */
footer {
    margin-top: 4rem;
    font-size: 0.8rem;
    color: #666;
    font-family: var(--font-body);
}

/* Glitch Effect for Title */
.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 var(--secondary-neon);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary-neon);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(14px, 9999px, 127px, 0);
    }

    5% {
        clip: rect(82px, 9999px, 11px, 0);
    }

    10% {
        clip: rect(104px, 9999px, 66px, 0);
    }

    15% {
        clip: rect(16px, 9999px, 112px, 0);
    }

    20% {
        clip: rect(113px, 9999px, 143px, 0);
    }

    25% {
        clip: rect(10px, 9999px, 97px, 0);
    }

    30% {
        clip: rect(72px, 9999px, 73px, 0);
    }

    35% {
        clip: rect(12px, 9999px, 92px, 0);
    }

    40% {
        clip: rect(138px, 9999px, 137px, 0);
    }

    45% {
        clip: rect(145px, 9999px, 10px, 0);
    }

    50% {
        clip: rect(13px, 9999px, 46px, 0);
    }

    55% {
        clip: rect(5px, 9999px, 135px, 0);
    }

    60% {
        clip: rect(135px, 9999px, 57px, 0);
    }

    65% {
        clip: rect(105px, 9999px, 13px, 0);
    }

    70% {
        clip: rect(21px, 9999px, 104px, 0);
    }

    75% {
        clip: rect(122px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(127px, 9999px, 11px, 0);
    }

    85% {
        clip: rect(13px, 9999px, 52px, 0);
    }

    90% {
        clip: rect(125px, 9999px, 113px, 0);
    }

    95% {
        clip: rect(75px, 9999px, 115px, 0);
    }

    100% {
        clip: rect(105px, 9999px, 106px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(129px, 9999px, 36px, 0);
    }

    5% {
        clip: rect(75px, 9999px, 66px, 0);
    }

    10% {
        clip: rect(136px, 9999px, 2px, 0);
    }

    15% {
        clip: rect(10px, 9999px, 107px, 0);
    }

    20% {
        clip: rect(139px, 9999px, 108px, 0);
    }

    25% {
        clip: rect(3px, 9999px, 145px, 0);
    }

    30% {
        clip: rect(7px, 9999px, 117px, 0);
    }

    35% {
        clip: rect(128px, 9999px, 139px, 0);
    }

    40% {
        clip: rect(9px, 9999px, 63px, 0);
    }

    45% {
        clip: rect(148px, 9999px, 105px, 0);
    }

    50% {
        clip: rect(28px, 9999px, 92px, 0);
    }

    55% {
        clip: rect(120px, 9999px, 11px, 0);
    }

    60% {
        clip: rect(116px, 9999px, 137px, 0);
    }

    65% {
        clip: rect(134px, 9999px, 10px, 0);
    }

    70% {
        clip: rect(10px, 9999px, 133px, 0);
    }

    75% {
        clip: rect(104px, 9999px, 144px, 0);
    }

    80% {
        clip: rect(101px, 9999px, 14px, 0);
    }

    85% {
        clip: rect(124px, 9999px, 14px, 0);
    }

    90% {
        clip: rect(122px, 9999px, 16px, 0);
    }

    95% {
        clip: rect(69px, 9999px, 145px, 0);
    }

    100% {
        clip: rect(98px, 9999px, 136px, 0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 1rem;
    }

    .headshot-container {
        width: 120px;
        height: 120px;
    }
}