.device-showcase {
    padding: clamp(48px, 8vw, 120px) 24px;
    display: flex;
    justify-content: center;
    /* background: rgba(0,0,0,0.9); */
}

/* STAGE */
.device-stage {
    width: min(1100px, 100%);
    height: min(560px, 65vh);
    position: relative;

    perspective: 1200px;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Ground shadow (makes the whole thing float) */
.device-stage::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -30px;
    /* closer to object */
    transform: translateX(-50%);

    width: 2%;
    /* much narrower */
    height: 7px;
    /* shorter */

    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.28) 0%,
            rgba(0, 0, 0, 0.18) 30%,
            rgba(0, 0, 0, 0.08) 55%,
            transparent 95%);

    filter: blur(1px);
    /* tighter blur */
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}



/* DEVICES */
.device {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform;
    z-index: 1;
}

.device {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform;
}

/* ========== Ambient large soft glow ========== */
.shadow-ambient {
    position: absolute;
    left: 50%;
    bottom: -40px;
    width: 65%;
    height: 60px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.12) 40%,
            rgba(0, 0, 0, 0.05) 70%,
            transparent 100%);
    filter: blur(28px);
    pointer-events: none;
    z-index: -2;
}

/* ========== Tight contact shadow ========== */
.shadow-contact {
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 38%;
    height: 18px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.25) 40%,
            transparent 80%);
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}


.device video {
    display: block;
    width: 100%;
    height: auto;

    user-select: none;
    -webkit-user-drag: none;

    border-radius: 8px;
    border: 4px solid var(--secondary-color);

    /* modern layered depth */
    box-shadow:
        0 50px 110px rgba(0, 0, 0, 0.08),
        0 18px 45px rgba(0, 0, 0, 0.06),
        0 6px 18px rgba(0, 0, 0, 0.08);
}

.device img {
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Desktop */
.device-desktop {
    right: 0;
    top: 50%;
    width: min(820px, 78%);
    z-index: 1;
}

/* Mobile */
.device-mobile {
    left: 0;
    bottom: -6%;
    width: min(240px, 26%);
    z-index: 2;

}

.device-mobile img {
    border-radius: 18px;
    border: 5px solid var(--secondary-color);
    /* slightly punchier so it reads as closer */
    box-shadow:
        0 60px 130px rgba(0, 0, 0, 0.10),
        0 20px 55px rgba(0, 0, 0, 0.07),
        0 8px 22px rgba(0, 0, 0, 0.05);
}

/* Optional: inner blurred "halo" shadow behind each device
   (only use if you keep <span class="device-shadow"></span>) */
.device-shadow {
    position: absolute;
    inset: 12% 10% 8% 10%;
    transform: translateZ(-60px);
    filter: blur(30px);
    opacity: 0.22;
    border-radius: 28px;
    background: rgba(0, 0, 0, 1);
    pointer-events: none;
    z-index: -1;
}
@media screen and (max-width: 800px) {

    /* Mobile */
    .device-mobile {
        left: 5%;
        bottom: 25%;
        width: min(240px, 26%);
        z-index: 2;
    }

}
