/**
 * Scroll Line Reveal Animation Styles
 */

.wml-slr-wrapper {
    position: relative;
    overflow: hidden;
    padding: 5.75rem 0 12rem;
    perspective: 2000px;
}

/* Glow Effects */
.wml-slr-wrapper[data-glow="true"]::after {
    content: "";
    position: absolute;
    top: 40%;
    left: 5%;
    z-index: -1;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--wml-slr-glow, #00dbff);
    filter: blur(160px);
    opacity: 0.6;
}

.wml-slr-wrapper[data-glow="true"]::before {
    content: "";
    position: absolute;
    top: 20%;
    right: 15%;
    z-index: -1;
    width: 175px;
    height: 175px;
    border-radius: 50%;
    background: var(--wml-slr-glow, #00dbff);
    filter: blur(100px);
    opacity: 0.4;
}

/* Text Lines */
.wml-slr-line {
    display: block;
    text-align: center;
    width: 100%;
    font-size: 9.75vw;
    line-height: 1.3;
    font-weight: 500;
    white-space: nowrap;
    color: white;
    transform-origin: 50% 0;
    will-change: transform;
    backface-visibility: hidden;
    mix-blend-mode: difference;
    transform-style: preserve-3d;
}

/* Image Boxes */
.wml-slr-img-box {
    position: absolute;
    overflow: hidden;
    opacity: 0.1;
    border-radius: 0.5rem;
    transition: opacity 0.5s;
    z-index: 1;
}

.wml-slr-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Image Positions */
.wml-slr-pos-top-left {
    top: 12%;
    left: 4%;
}

.wml-slr-pos-top-right {
    top: 12%;
    right: 4%;
}

.wml-slr-pos-center-left {
    top: 35%;
    left: 8%;
}

.wml-slr-pos-center-right {
    top: 35%;
    right: 8%;
}

.wml-slr-pos-bottom-left {
    top: 65%;
    left: 12%;
    z-index: 100;
}

.wml-slr-pos-bottom-right {
    top: 60%;
    right: 9.5%;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .wml-slr-wrapper {
        padding: 5.75rem 0 15rem;
    }

    .wml-slr-line {
        font-size: 13.75vw;
        line-height: 1.4;
    }

    .wml-slr-img-box {
        max-width: 40vw !important;
    }

    .wml-slr-pos-top-left {
        top: 20%;
    }

    .wml-slr-pos-center-left,
    .wml-slr-pos-center-right {
        top: 40%;
    }

    .wml-slr-pos-bottom-right {
        top: 55%;
    }

    .wml-slr-pos-bottom-left {
        top: 64%;
    }
}

@media screen and (max-width: 768px) {
    .wml-slr-wrapper[data-glow="true"]::after {
        width: 200px;
        height: 200px;
        filter: blur(110px);
    }

    .wml-slr-wrapper[data-glow="true"]::before {
        width: 100px;
        height: 100px;
        filter: blur(75px);
    }

    .wml-slr-line {
        font-size: 15vw;
        white-space: normal;
        padding: 0 1rem;
    }
}

@media screen and (max-width: 575px) {
    .wml-slr-wrapper[data-glow="true"]::after {
        top: 50%;
        width: 125px;
        height: 125px;
        filter: blur(75px);
    }

    .wml-slr-wrapper[data-glow="true"]::before {
        width: 100px;
        height: 100px;
        filter: blur(75px);
    }

    .wml-slr-line {
        font-size: 12vw;
    }
}

@media screen and (min-height: 900px) {
    .wml-slr-wrapper {
        padding: 5.75rem 0 30rem;
    }
}

/* Builder Preview - show text normally, images visible */
.bricks-is-builder .wml-slr-img-box {
    opacity: 0.5 !important;
}
