/* splash.css - Responsive Version */
.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #101826 0%, #182434 50%, #1b2a3d 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

/* Responsive Bubble Sizes */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    animation: float 8s infinite ease-in-out;
}

/* Mobile-first bubble sizes */
.bubble:nth-child(1) { width: 60px; height: 60px; top: 15%; left: 10%; }
.bubble:nth-child(2) { width: 40px; height: 40px; top: 70%; left: 15%; animation-delay: 1s; }
.bubble:nth-child(3) { width: 80px; height: 80px; top: 35%; right: 10%; animation-delay: 2s; }
.bubble:nth-child(4) { width: 50px; height: 50px; top: 65%; right: 15%; animation-delay: 3s; }
.bubble:nth-child(5) { width: 30px; height: 30px; top: 10%; right: 20%; animation-delay: 4s; }

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .bubble:nth-child(1) { width: 100px; height: 100px; }
    .bubble:nth-child(2) { width: 70px; height: 70px; }
    .bubble:nth-child(3) { width: 120px; height: 120px; }
    .bubble:nth-child(4) { width: 80px; height: 80px; }
    .bubble:nth-child(5) { width: 60px; height: 60px; }
    
    /* Additional bubbles for tablet/desktop */
    .bubble:nth-child(6) { width: 90px; height: 90px; top: 10%; left: 50%; animation-delay: 1.5s; }
    .bubble:nth-child(7) { width: 75px; height: 75px; top: 80%; left: 60%; animation-delay: 2.5s; }
    .bubble:nth-child(8) { width: 110px; height: 110px; top: 30%; right: 5%; animation-delay: 3.5s; }
}

/* Logo Container - Responsive */
.logo-container {
    position: relative;
    width: 100%;
    max-width: 180px;
    height: auto;
    aspect-ratio: 1/1;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Pulse Logo - Responsive */
.pulse-icon {
    width: 60%;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.9));
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: ripple 3s infinite ease-out;
}
.pulse-ring:nth-child(2) { animation-delay: 0.5s; }
.pulse-ring:nth-child(3) { animation-delay: 1s; }

/* Text - Responsive */
.app-name {
    color: white;
    font-size: clamp(28px, 8vw, 42px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    animation: fadeIn 1.5s ease-out;
}

.tagline {
    color: rgba(180, 220, 255, 0.85);
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 300;
    margin-bottom: 30px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    animation: fadeIn 1.8s ease-out;
}

/* Progress Bar - Responsive */
.progress-container {
    width: min(280px, 90%);
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, cyan, #00bfff);
    border-radius: 4px;
    animation: loading 3s ease-in-out forwards;
}

.loading-text {
    color: rgba(200, 230, 255, 0.8);
    font-size: clamp(14px, 4vw, 16px);
    margin-top: 20px;
    letter-spacing: 0.5px;
    animation: fadePulse 2s infinite;
    text-align: center;
    width: 90%;
}

/* Animations */
@keyframes pulse { 
    0% { transform: scale(1); } 
    50% { transform: scale(1.1); } 
    100% { transform: scale(1); } 
}

@keyframes ripple { 
    0% { transform: scale(0.5); opacity: 1; } 
    100% { transform: scale(1.5); opacity: 0; } 
}

@keyframes float { 
    0% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
    100% { transform: translateY(0); } 
}

@keyframes loading { 
    0% { width: 0%; } 
    30% { width: 40%; } 
    70% { width: 85%; } 
    100% { width: 100%; } 
}

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

@keyframes fadePulse { 
    0% { opacity: 0.6; } 
    50% { opacity: 1; } 
    100% { opacity: 0.6; } 
}

/* Orientation specific adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .splash-container {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .logo-container {
        margin-bottom: 10px;
        max-width: 120px;
    }
    .app-name {
        margin-bottom: 5px;
        font-size: 24px;
    }
    .tagline {
        margin-bottom: 15px;
        font-size: 14px;
    }
    .progress-container {
        margin-top: 10px;
    }
    .loading-text {
        margin-top: 10px;
    }
}
