/* Main splash screen overlay - completely independent of page layout */
.custom-splash-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Higher than typical modals */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: splashFadeIn 0.5s ease-out;
    /* Ensure splash doesn't interfere with page scrolling or layout */
    overflow: hidden;
}

/* Fade-in animation for smooth appearance */
@keyframes splashFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.splash-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 2rem;
}

/* Logo Animation */
.logo-container {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-icon {
    font-size: 3rem;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
}

.logo-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 140px;
    height: 140px;
    animation: ringExpand 3s ease-out infinite;
}

.ring-2 {
    width: 160px;
    height: 160px;
    animation: ringExpand 3s ease-out infinite 1s;
}

.ring-3 {
    width: 180px;
    height: 180px;
    animation: ringExpand 3s ease-out infinite 2s;
}

/* Title Animations */
.title-container {
    margin-bottom: 2rem;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 0 0.5rem 0;
    letter-spacing: 2px;
    animation: slideInFromTop 1s ease-out;
}

.app-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

/* Loading Animations */
.loading-container {
    margin-bottom: 2rem;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.dot-2 {
    animation-delay: 0.16s;
}

.dot-3 {
    animation-delay: 0.32s;
}

.loading-text {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    animation: textFade 2s ease-in-out infinite;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progressGlow 2s ease-in-out infinite;
}

/* Feature Icons */
.features-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-icon i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.feature-icon span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Keyframe Animations */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes ringExpand {
    0% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotBounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    } 
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes textFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(79, 172, 254, 0.5); }
    50% { box-shadow: 0 0 15px rgba(79, 172, 254, 0.8); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animate-bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-title {
        font-size: 2rem;
    }
    
    .logo-circle {
        width: 100px;
        height: 100px;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .features-container {
        gap: 1rem;
    }
    
    .feature-icon {
        min-width: 60px;
    }
}
