/* ========= InnoVenTech Circular Loader ========= */

.ix-loader {
    --loader-size: 4rem; /* Scale the whole thing: 3rem, 5rem, etc. */
    --loader-teal: #028C9E;
    --loader-ink: #37474F;
    --loader-muted: #6b7b83;
    --loader-bg: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

/* Circular container (square + fully rounded) */
.ix-loader-orbit {
    position: relative;
    width: var(--loader-size);
    height: var(--loader-size); /* square */
    border-radius: 9999px; /* circle */
    background: transparent; /* var(--loader-bg) */
    /* box-shadow: 0 0 0 1px rgba(55,71,79,0.08), 0 10px 26px rgba(0,0,0,.14); /* circle */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* let the dots sit outside */
}

/* Tree logo in the middle */
.ix-loader-logo {
    max-width: 80%; /* fits 100x108 nicely inside the circle */
    height: auto;
    display: block;
    border-radius: 9999px;
    transform: translateY(-4%); /* tweak this value */
}

/* Orbiting dots container – same size as the circle */


.ix-loader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    /* shift ring slightly UP so it matches the tree’s visual center */
    transform: translate(-56%, -59%);
    border-radius: 50%;
    transform-origin: center center;
}





    /* Each dot sits at the center, then gets rotated and pushed outward */
    .ix-loader-ring span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 12%;
        height: 12%;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(2,140,158,0.45) 0%, rgba(2,140,158,0.25) 60%, rgba(2,140,158,0.10) 100% );
        opacity: 0.5;
        transform-origin: 50% 50%;
    }

        /* Place the dots evenly around the circle */
        /* Place 8 dots on a ring (keep your -500% or tweak radius) */
        .ix-loader-ring span:nth-child(1) {
            transform: rotate(0deg) translate(0, -500%);
        }

        .ix-loader-ring span:nth-child(2) {
            transform: rotate(45deg) translate(0, -500%);
        }

        .ix-loader-ring span:nth-child(3) {
            transform: rotate(90deg) translate(0, -500%);
        }

        .ix-loader-ring span:nth-child(4) {
            transform: rotate(135deg) translate(0, -500%);
        }

        .ix-loader-ring span:nth-child(5) {
            transform: rotate(180deg) translate(0, -500%);
        }

        .ix-loader-ring span:nth-child(6) {
            transform: rotate(225deg) translate(0, -500%);
        }

        .ix-loader-ring span:nth-child(7) {
            transform: rotate(270deg) translate(0, -500%);
        }

        .ix-loader-ring span:nth-child(8) {
            transform: rotate(315deg) translate(0, -500%);
        }
        /* Highlight layer on top of each dot */
        .ix-loader-ring span::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: var(--loader-teal);
            opacity: 0;
            transform: scale(0.6);
            animation: ix-dotPulse 1.6s infinite ease-in-out;
        }
        /* staggered delays = brightness travels clockwise */
        .ix-loader-ring span:nth-child(1)::before {
            animation-delay: 0s;
        }

        .ix-loader-ring span:nth-child(2)::before {
            animation-delay: 0.2s;
        }

        .ix-loader-ring span:nth-child(3)::before {
            animation-delay: 0.4s;
        }

        .ix-loader-ring span:nth-child(4)::before {
            animation-delay: 0.6s;
        }

        .ix-loader-ring span:nth-child(5)::before {
            animation-delay: 0.8s;
        }

        .ix-loader-ring span:nth-child(6)::before {
            animation-delay: 1.0s;
        }

        .ix-loader-ring span:nth-child(7)::before {
            animation-delay: 1.2s;
        }

        .ix-loader-ring span:nth-child(8)::before {
            animation-delay: 1.4s;
        }


/* Animations */
@keyframes ix-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



@keyframes ix-dotPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.6);
    }

    20%, 40% {
        opacity: 1;
        transform: scale(1.1); /* slightly larger when “lit” */
    }
}

/* Accessibility: disable motion if requested by user */
@media (prefers-reduced-motion: reduce) {
    .ix-loader-ring {
        animation: none;
    }

        .ix-loader-ring span::before {
            animation: none;
            opacity: 0.5;
        }
}
