.first-view {
    font-family: 'Gabarito', sans-serif;
    font-size: 2vw;
    font-weight: 600;
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    overflow-x: hidden;
}

.first-view-text {
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 60%;
    text-align: center;
    min-height: 80vh;
    background: linear-gradient(to right, transparent, rgba(75, 85, 99,0.6), transparent);
}

.main-button {
    margin: 2rem;
}

.slider-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.slider {
    width: 100%;
    height: 20vh;
    overflow: hidden;
    padding: 0 10px;
    mask-image: linear-gradient(to right, transparent, #000, transparent);
    position: relative;
}

.slider .list {
    height: 100%;
    width: 100%;
    position: relative;
}

.slider .list .item {
    position: absolute;
    height: 20vh;
    width: 20vh;
    left: 100%;
    animation: autorun 10s linear infinite;
    animation-delay: calc((10s / 8) * (var(--position) - 1));
}

.slider[reverse="true"] .list .item {
    animation: revrun 10s linear infinite;
    animation-delay: calc((10s / 8) * (var(--position) - 1));
}

.slider .list .item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(0.7);  /* Makes images 30% darker */
}

@keyframes autorun {
    from {
        left: 100%;
    }
    to {
        left: -20vh;
    }
}

@keyframes revrun {
    from {
        left: -20vh;
    }
    to {
        left: 100%;
    }
}

/* ------------------ SECOND VIEW ------------------ */
.second-view .containers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    padding: 0 1rem;
}

.second-view .features {
    position: relative;
    border-radius: 15px;
    width: 100%;
}

.second-view .container {
    background-color: #1f1f1f;
    color: white;
    width: 280px;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.second-view .container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.second-view .container .container-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    text-align: center;
    font-family: 'Gabarito', sans-serif;
}

.second-view .container .container-text {
    font-size: 0.95rem;
    text-align: center;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.4;
}
.second-view .feature-img {
    width: 50px;
    height: 50px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.second-view .title {
    padding: 2rem;
    font-size: 2rem;
    text-align: center;
    font-family: 'Gabarito', cursive;
    color: #fff;
}

.how-it-works {
    padding: 4rem 1rem;
    background-color: #121212;
    color: white;
    font-family: 'Gabarito', sans-serif;
    text-align: center;
}

.how-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.steps-container {
    
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.step {
    background-color: #1f1f1f;
    border-radius: 15px;
    padding: 1.5rem;
    width: 220px;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.step-number {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(247, 95, 65);
    margin-bottom: 1rem;
}

.step-text {
    font-size: 1rem;
    line-height: 1.4;
}

/* ------------------ RESPONSIVE ------------------ */
@media screen and (max-width: 768px) {
    .first-view {
        font-size: 4vw;
        position: relative;
    }

    .first-view-text {
        width: 90%;
        min-height: 60vh;
        z-index: 2;
    }

    .slider-container {
        position: absolute; /* KEEP IT ABSOLUTE */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        gap: 1rem;
    }

    .slider {
        height: 12vh;
    }

    .slider .list .item {
        height: 12vh;
        width: 12vh;
    }

    @keyframes autorun {
        from {
            left: 100%;
        }
        to {
            left: -12vh;
        }
    }

    @keyframes revrun {
        from {
            left: -12vh;
        }
        to {
            left: 100%;
        }
    }

    .second-view .container {
    width: 80%;
    max-width: 320px;
}

.second-view .container-title {
    font-size: 1rem;
}

.second-view .container-text {
    font-size: 0.85rem;
}

.feature-img,
.second-view .features .feature-img {
    width: 12vw;
    padding: 5px;
}

.second-view .title {
    font-size: 1.3rem;
    padding: 1rem;
}
}