/* =====================================================
   E-OSAS OPENING / SPLASH SCREEN
   White background, logo centered, gold accent
   ===================================================== */

#eosas-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;

    /* Start visible */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

#eosas-splash.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ── Ripple rings behind logo ── */
.splash-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.25);
    animation: splash-ripple-out 2.4s ease-out infinite;
    pointer-events: none;
}

.splash-ripple:nth-child(2) { animation-delay: 0.6s; }
.splash-ripple:nth-child(3) { animation-delay: 1.2s; }

@keyframes splash-ripple-out {
    0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

/* ── Logo wrapper ── */
.splash-logo-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.22),
                0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(212, 175, 55, 0.35);

    animation: splash-logo-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes splash-logo-pop {
    0%   { transform: scale(0.5) rotate(-8deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg);    opacity: 1; }
}

.splash-logo-wrap img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* ── Brand text ── */
.splash-brand {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    text-align: center;
    animation: splash-fade-up 0.6s ease 0.6s both;
}

@keyframes splash-fade-up {
    0%   { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

.splash-brand-name {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0a0a0a;
    line-height: 1;
}

.splash-brand-name span {
    background: linear-gradient(135deg, #F0C040, #D4AF37, #A07820);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-brand-sub {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.45);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 5px;
}

/* ── Progress bar ── */
.splash-progress-wrap {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    width: 140px;
    height: 3px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 99px;
    overflow: hidden;
    animation: splash-fade-up 0.5s ease 0.8s both;
}

.splash-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #F0C040, #D4AF37);
    border-radius: 99px;
    animation: splash-progress-fill 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes splash-progress-fill {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

/* ── Tagline dot ── */
.splash-dot {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    animation: splash-fade-up 0.5s ease 1s both;
}

.splash-dot-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4AF37;
    animation: splash-dot-pulse 1.2s ease-in-out 1s infinite;
}

@keyframes splash-dot-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.6; }
}

.splash-dot-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── Bottom school name ── */
.splash-school {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
    animation: splash-fade-up 0.5s ease 1.1s both;
}

/* ======================================================
   Only show on mobile by default.
   Remove the media query below if you want it on ALL
   screen sizes (desktop too).
   ====================================================== */
@media (min-width: 769px) {
    /* Comment out this block to enable on desktop too */
    /* #eosas-splash { display: none !important; } */
}
