/* Splash Screen Styles for 20H Investment Website */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    background: radial-gradient(circle, rgba(255,255,255,0.98), rgba(255,255,255,0.95)), url('../img/header.jpg');
    background-size: cover;
    background-position: center;
}

.splash-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.splash-logo {
    width: 250px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    opacity: 0;
    transform: scale(0.9);
    animation: logoReveal 0.8s cubic-bezier(0.26, 0.86, 0.44, 0.985) forwards 0.3s;
    object-fit: contain;
}

.splash-welcome {
    font-family: 'Cairo', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease forwards 0.7s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.splash-welcome span {
    color: var(--secondary-color);
}

.splash-curtain-left,
.splash-curtain-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #b38728);
    z-index: 10000;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
}

.splash-curtain-left {
    left: 0;
    transform-origin: left;
    background: linear-gradient(135deg, var(--secondary-color), #b38728);
}

.splash-curtain-right {
    right: 0;
    transform-origin: right;
    background: linear-gradient(225deg, var(--secondary-color), #b38728);
}

.splash-curtain-left.open {
    transform: scaleX(0);
}

.splash-curtain-right.open {
    transform: scaleX(0);
}

.splash-loading {
    width: 40px;
    height: 40px;
    margin-top: 25px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    opacity: 0;
    animation: spin 0.8s linear infinite, fadeIn 0.3s ease forwards 0.9s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes curtainOpen {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .splash-logo {
        width: 200px;
    }

    .splash-welcome {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .splash-logo {
        width: 180px;
    }

    .splash-welcome {
        font-size: 20px;
    }
}

/* Gold pattern overlay for curtains */
.splash-curtain-left:after,
.splash-curtain-right:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="rgba(255,255,255,0.07)" d="M10 0L0 10h10V0zm10 10L10 20h10V10z"/></svg>');
    background-size: 20px 20px;
    opacity: 0.3;
}
