/* =========================
   SLIDING TEXT – GLOSSY
========================= */

/* SECTION */
.sliding-text-section {
    padding: 70px 0;
    overflow: hidden;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.65),
            rgba(255, 255, 255, 0.35));
}

/* ROW */
.sliding-row {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin: 14px 0;
    padding: 14px 0;
    position: relative;
    border-radius: 14px;
    background: linear-gradient(135deg,
            var(--light-green-color),
            var(--inchworm-color));
}

/* GLASS OVERLAY */
.sliding-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 0;
}

/* SHINE OVERLAY */
.sliding-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent 30%,
            rgba(255, 255, 255, 0.25) 50%,
            transparent 70%);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* TRACK */
.sliding-track {
    display: flex;
    width: max-content;
    position: relative;
    z-index: 1;
}

/* TEXT – VISIBLE, BRAND COLORS */
.sliding-track span {
    display: inline-block;
    font-size: clamp(20px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: 1px;
    padding-right: 70px;
    line-height: 1.45;

    background: linear-gradient(135deg,
            #2e7d32,
            #1b5e20);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ANIMATIONS */
.left-to-right .sliding-track {
    animation: marqueeLTR 120s linear infinite;
    /* adjust duration for smoothness */
}

.right-to-left .sliding-track {
    animation: marqueeRTL 120s linear infinite;
}

/* KEYFRAMES – continuous loop */
@keyframes marqueeLTR {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeRTL {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sliding-text-section {
        padding: 45px 0;
    }

    .sliding-track span {
        font-size: clamp(18px, 5vw, 26px);
        padding-right: 45px;
    }

    .left-to-right .sliding-track,
    .right-to-left .sliding-track {
        animation-duration: 150s;
        /* slower on small screens */
    }
}
