/* ============================================
   PRELOADER - ANIMALMADE STYLE
   ============================================ */

html {
    background: #000B38;
    /* Match Deep Midnight Blue */
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000B38;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.logo-animation {
    text-align: center;
    position: relative;
}

/* SVG Logo Container */
.svg-logo-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: logoFadeIn 0.8s ease forwards;
}

.animated-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.2));
    /* Cyan Glow */
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-bar-container {
    width: 300px;
    height: 2px;
    /* Thinner for minimalism */
    background: rgba(0, 255, 255, 0.1);
    border-radius: 0;
    margin: 40px auto 0;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    height: 100%;
    background: #00FFFF;
    /* Electric Cyan */
    border-radius: 0;
    width: 0%;
    animation: loadingProgress 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.loading-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    margin-top: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Quicksand', sans-serif;
    /* Ensure font availability or fallback */
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Pace.js Progress Bar - Optional override if used */
.pace {
    pointer-events: none;
    user-select: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
}

.pace .pace-progress {
    background: #00FFFF;
    height: 2px;
}