/* Scrolling Reviews - Full Width Infinite Carousel */
.scrolling-reviews-container {
    width: 100%;
    background: transparent;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
    overflow: hidden;
    position: relative;
    /* Insert between Hero and Benchmarks */
    margin-bottom: 2rem;
}

.scrolling-wrapper {
    display: flex;
    gap: 2rem;
    width: fit-content;
    animation: scrollLeft 60s linear infinite;
}

.scrolling-wrapper:hover {
    animation-play-state: paused;
}

.scroll-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: var(--radius);
    min-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(5px);
    transition: border-color 0.3s, background 0.3s;
}

.scroll-card:hover {
    border-color: var(--primary);
    background: rgba(15, 15, 15, 0.9);
}

.scroll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scroll-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.scroll-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
}

.scroll-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.scroll-badge {
    font-size: 0.65rem;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    opacity: 0.8;
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
}

.scroll-stars {
    color: var(--primary);
    font-size: 0.8rem;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assuming content is duplicated for seamless loop, -50% is half the width */
}

/* Improve Hero Collage Styling: Vertical Infinite Scroll */
.collage-wrapper {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    display: flex;
    justify-content: center;
}

.collage-track {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: scrollUp 25s linear infinite;
    width: 100%;
    max-width: 550px;
}

.collage-track:hover {
    animation-play-state: paused;
}

.collage-item {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.collage-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.collage-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
    z-index: 10;
}

.collage-item:hover img {
    opacity: 1;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Responsive adjustment for new collage */
@media (max-width: 968px) {
    .collage-wrapper {
        height: 400px;
    }
}