:root {
    --bg-color: #03020A;
    --text-name: #F0EEF8;
    --text-roles: #4A4860;
    --nebula-glow: rgba(160, 200, 255, 0.7);
    --planet-base: #5a3e7a;
    --planet-ring: #d4af37;
}

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

body {
    background-color: var(--bg-color);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    color: var(--text-name);
    position: relative;
    cursor: default;
}

/* Canvas Background */
#starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

/* Center Content */
#center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.name {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(240, 238, 248, 0.1);
}

.roles {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-roles);
    letter-spacing: 0.05em;
}

/* Gateways */
.gateway {
    position: absolute;
    z-index: 20;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gateway-label {
    position: absolute;
    color: var(--text-name);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.3;
    transition: opacity 0.5s ease;
    white-space: nowrap;
    text-transform: uppercase;
    pointer-events: none;
}

.gateway:hover .gateway-label {
    opacity: 1;
}

/* Top Left Nebula */
.top-left {
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
}

.nebula-glow {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--nebula-glow) 0%, rgba(3,2,10,0) 70%);
    opacity: 0.85;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.top-left:hover .nebula-glow {
    opacity: 1;
    transform: scale(1.1);
}

.top-left .gateway-label {
    top: 60%;
    left: 60%;
}

/* Bottom Right Planet */
.bottom-right {
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
}

.planet {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #76569f 0%, #301f46 70%, #11091d 100%);
    box-shadow: inset -20px -20px 50px rgba(0,0,0,0.8), 0 0 60px rgba(118, 86, 159, 0.4);
    position: relative;
    transition: box-shadow 0.5s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.planet-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    border: 15px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg) rotateY(15deg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 20px rgba(212, 175, 55, 0.3);
    pointer-events: none;
}

.bottom-right:hover .planet {
    box-shadow: inset -20px -20px 50px rgba(0,0,0,0.8), 0 0 100px rgba(118, 86, 159, 0.8);
}

.bottom-right .gateway-label {
    top: 25%;
    right: 55%;
}

/* Transitions */
.page-transitioning #center-content {
    opacity: 0;
}

.page-transitioning.to-about .planet {
    transform: scale(6) translate(-20%, -20%);
    box-shadow: none;
    z-index: 100;
}
.page-transitioning.to-about .top-left {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.page-transitioning.to-about .gateway-label {
    opacity: 0;
}

.page-transitioning.to-projects .nebula-glow {
    transform: scale(15);
    opacity: 1;
    background: radial-gradient(circle, #fff 0%, var(--nebula-glow) 50%, rgba(3,2,10,1) 100%);
    z-index: 100;
}
.page-transitioning.to-projects .bottom-right {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.page-transitioning.to-projects .gateway-label {
    opacity: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .name {
        font-size: 3rem;
    }
    .roles {
        font-size: 0.9rem;
    }
    .top-left {
        width: 300px;
        height: 300px;
        top: -100px;
        left: -100px;
    }
    .bottom-right {
        width: 300px;
        height: 300px;
        bottom: -100px;
        right: -100px;
    }
    .gateway-label {
        font-size: 0.8rem;
    }
}

@keyframes modalZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
