body {
    font-family: 'Unbounded', sans-serif;
    background: #000000;
    color: #e0e0e0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, #0a0e2a 0%, #000000 70%),
        radial-gradient(circle at 20% 80%, rgba(26, 36, 86, 0.8) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(41, 21, 71, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(13, 17, 38, 0.4) 0%, transparent 40%);
    z-index: -3;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
}

.star.small {
    width: 1px;
    height: 1px;
}

.star.medium {
    width: 2px;
    height: 2px;
}

.star.large {
    width: 3px;
    height: 3px;
}

.nebula {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: nebulaPulse 15s infinite ease-in-out;
}

.nebula-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #4a00e0, transparent);
    animation-delay: 0s;
}

.nebula-2 {
    top: 60%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00b4db, transparent);
    animation-delay: -5s;
}

.nebula-3 {
    bottom: 10%;
    left: 20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #8e2de2, transparent);
    animation-delay: -10s;
}

.planet {
    position: fixed;
    bottom: -100px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 30% 30%, #3a1c71, #1a1a2e);
    border-radius: 50%;
    box-shadow: 
        inset -20px -20px 50px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(58, 28, 113, 0.6);
    z-index: -1;
    animation: planetFloat 20s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes nebulaPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.2; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.4; }
}

@keyframes planetFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
}

.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    border-radius: 50%;
    animation: shootingStar 3s linear forwards;
    z-index: -1;
}

@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(500px) translateY(200px) scale(1);
        opacity: 0;
    }
}

#vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.95) 100%);
    pointer-events: none;
    z-index: 99;
    opacity: 1;
    animation: subtleVignettePulse 20s ease-in-out infinite alternate;
}

@keyframes subtleVignettePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.95; }
    100% { transform: scale(1); opacity: 1; }
}

.section-background-figures {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.section-figure-detail {
    position: absolute;
    border-radius: 50%;
    filter: none;
}