/**
 * ==============================================================================
 * eBSSL - UI / UX Experience Design Service Stylesheet
 * Static Non-Animated Orbit, Interactive Design Canvas Mockup & Visual Effects
 * ==============================================================================
 */

:root {
    --orbit-radius: 260px;
}

@media (max-width: 1280px) {
    :root {
        --orbit-radius: 235px;
    }
}

@media (max-width: 1024px) {
    :root {
        --orbit-radius: 210px;
    }
}

@media (max-width: 640px) {
    :root {
        --orbit-radius: 165px;
    }
}

/* -------------------------------------------------------------------------- */
/* Orbital Stage & Static Circular Tracks (NO ROTATION ANIMATION)              */
/* -------------------------------------------------------------------------- */
.ebssl-orbit-stage {
    position: relative;
    width: 100%;
    max-width: 620px;
    height: 620px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .ebssl-orbit-stage {
        height: 420px;
        max-width: 420px;
    }
}

.ebssl-orbit-track {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    pointer-events: none;
}

.ebssl-orbit-track-outer {
    width: calc(var(--orbit-radius) * 2);
    height: calc(var(--orbit-radius) * 2);
    border: 1.5px dashed rgba(245, 158, 11, 0.35); /* Amber/gold accent for UI/UX */
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.08), inset 0 0 25px rgba(0, 132, 255, 0.05);
}

.ebssl-orbit-track-inner {
    width: calc(var(--orbit-radius) * 1.45);
    height: calc(var(--orbit-radius) * 1.45);
    border: 1px solid rgba(0, 132, 255, 0.2);
}

/* -------------------------------------------------------------------------- */
/* Static Angular Positioning for 8 Design Technology Badges                  */
/* Pure static geometry without CSS rotation animation                         */
/* -------------------------------------------------------------------------- */
.ebssl-orbit-item-static {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    margin-left: -26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    z-index: 30;
}

@media (max-width: 640px) {
    .ebssl-orbit-item-static {
        width: 42px;
        height: 42px;
        margin-top: -21px;
        margin-left: -21px;
    }
}

/* 8 Fixed Angles (0deg, 45deg, 90deg, 135deg, 180deg, 225deg, 270deg, 315deg) */
.ebssl-badge-0   { transform: rotate(0deg)   translateY(calc(-1 * var(--orbit-radius))) rotate(0deg); }
.ebssl-badge-45  { transform: rotate(45deg)  translateY(calc(-1 * var(--orbit-radius))) rotate(-45deg); }
.ebssl-badge-90  { transform: rotate(90deg)  translateY(calc(-1 * var(--orbit-radius))) rotate(-90deg); }
.ebssl-badge-135 { transform: rotate(135deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-135deg); }
.ebssl-badge-180 { transform: rotate(180deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-180deg); }
.ebssl-badge-225 { transform: rotate(225deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-225deg); }
.ebssl-badge-270 { transform: rotate(270deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-270deg); }
.ebssl-badge-315 { transform: rotate(315deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-315deg); }

/* Static Hover Scaling */
.ebssl-badge-0:hover   { transform: rotate(0deg)   translateY(calc(-1 * var(--orbit-radius))) rotate(0deg) scale(1.22); z-index: 45; }
.ebssl-badge-45:hover  { transform: rotate(45deg)  translateY(calc(-1 * var(--orbit-radius))) rotate(-45deg) scale(1.22); z-index: 45; }
.ebssl-badge-90:hover  { transform: rotate(90deg)  translateY(calc(-1 * var(--orbit-radius))) rotate(-90deg) scale(1.22); z-index: 45; }
.ebssl-badge-135:hover { transform: rotate(135deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-135deg) scale(1.22); z-index: 45; }
.ebssl-badge-180:hover { transform: rotate(180deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-180deg) scale(1.22); z-index: 45; }
.ebssl-badge-225:hover { transform: rotate(225deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-225deg) scale(1.22); z-index: 45; }
.ebssl-badge-270:hover { transform: rotate(270deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-270deg) scale(1.22); z-index: 45; }
.ebssl-badge-315:hover { transform: rotate(315deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-315deg) scale(1.22); z-index: 45; }

/* -------------------------------------------------------------------------- */
/* Tooltip Popover on Hover                                                   */
/* -------------------------------------------------------------------------- */
.ebssl-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding: 0.35rem 0.75rem;
    border-radius: 0.65rem;
    background: #0b1a30;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 25px -4px rgba(11, 26, 48, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
}

.ebssl-badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #0b1a30 transparent transparent transparent;
}

.ebssl-orbit-item-static:hover .ebssl-badge-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* -------------------------------------------------------------------------- */
/* Central Figma / Interactive Design Canvas Mockup Chassis                   */
/* -------------------------------------------------------------------------- */
.ebssl-design-wrapper {
    position: relative;
    width: 290px;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 2px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 132, 255, 0.08);
    overflow: hidden;
    z-index: 20;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

@media (max-width: 640px) {
    .ebssl-design-wrapper {
        width: 230px;
    }
}

.ebssl-design-wrapper:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 35px 65px -15px rgba(0, 132, 255, 0.25), 0 0 0 1px rgba(0, 132, 255, 0.2);
}

/* Design Studio Header Bar */
.ebssl-design-header {
    background: #0b1a30;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ebssl-window-dots {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ebssl-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
}

/* Center Interactive Artboard Canvas */
.ebssl-design-canvas {
    padding: 0.85rem;
    background: radial-gradient(circle at 50% 50%, #f8fbfe 0%, #edf5fc 100%);
    position: relative;
}

/* Selection Bounding Box with Handles */
.ebssl-selection-box {
    border: 1.5px solid #0084ff;
    position: relative;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.1);
}

.ebssl-handle {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border: 1.5px solid #0084ff;
    position: absolute;
    border-radius: 1px;
}

.ebssl-handle-tl { top: -4px; left: -4px; }
.ebssl-handle-tr { top: -4px; right: -4px; }
.ebssl-handle-bl { bottom: -4px; left: -4px; }
.ebssl-handle-br { bottom: -4px; right: -4px; }

/* Design Comment Pin Bubble */
.ebssl-comment-bubble {
    position: absolute;
    bottom: -10px;
    right: -8px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #0b1a30;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 9px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border: 1.5px solid #ffffff;
    animation: ebsslFloatSmall 4s ease-in-out infinite;
}

@keyframes ebsslFloatSmall {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Floor Shadow */
.ebssl-design-shadow {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.18) 0%, transparent 70%);
    border-radius: 9999px;
    filter: blur(4px);
    pointer-events: none;
    z-index: 10;
}

/* -------------------------------------------------------------------------- */
/* Capability Cards & Methodology Styles                                      */
/* -------------------------------------------------------------------------- */
.ebssl-card-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ebssl-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -8px rgba(0, 132, 255, 0.12), 0 0 0 1px rgba(0, 132, 255, 0.25);
}

.ebssl-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 1rem;
    font-weight: 900;
    font-size: 1.1rem;
    color: #ffffff;
    box-shadow: 0 8px 16px -4px rgba(0, 132, 255, 0.3);
}
