/* Orb Navigation - Shared across all pages. Completely self-contained. */
.orb-nav {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Orb Items (bubble buttons above core) ── */
.orb-item {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(16px) scale(0.75);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    position: relative;
}

.orb-item svg {
    width: 20px;
    height: 20px;
}

/* Expand + stagger */
.orb-nav:hover .orb-item,
.orb-nav.open .orb-item {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.orb-nav:hover .orb-item:nth-child(1),
.orb-nav.open .orb-item:nth-child(1) {
    transition-delay: 0.10s;
}
.orb-nav:hover .orb-item:nth-child(2),
.orb-nav.open .orb-item:nth-child(2) {
    transition-delay: 0.05s;
}
.orb-nav:hover .orb-item:nth-child(3),
.orb-nav.open .orb-item:nth-child(3) {
    transition-delay: 0s;
}

.orb-item:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Active page highlight */
.orb-item.active {
    background: rgba(0, 214, 255, 0.2);
    border-color: rgba(0, 214, 255, 0.5);
    color: #a6f0ff;
    box-shadow: 0 0 16px rgba(0, 214, 255, 0.15);
}

/* Label to the left of each bubble */
.orb-item .orb-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.02em;
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 10px;
    border-radius: 8px;
    transition: opacity 0.25s ease 0.1s;
}

.orb-nav:hover .orb-label,
.orb-nav.open .orb-label {
    opacity: 1;
}

/* ── Core Orb Button ── */
.orb-core {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    user-select: none;
}

.orb-core svg {
    width: 22px;
    height: 22px;
    opacity: 0.85;
}

.orb-core:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.06);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .orb-item, .orb-core {
        transition: none !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .orb-nav {
        bottom: 20px;
        right: 20px;
    }
    .orb-core {
        width: 48px;
        height: 48px;
    }
    .orb-core svg {
        width: 20px;
        height: 20px;
    }
    .orb-item {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    .orb-item svg {
        width: 18px;
        height: 18px;
    }
    .orb-item .orb-label {
        font-size: 0.72rem;
        right: calc(100% + 10px);
    }
}
