/* =========================================================
   EDUFYONE 2026 — PREMIUM 3-RING MODULE ORBIT
   =========================================================
   Ring 1  = Clockwise      22s
   Ring 2  = Anti-clockwise 30s
   Ring 3  = Clockwise      38s

   Center hub stays static.
   .ef-orbit-track does NOT animate separately.
   ========================================================= */


/* =========================================================
   01. ORBIT SECTION
   ========================================================= */

.ef-orbit-section {
    position: relative;
    overflow: hidden;

    padding: 100px 0 115px;

    background: #071a38;
    color: #ffffff;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px
        );

    background-size: 36px 36px;
}

.ef-orbit-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(37, 103, 255, 0.18),
            transparent 42%
        ),
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 176, 0, 0.08),
            transparent 28%
        );

    pointer-events: none;
}

.ef-orbit-section > .ef-container {
    position: relative;
    z-index: 1;
}


/* =========================================================
   02. HEADING
   ========================================================= */

.ef-orbit-head {
    max-width: 780px;
    margin-bottom: 40px;
}

.ef-orbit-head h2 {
    color: #ffffff;
}

.ef-orbit-head p {
    color: #aebed5;
}


/* =========================================================
   03. ORBIT STAGE
   ========================================================= */

.ef-orbit-stage {
    position: relative;

    width: min(850px, 100%);
    height: 650px;

    margin: 0 auto;

    display: grid;
    place-items: center;
}


/* =========================================================
   04. CENTER GLOW
   ========================================================= */

.ef-orbit-glow {
    position: absolute;

    width: 270px;
    height: 270px;

    border-radius: 50%;

    background: rgba(31, 103, 255, 0.12);

    filter: blur(25px);

    animation:
        ef-orbit-pulse 4s ease-in-out infinite;

    will-change: transform, opacity;
}


/* =========================================================
   05. BASE RING
   ========================================================= */

.ef-orbit-ring {
    position: absolute;

    border: 1px solid rgba(150, 183, 230, 0.25);
    border-radius: 50%;

    display: grid;
    place-items: center;

    transform-origin: center center;

    will-change: transform;
}

.ef-orbit-ring::after {
    content: "";

    position: absolute;
    inset: 11px;

    border: 1px dashed rgba(255, 176, 0, 0.12);
    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   06. TRACK
   =========================================================
   IMPORTANT:
   Track remains static.
   The parent ring controls rotation.
   ========================================================= */

.ef-orbit-track {
    position: absolute;
    inset: 0;

    border-radius: 50%;

    animation: none !important;
    transform: none !important;

    will-change: auto;
}


/* =========================================================
   07. MODULE NODE
   ========================================================= */

.ef-orbit-node {
    position: absolute;

    left: 50%;
    top: -15px;

    transform: translateX(-50%);

    display: grid;
    place-items: center;

    min-width: 96px;
    max-width: 132px;

    padding: 9px 12px;

    border: 1px solid rgba(167, 194, 235, 0.34);
    border-radius: 999px;

    background: rgba(9, 31, 65, 0.92);

    color: #eaf2ff;

    font-size: 10px;
    font-weight: 750;
    line-height: 1.15;

    text-align: center;
    white-space: nowrap;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.16);

    backdrop-filter: blur(10px);
}

.ef-orbit-node::before {
    content: "";

    width: 6px;
    height: 6px;

    margin-right: 6px;

    border-radius: 50%;

    background: #ffb000;

    box-shadow:
        0 0 0 4px rgba(255, 176, 0, 0.11);

    display: inline-block;
    vertical-align: middle;
}


/* =========================================================
   08. NODE POSITIONS
   ========================================================= */

.ef-orbit-node:nth-child(2) {
    top: auto;
    bottom: -15px;
}

.ef-orbit-node:nth-child(3) {
    left: auto;
    right: -48px;
    top: 50%;

    transform: translateY(-50%);
}

.ef-orbit-node:nth-child(4) {
    left: -48px;
    top: 50%;

    transform: translateY(-50%);
}

.ef-orbit-node:nth-child(5) {
    left: 18%;
    top: 19%;

    transform: translate(-50%, -50%);
}

.ef-orbit-node:nth-child(6) {
    left: 82%;
    top: 81%;

    transform: translate(-50%, -50%);
}

.ef-orbit-node:nth-child(7) {
    left: 82%;
    top: 19%;

    transform: translate(-50%, -50%);
}

.ef-orbit-node:nth-child(8) {
    left: 18%;
    top: 81%;

    transform: translate(-50%, -50%);
}


/* =========================================================
   09. RING 1 — CLOCKWISE
   ========================================================= */

.ring-1 {
    width: 340px;
    height: 340px;

    animation:
        ef-orbit-clockwise 22s linear infinite;
}


/* =========================================================
   10. RING 2 — ANTI-CLOCKWISE
   ========================================================= */

.ring-2 {
    width: 485px;
    height: 485px;

    animation:
        ef-orbit-anticlockwise 30s linear infinite;
}


/* =========================================================
   11. RING 3 — CLOCKWISE
   ========================================================= */

.ring-3 {
    width: 635px;
    height: 635px;

    animation:
        ef-orbit-clockwise 38s linear infinite;
}


/* =========================================================
   12. RING NODE OVERRIDES
   ========================================================= */

.ring-2 .ef-orbit-node,
.ring-3 .ef-orbit-node {
    top: -15px;
}

.ring-2 .ef-orbit-node:nth-child(2),
.ring-3 .ef-orbit-node:nth-child(2) {
    top: auto;
    bottom: -15px;
}


/* =========================================================
   13. CENTER HUB
   ========================================================= */

.ef-orbit-center {
    position: relative;
    z-index: 5;

    width: 185px;
    height: 185px;

    border-radius: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #173d7a,
            #0b2348
        );

    border: 2px solid rgba(255, 176, 0, 0.8);

    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.025),
        0 28px 70px rgba(0, 0, 0, 0.35);
}

.ef-orbit-center-badge {
    width: 44px;
    height: 44px;

    margin-bottom: 8px;

    border-radius: 13px;

    display: grid;
    place-items: center;

    background: #061a3a;

    border: 1px solid rgba(255, 176, 0, 0.65);

    color: #ffb000;

    font-weight: 900;
    font-size: 14px;
}

.ef-orbit-center strong {
    font-size: 20px;
    letter-spacing: -0.5px;
}

.ef-orbit-center small {
    margin-top: 2px;

    color: #a9bbd4;

    font-size: 10px;
}


/* =========================================================
   14. LIVE STATUS
   ========================================================= */

.ef-orbit-live {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-top: 12px;

    color: #d7e5f7;

    font-size: 9px;
}

.ef-orbit-live i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #20d278;

    box-shadow:
        0 0 0 4px rgba(32, 210, 120, 0.1);
}


/* =========================================================
   15. CAPTION
   ========================================================= */

.ef-orbit-caption {
    position: absolute;

    bottom: 2px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;

    text-align: center;
}

.ef-orbit-caption strong {
    color: #ffb000;
    font-size: 13px;
}

.ef-orbit-caption span {
    color: #9fb2ce;
    font-size: 10px;
}


/* =========================================================
   16. ROTATION
   ========================================================= */

@keyframes ef-orbit-clockwise {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes ef-orbit-anticlockwise {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}


/* =========================================================
   17. GLOW PULSE
   ========================================================= */

@keyframes ef-orbit-pulse {

    50% {
        transform: scale(1.08);
        opacity: 0.72;
    }
}


/* =========================================================
   18. MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .ef-orbit-section {
        padding: 75px 0 95px;
    }

    .ef-orbit-stage {
        width: 138%;
        height: 480px;

        margin-left: -19%;
        margin-bottom: -130px;

        transform: scale(0.72);
        transform-origin: center top;
    }

    .ef-orbit-center {
        width: 170px;
        height: 170px;
    }

    .ef-orbit-caption {
        width: 500px;
    }

    .ef-orbit-head {
        margin-bottom: 20px;
    }

    .ef-orbit-node {
        min-width: 86px;

        padding: 8px 9px;

        font-size: 9px;
    }
}


/* =========================================================
   19. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ef-orbit-ring,
    .ef-orbit-glow {
        animation: none !important;
    }

    .ef-orbit-track {
        animation: none !important;
        transform: none !important;
    }
}
