:root {
    --bg-color: #000000;
    /* Dark for WebGL */
    --text-color: #e0e0e0;
    --accent-color: #a0a0a0;
    --link-color: #ffffff;
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    /* Removed flex centering to allow absolute positioning of content */
}

#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.content {
    position: absolute;
    top: 2rem;
    right: 3rem;
    z-index: 1;
    text-align: right;
    /* Right align text since it's in the corner */
    padding: 0;
    max-width: 300px;
    /* Smaller width for corner */
    width: auto;
    animation: fadeIn 1.5s ease-out;
    pointer-events: none;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

header h2 {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bio p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Allow pointer events on links */
footer {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align items to the right */
    gap: 0.5rem;
    /* Reduced gap */
}

.link-item {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.link-item:hover {
    opacity: 0.8;
}

.icon-link {
    display: block;
    width: 20px;
    /* Reduced to ~20px (10% smaller than 22px) */
    height: 20px;
    color: var(--link-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-link:hover {
    transform: scale(1.1);
}

.icon-link svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .content {
        padding: 1.5rem;
        top: 1rem;
        right: 1rem;
    }
}