/* Page Transition Loading Animation */

#page-transition-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#page-transition-loading.hidden {
    opacity: 0;
}

#page-transition-loading .loading-text {
    font-size: 48px !important;
    font-weight: 900 !important;
    color: #252525 !important;
    letter-spacing: 0.1em !important;
    animation: fontChange 0.4s steps(1) infinite !important;
}

/* Font animation - cycles through different font families */
@keyframes fontChange {
    0% {
        font-family: 'Noto Sans JP', sans-serif;
    }
    10% {
        font-family: 'proxima-nova', sans-serif;
    }
    20% {
        font-family: 'ryo-gothic-plusn', sans-serif;
    }
    30% {
        font-family: 'acumin-pro', sans-serif;
    }
    40% {
        font-family: 'Arial', sans-serif;
    }
    50% {
        font-family: 'Helvetica', sans-serif;
    }
    60% {
        font-family: 'Times New Roman', serif;
    }
    70% {
        font-family: 'Georgia', serif;
    }
    80% {
        font-family: 'Courier New', monospace;
    }
    90% {
        font-family: 'Verdana', sans-serif;
    }
    100% {
        font-family: 'Noto Sans JP', sans-serif;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    #page-transition-loading .loading-text {
        font-size: 32px !important;
        animation: fontChange 0.4s steps(1) infinite !important;
    }
}
