/**
 * WS Booster - Stack 3D Depth (Frames Academie pattern)
 */

.ws-s3d {
    position: relative;
    perspective: var(--ws-s3d-persp, 1200px);
    min-height: 150vh;
    padding: 40px 0;
}

.ws-s3d__card {
    position: sticky;
    top: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 56px;
    background: #0f172a;
    color: #fff;
    border-radius: 24px;
    height: 460px;
    margin-bottom: 20px;
    transform-style: preserve-3d;
    transform-origin: top center;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ws-s3d__text {
    min-width: 0;
}

.ws-s3d__title {
    margin: 0 0 20px;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.ws-s3d__desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.85;
}

.ws-s3d__image {
    overflow: hidden;
    border-radius: 16px;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-s3d__image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .ws-s3d__card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        height: auto;
        min-height: 400px;
    }
    .ws-s3d__image {
        max-height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-s3d__card {
        transform: none !important;
        transition: none;
    }
}
