@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: azure;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: black;
    overflow: hidden;
    position: relative;
}

/* Fondo de estrellas animadas con parpadeo */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.8), rgba(0,0,0,1));
    z-index: -2;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    background-size: cover;
    animation: stars 50s linear infinite, blink 2s infinite alternate;
    z-index: -1;
}

@keyframes stars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-1000px);
    }
}

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

/* Partículas flotantes */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
    animation: float 10s linear infinite;
    opacity: 0.8;
}

.particle:nth-child(odd) {
    animation-duration: 8s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(100px, -200px) scale(1.5);
    }
    100% {
        transform: translate(-200px, 100px) scale(1);
    }
}

/* Botón mejorado */
.botones {
    padding: 10px 20px;
    border-radius: 80px;
    background-color: transparent;
    border: 2px solid #0a2be9;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.botones a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.botones:hover {
    background-color: #0a2be9;
    box-shadow: 0 0 15px rgba(10, 43, 233, 0.7);
    transform: scale(1.1);
}

/* Texto de saludo animado con cambio de color galáctico */
.greetings {
    font-size: 7rem;
    font-weight: 900;
    display: flex;
    gap: 5px;
    z-index: 1;
}

.greetings > span {
    animation: glow 2.5s ease-in-out infinite, galaxyColors 8s linear infinite;
}

@keyframes glow {
    0%, 100% {
        color: #fff;
        text-shadow: 0 0 12px #39c6d6, 0 0 50px #39c6d6, 0 0 100px #39c6d6;
    }
    10%, 90% {
        color: #111;
        text-shadow: none;
    }
}

/* Colores espaciales para el texto */
@keyframes galaxyColors {
    0% {
        color: #00ffff; /* Cian */
    }
    20% {
        color: #1e90ff; /* Azul Espacial */
    }
    40% {
        color: #9370db; /* Púrpura Galáctico */
    }
    60% {
        color: #ff1493; /* Magenta Brillante */
    }
    80% {
        color: #ffdd00; /* Amarillo Estrella */
    }
    100% {
        color: #fff; /* Blanco brillante de estrella */
    }
}

.greetings > span:nth-child(2) {
    animation-delay: 0.2s;
}
.greetings > span:nth-child(3) {
    animation-delay: 0.4s;
}
.greetings > span:nth-child(4) {
    animation-delay: 0.6s;
}
.greetings > span:nth-child(5) {
    animation-delay: 0.8s;
}

.description {
    font-size: 1.5rem;
    margin-bottom: 20px;
    z-index: 1;
}

@media screen and (max-width: 574px) {
    .greetings {
        font-size: 4rem;
        text-align: center;
    }
    .description {
        font-size: 1.5rem;
        text-align: center;
    }
}
