.cosmic-space {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #0a0a18, #1a0b2e, #0a0a18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Star field canvas */
#star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Nebula glowing elements */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 2;
}

.nebula-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(65, 88, 208, 0.3), rgba(65, 88, 208, 0.05) 70%);
    top: -200px;
    right: -100px;
    animation: nebula-float 25s ease-in-out infinite alternate;
}

.nebula-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(207, 86, 255, 0.3), rgba(207, 86, 255, 0.05) 70%);
    bottom: -150px;
    left: -100px;
    animation: nebula-float 20s ease-in-out infinite alternate-reverse;
}

.nebula-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(86, 195, 255, 0.3), rgba(86, 195, 255, 0.05) 70%);
    top: 30%;
    right: 10%;
    animation: nebula-float 30s ease-in-out infinite alternate;
}

@keyframes nebula-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -30px) scale(1.1);
    }
    100% {
        transform: translate(-30px, 40px) scale(0.9);
    }
}

/* Main content container */
.space-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

/* Cosmic name styling */
.cosmic-name {
    margin-bottom: 2rem;
    text-align: center;
    perspective: 1000px;
}

.name-headline {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0;
    background: linear-gradient(to right, #ffffff, #a0a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: name-appear 2s forwards 0.5s;
}

@keyframes name-appear {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Identity line styling */
.identity-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
}

.identity-text {
    margin-right: 1rem;
}

.identity-divider {
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 1rem;
}

.aspiring-container {
    display: flex;
    align-items: center;
}

.aspiring-prefix {
    margin-right: 0.5rem;
    opacity: 0.7;
}

.aspiring-role {
    color: #a183ff;
    font-weight: 600;
    position: relative;
}

.aspiring-role::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 2px;
    background: linear-gradient(to bottom, #a183ff, #63b5ff);
    animation: cursor-blink 0.8s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Explore button styling */
.explore-section {
    margin-top: 1rem;
}

.cosmic-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s ease;
    z-index: 1;
}

.cosmic-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(138, 83, 255, 0.5), rgba(86, 157, 255, 0.5));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cosmic-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(138, 83, 255, 0.3);
}

.cosmic-button:hover::before {
    opacity: 1;
}

.cosmic-button-text {
    margin-right: 10px;
}

.cosmic-button-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.cosmic-button:hover .cosmic-button-icon {
    animation: icon-pulse 1.5s infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Orbital path animation */
.orbital-path {
    position: absolute;
    width: 800px;
    height: 250px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
    z-index: 0;
    animation: orbit-pulse 8s infinite linear;
}

@keyframes orbit-pulse {
    0%, 100% {
        width: 800px;
        height: 250px;
        border-color: rgba(255, 255, 255, 0.1);
    }
    50% {
        width: 840px;
        height: 270px;
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* Floating particles */
.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: none;
}

.floating-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5);
    animation: particle-float 8s infinite ease-in-out;
}

.p1 {
    top: 20%;
    left: 15%;
    animation-duration: 7s;
    animation-delay: 0s;
}

.p2 {
    top: 70%;
    left: 25%;
    animation-duration: 9s;
    animation-delay: 1s;
}

.p3 {
    top: 30%;
    right: 20%;
    animation-duration: 8s;
    animation-delay: 2s;
}

.p4 {
    top: 80%;
    right: 10%;
    animation-duration: 10s;
    animation-delay: 1.5s;
}

.p5 {
    top: 40%;
    left: 50%;
    animation-duration: 11s;
    animation-delay: 0.5s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .name-headline {
        font-size: 3.5rem;
    }

    .identity-line {
        flex-direction: column;
        text-align: center;
    }

    .identity-text {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .identity-divider {
        display: none;
    }

    .orbital-path {
        width: 500px;
        height: 150px;
    }
}