/* Loading GIF Styles */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for iOS Safari */
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: #0c0c0c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    /* iOS Safari safe area handling */
    padding-bottom: env(safe-area-inset-bottom);
    padding-bottom: constant(safe-area-inset-bottom); /* iOS 11.0-11.2 */
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-gif {
    max-width: 220px;
    max-height: 220px;
    width: 60%;
    height: auto;
    border-radius: 12px;
}

.loader-text {
    margin-top: 1.5rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.5; 
    }
}

