/* megh-preloader.css */

#megh-preloader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--megh-preloader-bg, #ffffff);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#megh-preloader-wrapper.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.megh-preloader-content {
    width: 200px;
    max-width: 80vw;
}

.megh-preloader-content svg {
    width: 100%;
    height: auto;
    display: block;
}

.megh-preloader-content svg path {
    stroke: var(--megh-preloader-stroke, #000083) !important;
    stroke-dasharray: 100 !important;
    stroke-dashoffset: 100 !important;
    animation: megh-draw-trace 2.5s ease-in-out infinite !important;
}

/* Slight delay for the second path */
.megh-preloader-content svg path:nth-of-type(2) {
    animation-delay: 0.3s !important;
}

@keyframes megh-draw-trace {
    0% {
        stroke-dashoffset: 100;
        fill: transparent !important;
    }
    40% {
        stroke-dashoffset: 0;
        fill: transparent !important;
    }
    70% {
        stroke-dashoffset: 0;
        fill: var(--megh-preloader-fill, #000083) !important;
    }
    100% {
        stroke-dashoffset: 0;
        fill: var(--megh-preloader-fill, #000083) !important;
    }
}
