#orbit-component *,
#orbit-component *::before,
#orbit-component *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#orbit-component {
    --oc-blue: #0055ff;
    --oc-cyan: #00c8ff;
    --oc-soft: #4d8cff;
    --oc-font: 'Be Vietnam Pro', sans-serif;

    position: relative;
    width: 100%;
    height: 350vh;
    /* Increased for longer interaction */
    background: #000;
    font-family: var(--oc-font);
    color: #fff;
    overflow: visible;
    /* Changed from hidden to allow sticky to work */
}

/* Edge gradients for smooth transition */
#orbit-component::before,
#orbit-component::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 15vh;
    z-index: 100;
    pointer-events: none;
}

#orbit-component::before {
    top: 0;
    background: linear-gradient(to bottom, #000 0%, transparent 100%);
}

#orbit-component::after {
    bottom: 0;
    background: linear-gradient(to top, #000 0%, transparent 100%);
}

#orbit-component .oc-sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Background blobs ── */
#orbit-component .oc-bg-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Blob: bỏ filter blur(90px) — gradient mềm sẵn, GPU nhẹ hơn rất nhiều */
#orbit-component .oc-blob {
    position: absolute;
    border-radius: 50%;
}

#orbit-component .oc-blob-1 {
    width: 700px;
    height: 700px;
    top: -180px;
    left: -200px;
    background: radial-gradient(circle, rgba(0, 80, 255, 0.28) 0%, rgba(0, 80, 255, 0.14) 28%, rgba(0, 80, 255, 0.04) 50%, transparent 65%);
    animation: oc-floatA 8s ease-in-out infinite alternate;
}

#orbit-component .oc-blob-2 {
    width: 500px;
    height: 500px;
    bottom: -120px;
    right: -60px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.2) 0%, rgba(0, 180, 255, 0.1) 28%, rgba(0, 180, 255, 0.03) 50%, transparent 65%);
    animation: oc-floatB 11s ease-in-out infinite alternate;
}

#orbit-component .oc-blob-3 {
    width: 400px;
    height: 400px;
    top: 20%;
    left: 30%;
    background: radial-gradient(circle, rgba(0, 80, 200, 0.13) 0%, rgba(0, 80, 200, 0.06) 28%, rgba(0, 80, 200, 0.02) 50%, transparent 65%);
    animation: oc-floatA 14s ease-in-out infinite alternate-reverse;
}

@keyframes oc-floatA {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(40px, -40px);
    }
}

@keyframes oc-floatB {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-30px, 30px);
    }
}

/* ── Orbit scene — full center ── */
#orbit-component .oc-orbit-scene {
    position: relative;
    z-index: 2;
    width: 740px;
    height: 740px;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

/* Static rings */
#orbit-component .oc-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 120, 255, 0.15);
}

#orbit-component .oc-ring-1 {
    width: 300px;
    height: 300px;
}

#orbit-component .oc-ring-2 {
    width: 560px;
    height: 560px;
}

/* Spinning arcs */
#orbit-component .oc-ring-arc {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid transparent;
}

#orbit-component .oc-ring-arc-1 {
    width: 302px;
    height: 302px;
    border-top-color: rgba(0, 200, 255, 0.65);
    border-right-color: rgba(0, 200, 255, 0.2);
    animation: oc-spin 12s linear infinite;
    box-shadow: 0 -4px 18px rgba(0, 200, 255, 0.4);
}

#orbit-component .oc-ring-arc-2 {
    width: 562px;
    height: 562px;
    border-top-color: rgba(0, 100, 255, 0.55);
    border-right-color: rgba(0, 100, 255, 0.14);
    animation: oc-spin 22s linear infinite reverse;
    box-shadow: 0 -4px 16px rgba(0, 100, 255, 0.28);
}

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

/* Hub */
#orbit-component .oc-hub {
    position: absolute;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, rgba(0, 130, 255, 0.32), rgba(0, 30, 100, 0.85));
    border: 1px solid rgba(0, 180, 255, 0.35);
    box-shadow: 0 0 60px rgba(0, 100, 255, 0.42), inset 0 0 36px rgba(0, 180, 255, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#orbit-component .oc-hub-num {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1;
}

#orbit-component .oc-hub-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--oc-cyan);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Orbit spinning containers */
#orbit-component .oc-orbit-inner {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    animation: oc-spin 18s linear infinite;
}

#orbit-component .oc-orbit-outer {
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    animation: oc-spin 30s linear infinite reverse;
}

#orbit-component .oc-orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
}

/* Counter-rotate wrappers */
#orbit-component .oc-inner-counter {
    position: absolute;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: oc-spinRev 18s linear infinite;
}

#orbit-component .oc-outer-counter {
    position: absolute;
    width: 110px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: oc-spin 30s linear infinite;
}

@keyframes oc-spinRev {
    to {
        transform: rotate(-360deg);
    }
}

/* Logo nodes */
#orbit-component .oc-logo-node {
    border-radius: 20px;
    background: rgba(4, 8, 28, 0.88);
    border: 1px solid rgba(0, 140, 255, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;

    /* Improved entrance initial state */
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(15deg);

    transition:
        opacity 0.8s cubic-bezier(.22, 1, .36, 1),
        transform 0.8s cubic-bezier(.34, 1.56, .64, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

#orbit-component .oc-logo-node.oc-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

#orbit-component .oc-logo-node:hover {
    transform: translate(-50%, -50%) scale(1.65) !important;
    border-color: rgba(0, 220, 255, 0.92) !important;
    box-shadow:
        0 0 44px rgba(0, 210, 255, 0.65),
        0 0 100px rgba(0, 100, 255, 0.32),
        0 18px 52px rgba(0, 0, 0, 0.75) !important;
    z-index: 50;
    transition:
        opacity 0.25s,
        transform 0.35s cubic-bezier(.34, 1.56, .64, 1),
        border-color 0.2s,
        box-shadow 0.2s !important;
}

#orbit-component .oc-logo-node img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.88);
    transition: filter 0.3s;
    pointer-events: none;
    display: block;
}

#orbit-component .oc-logo-node:hover img {
    filter: brightness(1.1) saturate(1.3) drop-shadow(0 0 12px rgba(0, 220, 255, 0.7));
}

#orbit-component .oc-node-inner {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    box-shadow: 0 0 26px rgba(0, 100, 255, 0.25);
}

#orbit-component .oc-node-outer {
    width: 110px;
    height: 82px;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 0 30px rgba(0, 80, 200, 0.2);
}

/* Sparkles */
#orbit-component .oc-sparkle {
    position: absolute;
    border-radius: 50%;
    background: var(--oc-cyan);
    pointer-events: none;
    animation: oc-sparkle var(--d, 4s) ease-in-out infinite;
    animation-delay: var(--dl, 0s);
}

@keyframes oc-sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.4);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.8);
    }
}

#orbit-component .oc-decor-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--oc-cyan);
    box-shadow: 0 0 16px var(--oc-cyan);
    pointer-events: none;
    animation: oc-blink 3s ease-in-out infinite;
}

@keyframes oc-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

/* Scroll Indicator */
#orbit-component .oc-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 100;
    opacity: 0;
    animation: scrollIndicatorFadeIn 1s ease-out 2s forwards;
}

#orbit-component .oc-scroll-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#orbit-component .oc-scroll-arrow {
    color: rgba(255, 255, 255, 0.6);
    animation: scrollArrowBounce 2s ease-in-out infinite;
}

@keyframes scrollIndicatorFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes scrollArrowBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* Responsive */
@media (max-width: 820px) {
    #orbit-component .oc-orbit-scene {
        width: 380px;
        height: 380px;
    }

    #orbit-component .oc-ring-1 {
        width: 170px;
        height: 170px;
    }

    #orbit-component .oc-ring-2 {
        width: 316px;
        height: 316px;
    }

    #orbit-component .oc-ring-arc-1 {
        width: 172px;
        height: 172px;
    }

    #orbit-component .oc-ring-arc-2 {
        width: 318px;
        height: 318px;
    }

    #orbit-component .oc-orbit-inner {
        width: 170px;
        height: 170px;
    }

    #orbit-component .oc-orbit-outer {
        width: 316px;
        height: 316px;
    }

    #orbit-component .oc-inner-counter {
        width: 58px;
        height: 58px;
    }

    #orbit-component .oc-outer-counter {
        width: 76px;
        height: 58px;
    }

    #orbit-component .oc-node-inner {
        width: 58px;
        height: 58px;
    }

    #orbit-component .oc-node-outer {
        width: 76px;
        height: 58px;
    }

    #orbit-component .oc-hub {
        width: 96px;
        height: 96px;
    }

    #orbit-component .oc-hub-num {
        font-size: 24px;
    }

    #orbit-component .oc-hub-lbl {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    /* Scroll-lock: keep the sticky pin on mobile too — the section stays
       pinned (height 280vh of scroll runway) until every brand logo
       has been revealed, then normal scrolling continues */
    #orbit-component {
        height: 280vh;
    }

    #orbit-component .oc-orbit-scene {
        width: 300px;
        height: 300px;
    }

    #orbit-component .oc-ring-1 {
        width: 130px;
        height: 130px;
    }

    #orbit-component .oc-ring-2 {
        width: 248px;
        height: 248px;
    }

    #orbit-component .oc-ring-arc-1 {
        width: 132px;
        height: 132px;
    }

    #orbit-component .oc-ring-arc-2 {
        width: 250px;
        height: 250px;
    }

    #orbit-component .oc-orbit-inner {
        width: 130px;
        height: 130px;
    }

    #orbit-component .oc-orbit-outer {
        width: 248px;
        height: 248px;
    }

    #orbit-component .oc-inner-counter {
        width: 48px;
        height: 48px;
    }

    #orbit-component .oc-outer-counter {
        width: 62px;
        height: 48px;
    }

    #orbit-component .oc-node-inner {
        width: 48px;
        height: 48px;
    }

    #orbit-component .oc-node-outer {
        width: 62px;
        height: 48px;
        padding: 8px;
    }

    #orbit-component .oc-hub {
        width: 78px;
        height: 78px;
    }

    #orbit-component .oc-hub-num {
        font-size: 18px;
    }
}


/* backdrop-filter (hiệu ứng kính mờ) chỉ bật trên thiết bị có chuột/GPU mạnh;
   mobile/touch dùng nền bán trong suốt thường — nhìn gần như nhau, nhẹ hơn nhiều */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
    /* Hub */
#orbit-component .oc-hub {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    /* Logo nodes */
#orbit-component .oc-logo-node {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}
