/**
 * Drive Plus Hub – Circular Radial Layout
 */

/* ── Wrapper ── */
.l6-driveplus-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 64px 32px;
    background: #0b0f1a;
    overflow: hidden;
    border-radius: 16px;
}

/* ── SVG Layer ── */
.l6-driveplus-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.l6-connection-glow {
    fill: none;
    stroke-linecap: round;
}

.l6-connection-line {
    fill: none;
    stroke-linecap: round;
}

/* Lines hidden until visible */
.l6-dph-animate .l6-connection-glow,
.l6-dph-animate .l6-connection-line {
    opacity: 0;
}

.l6-dph-animate.l6-dph-visible .l6-connection-glow,
.l6-dph-animate.l6-dph-visible .l6-connection-line {
    animation: l6-line-draw 0.5s ease forwards;
    animation-delay: 0.55s;
}

@keyframes l6-line-draw {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ═══════════════════════════════════
   ORBIT CONTAINER – holds the circle
   ═══════════════════════════════════ */
.l6-driveplus-orbit {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Height set by JS based on radius */
}

/* ═══════════════════════════════════
   CENTER HUB
   ═══════════════════════════════════ */
.l6-driveplus-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    background: #1a1e2e;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    gap: 4px;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 5;
}

.l6-driveplus-hub img {
    max-width: 100%;
    max-height: 55%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.l6-driveplus-hub-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.l6-driveplus-hub-subtitle {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════
   SERVICE NODE
   ═══════════════════════════════════ */
.l6-driveplus-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    min-height: 120px;
    padding: 22px 16px;
    border-radius: 14px;
    border: 1px solid rgba(0, 229, 255, 0.28);
    background-color: rgba(10, 14, 26, 0.8);
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    /* Position set by JS */
}

.l6-driveplus-node:hover {
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 229, 255, 0.12);
}

.l6-driveplus-node a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 10px;
    position: relative;
    z-index: 3;
}

.l6-node-icon {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 10px;
    position: relative;
    z-index: 3;
    color: #00e5ff;
}

.l6-node-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.l6-driveplus-node a .l6-node-icon {
    margin-bottom: 0;
}

.l6-node-label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    position: relative;
    z-index: 3;
}

/* ═══════════════════════════════════
   ENTRANCE ANIMATION
   ═══════════════════════════════════ */
.l6-dph-animate .l6-driveplus-hub {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.l6-dph-animate .l6-driveplus-node {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
}

.l6-dph-animate.l6-dph-visible .l6-driveplus-hub {
    animation: l6-hub-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s forwards;
}

@keyframes l6-hub-pop {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.l6-dph-animate.l6-dph-visible .l6-driveplus-node {
    animation: l6-node-burst 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes l6-node-burst {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Stagger by data-index */
.l6-dph-animate.l6-dph-visible .l6-driveplus-node[data-index="0"] { animation-delay: 0.15s; }
.l6-dph-animate.l6-dph-visible .l6-driveplus-node[data-index="1"] { animation-delay: 0.22s; }
.l6-dph-animate.l6-dph-visible .l6-driveplus-node[data-index="2"] { animation-delay: 0.29s; }
.l6-dph-animate.l6-dph-visible .l6-driveplus-node[data-index="3"] { animation-delay: 0.36s; }
.l6-dph-animate.l6-dph-visible .l6-driveplus-node[data-index="4"] { animation-delay: 0.43s; }
.l6-dph-animate.l6-dph-visible .l6-driveplus-node[data-index="5"] { animation-delay: 0.50s; }
.l6-dph-animate.l6-dph-visible .l6-driveplus-node[data-index="6"] { animation-delay: 0.57s; }
.l6-dph-animate.l6-dph-visible .l6-driveplus-node[data-index="7"] { animation-delay: 0.64s; }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 768px) {
    .l6-driveplus-wrapper {
        padding: 44px 18px;
    }

    .l6-driveplus-node {
        width: 120px !important;
        min-height: 100px !important;
        padding: 16px 10px;
    }

    .l6-driveplus-hub {
        width: 130px !important;
        height: 130px !important;
    }

    .l6-node-icon {
        font-size: 22px;
    }

    .l6-node-icon svg {
        width: 22px;
        height: 22px;
    }

    .l6-node-label {
        font-size: 11px;
    }
}

@media (max-width: 560px) {
    .l6-driveplus-wrapper {
        padding: 28px 12px;
    }

    .l6-driveplus-hub {
        width: 110px !important;
        height: 110px !important;
    }

    .l6-driveplus-node {
        width: 100px !important;
        min-height: 85px !important;
        padding: 12px 8px;
    }

    .l6-node-icon {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .l6-node-icon svg {
        width: 18px;
        height: 18px;
    }

    .l6-node-label {
        font-size: 10px;
    }

    .l6-driveplus-hub-title {
        font-size: 18px;
    }

    .l6-driveplus-lines {
        display: none;
    }
}
