:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #00ffc3; /* Cyberpunk Teal */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden; /* Prevent scrollbars */
    height: 100vh;
    width: 100vw;
}

/* Canvas covers the screen behind content */
#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Content Container */
.container {
    position: relative;
    z-index: 2; /* Above canvas */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    pointer-events: none; /* Let mouse pass through to canvas... */
}

/* But re-enable clicks on links */
a, h1 {
    pointer-events: auto;
}

/* Typography */
h1 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.9;
    margin-bottom: 1rem;
    position: relative;
    mix-blend-mode: difference; /* Cool interaction with background */
}

.roles {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 4rem;
}

.roles span {
    color: var(--accent-color);
}

/* Navigation */
.links ul {
    list-style: none;
}

.links li {
    margin-bottom: 1rem;
}

.link-item {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 300;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.link-item .arrow {
    opacity: 0;
    transform: translateX(-10px);
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'Space Mono', monospace;
    color: var(--accent-color);
    font-size: 1rem;
    vertical-align: middle;
}

.link-item:hover {
    padding-left: 10px;
    letter-spacing: 2px;
}

.link-item:hover .arrow {
    opacity: 1;
    transform: translateX(5px);
}

footer {
    position: absolute;
    bottom: 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    opacity: 0.3;
}

/* Glitch Effect on Hover for Name */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(80px, 9999px, 90px, 0); }
    10% { clip: rect(10px, 9999px, 80px, 0); }
    15% { clip: rect(0, 0, 0, 0); }
    100% { clip: rect(0, 0, 0, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(0, 0, 0, 0); }
    15% { clip: rect(0, 0, 0, 0); }
    20% { clip: rect(60px, 9999px, 70px, 0); }
    25% { clip: rect(20px, 9999px, 30px, 0); }
    100% { clip: rect(0, 0, 0, 0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .container { padding: 2rem; }
    h1 { font-size: 3rem; }
    .link-item { font-size: 1.2rem; }
}