/* css/animations.css - Todas las animaciones del sitio */

/* Animated Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: fadeInStars 1.5s ease-out 0.5s forwards;
}

@keyframes fadeInStars {
    to {
        opacity: 1;
    }
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: moveStars linear infinite, twinkle 2s ease-in-out infinite alternate;
}

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

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

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

.star.large { 
    width: 3px; 
    height: 3px; 
    opacity: 1; 
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

@keyframes moveStars {
    from {
        transform: translateY(-100vh) translateX(0);
    }
    to {
        transform: translateY(100vh) translateX(-50px);
    }
}

/* Purple Orbital Effect */
.purple-orb {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
        rgba(74, 158, 255, 0.3) 0%, 
        rgba(0, 212, 255, 0.2) 30%, 
        rgba(59, 130, 246, 0.1) 60%, 
        transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbitalRotate 20s linear infinite, fadeInOrb 2s ease-out 0.2s both;
    z-index: 2;
    pointer-events: none;
    filter: blur(1px);
}

[data-theme="light"] .purple-orb {
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(29, 78, 216, 0.15) 30%, 
        rgba(59, 130, 246, 0.1) 60%, 
        transparent 100%);
}

@keyframes fadeInOrb {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.purple-orb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(74, 158, 255, 0.6) 0%, 
        rgba(0, 212, 255, 0.3) 50%, 
        transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbitalPulse 3s ease-in-out infinite;
}

[data-theme="light"] .purple-orb::before {
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.4) 0%, 
        rgba(29, 78, 216, 0.2) 50%, 
        transparent 100%);
}

@keyframes orbitalRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitalPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Animation keyframes */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDownHeader {
    to {
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(74, 158, 255, 0.3); }
    to { box-shadow: 0 0 30px rgba(74, 158, 255, 0.5); }
}

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

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