/* Geometric Sphere Animation - Shared Component */

.geometric-animation {
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    perspective: 1000px;
}

.geometric-animation.small {
    max-width: 200px;
    height: 200px;
}

.geometric-animation.medium {
    max-width: 300px;
    height: 300px;
}

.sphere-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateSphere 20s linear infinite;
}

.sphere-container.slow {
    animation-duration: 30s;
}

.sphere-container.fast {
    animation-duration: 10s;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform-style: preserve-3d;
}

.geometric-animation.small .dot {
    width: 4px;
    height: 4px;
}

.geometric-animation.medium .dot {
    width: 6px;
    height: 6px;
}

@keyframes rotateSphere {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(90deg) rotateY(90deg); }
    50% { transform: rotateX(180deg) rotateY(180deg); }
    75% { transform: rotateX(270deg) rotateY(270deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Loading Screen Specific Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bs-body-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-screen .loading-text {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--bs-secondary);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Dark mode support */
[data-bs-theme="dark"] .loading-screen {
    background-color: var(--bs-dark);
}
