/* Sphere and orbiting circles animation */
@keyframes sphere-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes orbit-1 {
    0% {
        transform: rotateY(0deg) rotateX(30deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(30deg);
    }
}

@keyframes orbit-2 {
    0% {
        transform: rotateY(0deg) rotateX(-30deg);
    }
    100% {
        transform: rotateY(-360deg) rotateX(-30deg);
    }
}

@keyframes orbit-3 {
    0% {
        transform: rotateX(0deg) rotateZ(45deg);
    }
    100% {
        transform: rotateX(360deg) rotateZ(45deg);
    }
}

@keyframes orbit-4 {
    0% {
        transform: rotateX(0deg) rotateZ(-45deg);
    }
    100% {
        transform: rotateX(-360deg) rotateZ(-45deg);
    }
}

@keyframes fade-in-out {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.app-loading {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 9999;
}

.sphere-container {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #bbcedd, #4a90e2);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        inset -10px -10px 20px rgba(0, 0, 0, 0.2);
    animation: sphere-pulse 2s ease-in-out infinite;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    margin: -80px 0 0 -80px;
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit-ring.orbit-1 {
    animation: orbit-1 3s linear infinite;
}

.orbit-ring.orbit-2 {
    animation: orbit-2 4s linear infinite;
}

.orbit-ring.orbit-3 {
    animation: orbit-3 5s linear infinite;
}

.orbit-ring.orbit-4 {
    animation: orbit-4 6s linear infinite;
}

.orbit-circle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff, #ffeb3b);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: fade-in-out 2s ease-in-out infinite;
}

.orbit-ring.orbit-1 .orbit-circle {
    background: radial-gradient(circle, #ff6b6b, #ff4757);
    animation-delay: 0s;
}

.orbit-ring.orbit-2 .orbit-circle {
    background: radial-gradient(circle, #4ecdc4, #00cec9);
    animation-delay: 0.5s;
}

.orbit-ring.orbit-3 .orbit-circle {
    background: radial-gradient(circle, #45b7d1, #3742fa);
    animation-delay: 1s;
}

.orbit-ring.orbit-4 .orbit-circle {
    background: radial-gradient(circle, #f9ca24, #f0932b);
    animation-delay: 1.5s;
}

.loading-text {
    margin-top: 50px;
    font-size: 18px;
    font-weight: 300;
    text-align: center;
    opacity: 0.9;
    animation: fade-in-out 2s ease-in-out infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .sphere-container {
        width: 150px;
        height: 150px;
        transform: scale(0.8);
    }
    
    .loading-text {
        font-size: 16px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .sphere-container {
        width: 120px;
        height: 120px;
        transform: scale(0.7);
    }
    
    .loading-text {
        font-size: 14px;
        margin-top: 20px;
    }
}

/* Fallback for older browsers */
@media (prefers-reduced-motion: reduce) {
    .sphere,
    .orbit-ring,
    .orbit-circle,
    .loading-text {
        animation: none;
    }
    
    .sphere {
        opacity: 0.8;
    }
    
    .orbit-circle {
        opacity: 0.6;
    }
}