.horiz-anim-section::before,
.horiz-anim-section::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px; 
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.horiz-anim-section::before {
    z-index: 1;
    top: 20%; 
    transform: scaleY(-1);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1920 138' preserveAspectRatio='none' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1920 136.515L960 1.51465L0 136.515' stroke='%238E8A86' stroke-opacity='0.3' stroke-width='3'/%3E%3C/svg%3E");
}

.horiz-anim-section::after {
    z-index: 1;
    bottom: 20%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1920 138' preserveAspectRatio='none' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1920 136.515L960 1.51465L0 136.515' stroke='%238E8A86' stroke-opacity='0.3' stroke-width='3'/%3E%3C/svg%3E");
}
.horiz-anim-section .sticky-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.horiz-anim-section .cards-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 10;
    pointer-events: none;
}

.horiz-anim-section .anim-card {
    background: #FFF;
    padding: 2.5rem;
    width: 21.875rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(100vh);
}
.horiz-anim-section .card-icon {
    align-self: center;
}
.horiz-anim-section .card-icon img {
    width: 2.1875rem;
    margin-bottom: 1.25rem;
}
.horiz-anim-section {
    position: relative;
    overflow: hidden;
}

.horiz-anim-section .sticky-viewport {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.horiz-anim-section .text-reveal-container {
    width: 100%;
    text-align: center;
    position: relative;
}

.horiz-anim-section .base-text, .mask-text {
    white-space: nowrap;
    margin: 0;
}

.horiz-anim-section .base-text {
    color: rgba(41, 41, 41, 0.4);
}

.horiz-anim-section .mask-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--text-color);
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}

.horiz-anim-section .horiz-cards-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-left: 100vw;
    pointer-events: none; 
    will-change: transform;
    z-index: 10;
}

.horiz-anim-section .horiz-anim-card {
    background: rgba(247, 245, 243, 0.4);
	-webkit-backdrop-filter: blur(90px);
    backdrop-filter: blur(90px);
    padding: 7.5rem 2rem;
    width: 27.1875rem;
    flex-shrink: 0;
    text-align: center;
    align-items: center;
    opacity: 0;
    transform: translateX(100px);
    will-change: opacity, transform;
    
    z-index: 10;
}
.horiz-anim-section .card-inner{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.horiz-anim-section .card-text{
    font-family: "Manrope";
    color:rgba(0,0,0,0.3);
}
@media screen and (max-width: 959px) {
    .horiz-anim-section .base-text, .mask-text {
        white-space: wrap;
        font-size: 1.5rem;
    }
    .horiz-anim-section .horiz-anim-card {
        padding: 3.875rem 1rem;
        width: 15.9375rem;
    }
    .horiz-anim-section .card-text{
        font-size: 1.125rem;
    }
    .horiz-anim-section .card-icon img {
        width: 1.5625rem;
        margin-bottom: 0.9375rem;
    }
    .horiz-anim-section::before {
        top: 10%; 
    }

    .horiz-anim-section::after {
        bottom: 10%;
    }
}
