/* SECTION STICKY (CARDS) */
.sticky {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-top: 300vh; */
}



.sticky .sticky-header h1 {
    font-size: 4rem;
    font-weight: 500;
    line-height: 1;

    position: relative;
    text-align: center;
    will-change: transform, opacity;
    transform: translateY(40px);
    opacity: 0;
}

.sticky-header {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sticky .card-container {
    position: relative;
    width: 75%;
    display: flex;
    perspective: 1000px;
    transform: translateY(40px);
    will-change: width;
}

.sticky .card {
    position: relative;
    flex: 1;
    aspect-ratio: 5/7;
    transform-style: preserve-3d;
    transform-origin: top;
}

.sticky .card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.sticky .card-back h1 {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);

    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* Container icon + text */
.sticky .icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;
    border: 2px solid #fff;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sticky .icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sticky .icon p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

/* Hover efect */
.sticky .icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}


.sticky .card-back span {
    position: absolute;
    top: clamp(0.5rem, 1.5vw, 2rem);
    left: clamp(0.5rem, 1.5vw, 2rem);
    opacity: 0.7;
    font-size: clamp(4px, 1.6vw, 18px);
}


.sticky .card-back p {
    font-size: clamp(6px, 1.6vw, 22px);
    line-height: clamp(1.5rem, 2rem - 1vw, 2.2rem);
    padding: 0 0.05vw 0 0;
}

.sticky #card-1 {
    border-radius: 20px 0 0 20px;
}

.sticky #card-3 {
    border-radius: 0 20px 20px 0;
}

.sticky .card-front,
.sticky .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: inherit;
    overflow: hidden;
}

.sticky .card-back {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: rotateY(180deg);
    /* padding: 2rem; */
    padding: clamp(0.5rem, 1.7vw, 2rem);
}

.sticky .card-back .icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 1.5rem;
    padding-right: 15px;
}

.sticky .card-back .icons img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sticky #card-1 .card-back {
    background-color: var(--card-1);

}

.sticky #card-2 .card-back {
    background-color: var(--card-2);
}

.sticky #card-3 .card-back {
    background-color: var(--card-3);
}

@media (max-width: 1250px) {

    .sticky-header {
        top: 25%;
    }

    .sticky .card-container {
        width: 80%;
    }

    .sticky .sticky-header h1 {
        font-size: 3rem;
    }

}

@media (max-width: 1000px) {

    .sticky-header {
        top: 30%;
    }

    .sticky .sticky-header h1 {
        font-size: 2.5rem;
    }

    .sticky .card-back span {
        font-size: 12px;
    }

    .sticky .card-back p {
        line-height: 1.3rem;
    }

    .sticky .card-container {
        width: 90%;
    }

}

@media (max-width: 850px) {
    .sticky .card-back p {
        line-height: 1rem;
    }
}

@media (max-width: 700px) {
    .sticky-header {
        top: 35%;
    }

    .sticky-header h1 {
        white-space: nowrap;
    }


    .sticky .card-back p {
        line-height: 0.8rem;
    }

}

@media (max-width: 500px) {

    .sticky {
        flex-direction: column;
        padding: 60px 20px;
    }

    .sticky-header {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 40px;
    }

    .sticky .sticky-header h1 {
        transform: none;
        opacity: 1;
        font-size: 2.2rem;
    }


    .sticky .card-container {
        width: 100%;
        flex-direction: column;
        gap: 20px;
        transform: none;
    }


    .sticky .card {
        transform: none !important;
        aspect-ratio: auto;
    }


    .sticky .card-front {
        display: none;
    }


    .sticky .card-back {
        position: relative;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        min-height: 120px;
    }

    .sticky .card-back span {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 10px;
        font-size: 1rem;
    }

    .sticky .card-back p {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

}