/* =========================================================
   Interactive 3D Robot - Core Module Style
   ========================================================= */
.interactive-3d-card {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    isolation: isolate;
    background: #000000;
    border-radius: 12px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* =========================================================
   SPOTLIGHT
   ========================================================= */
.interactive-3d-card .interactive-3d-spotlight {
    position: absolute;
    width: 220px;
    height: 220px;
    left: 0;
    top: 0;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, var(--di-spotlight-color, rgba(255, 255, 255, 0.8)) 0%, transparent 70%);
    filter: blur(20px);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 5;
}

/* =========================================================
   LEFT CONTENT
   Text sits above the 3D canvas. The wrapper ignores the mouse
   so the robot still reacts where they overlap; the text itself
   stays selectable.
   ========================================================= */
.interactive-3d-card .interactive-3d-content {
    position: relative;
    z-index: 10;
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    pointer-events: none;
}

.interactive-3d-card .interactive-3d-content>* {
    pointer-events: auto;
}

.interactive-3d-card .interactive-3d-content h1 {
    margin: 0;
    line-height: 1.05;
    background: linear-gradient(to bottom, #fafafa, #999);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: 58px;
    font-weight: 700;
}

.interactive-3d-card .interactive-3d-content .interactive-3d-desc {
    max-width: 520px;
    margin: 22px 0 0;
    font-size: 18px;
    color: #cfcfcf;
}

.interactive-3d-card .interactive-3d-content .interactive-3d-desc p {
    margin: 0 0 10px;
}

.interactive-3d-card .interactive-3d-content .interactive-3d-desc p:last-child {
    margin: 0;
}

/* =========================================================
   SPLINE VIEWER
   Absolutely positioned on the right and wider than 50%, so the
   robot's arms are no longer cut by the canvas edge.
   Tune with the module settings (CSS variables):
     --di-viewer-width     (default 62%)
     --di-viewer-offset-y  (default 0px, negative moves robot up)
   ========================================================= */
.interactive-3d-card .interactive-3d-viewer {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--di-viewer-width, 62%);
    height: 100%;
    min-height: 450px;
    overflow: hidden;
    z-index: 2;
    transform: translateY(var(--di-viewer-offset-y, 0px));
}

.interactive-3d-card .interactive-3d-viewer spline-viewer {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    pointer-events: auto;
}

.interactive-3d-card .interactive-3d-viewer spline-viewer canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* Hide Spline logo */
.interactive-3d-card .interactive-3d-viewer #container #logo,
#logo {
    opacity: 0 !important;
    display: none !important;
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */
@media (max-width: 980px) {
    .interactive-3d-card {
        height: auto;
        flex-direction: column;
    }

    .interactive-3d-card .interactive-3d-content {
        width: 100%;
        text-align: center;
        padding: 35px 25px 10px;
        justify-content: center;
        align-items: center;
        pointer-events: auto;
    }

    .interactive-3d-card .interactive-3d-content h1 {
        font-size: 40px;
    }

    .interactive-3d-card .interactive-3d-content .interactive-3d-desc {
        margin-top: 16px;
        max-width: 100%;
        font-size: 18px;
    }

    .interactive-3d-card .interactive-3d-viewer {
        position: relative;
        width: 100%;
        height: 420px;
        transform: none;
    }
}