/* ============================================
   AiEarnSecurePlus Flash Screen Styles
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background: #13162C !important;
    background-color: #13162C !important;
    position: relative !important;
    min-height: 100vh !important;
    color: #E0E0E0 !important;
}

#splash-screen {
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
    background: #13162C !important;
}

/* ============================================
   Animated Background Particles
   ============================================ */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(100, 181, 246, 0.15);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ============================================
   Main Container
   ============================================ */
.container {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeIn 1s ease-in;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

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

/* ============================================
   Logo/Bot Icon
   ============================================ */
.logo-container {
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo {
    width: 120px;
    height: 120px;
    background: #1A1E37;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(100, 181, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(100, 181, 246, 0.2);
}

.logo-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

/* ============================================
   Bot Name
   ============================================ */
.bot-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8),
                 0 0 20px rgba(100, 181, 246, 0.3);
    letter-spacing: 2px;
    animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Tagline
   ============================================ */
.tagline {
    font-size: 1.2rem;
    color: #E0E0E0 !important;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
    animation: slideInUp 1s ease-out 0.3s both;
}

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

/* ============================================
   Loading Animation
   ============================================ */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    animation: fadeIn 1s ease-out 0.6s both;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: #64B5F6;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
                0 0 15px rgba(100, 181, 246, 0.6);
}

.loading-dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 30px auto;
    overflow: hidden;
    animation: fadeIn 1s ease-out 0.8s both;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #64B5F6, #3F8EEB, #64B5F6);
    border-radius: 10px;
    animation: progress 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.8),
                0 0 30px rgba(100, 181, 246, 0.4);
}

@keyframes progress {
    0% {
        width: 0%;
        transform: translateX(0);
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
        transform: translateX(0);
    }
}

/* ============================================
   Status Text
   ============================================ */
.status-text {
    color: #E0E0E0 !important;
    font-size: 0.9rem;
    margin-top: 20px;
    font-weight: 300;
    animation: fadeIn 1s ease-out 1s both;
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* ============================================
   Glow Effect
   ============================================ */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8),
                     0 0 20px rgba(100, 181, 246, 0.4),
                     0 0 30px rgba(100, 181, 246, 0.3);
    }
    to {
        text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8),
                     0 0 30px rgba(100, 181, 246, 0.6),
                     0 0 50px rgba(100, 181, 246, 0.5),
                     0 0 70px rgba(100, 181, 246, 0.3);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .bot-name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .progress-container {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .bot-name {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .progress-container {
        width: 200px;
    }
}
