/* Page Transition Preloader */
body {
    /* Prevent scrolling before JS fires */
    overflow: hidden;
}

body.is-loaded {
    overflow: visible;
}

.gs-page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    opacity: 1;
    visibility: visible;
}

.gs-page-transition.is-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Simple Spinner */
.gs-page-transition-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3b82f6; /* Modern Blue */
    animation: gs-spin 1s ease-in-out infinite;
}

@keyframes gs-spin {
    to { transform: rotate(360deg); }
}

/* Fading Dots */
.gs-page-transition-dots {
    display: flex;
    gap: 8px;
}

.gs-page-transition-dots div {
    width: 14px;
    height: 14px;
    background-color: #3b82f6; /* Modern Blue */
    border-radius: 50%;
    animation: gs-fade-dots 1.4s infinite ease-in-out both;
}

.gs-page-transition-dots .dot1 { animation-delay: -0.32s; }
.gs-page-transition-dots .dot2 { animation-delay: -0.16s; }

@keyframes gs-fade-dots {
    0%, 80%, 100% { transform: scale(0); opacity: 0; }
    40% { transform: scale(1); opacity: 1; }
}

/* Pulse Ring */
.gs-page-transition-pulse {
    width: 40px;
    height: 40px;
    background-color: #3b82f6;
    border-radius: 50%;
    animation: gs-pulse 1.2s infinite ease-in-out;
}

@keyframes gs-pulse {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
