@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-Medium.ttf');
}

.slider-re {
    perspective: 1000px;
    width: 500px;
    height: 515px;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 0 100px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    /* Container animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cards {
    width: 100%;
    height: 515px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.circle-text {
    position: absolute;
    top: 10%;
    left: 75%;
    width: 130px;
    height: 130px;
    border-radius: 70px;
    z-index: 4;
    background-color: rgb(23, 93, 131);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Circle animation */
    opacity: 0;
    animation: scaleIn 0.6s ease-out 0.3s forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.circled {
    width: 115px;
    height: 115px;
    background-color: rgba(0, 0, 0, 0);
    border: 2px solid rgb(232, 225, 219);
    border-radius: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.circled:hover {
    transform: scale(1.05);
}

.circled p {
    text-align: center;
    margin: 0;
    font-size: 16px;
    font-weight: 550;
    color: rgb(232, 225, 219);
    transition: color 0.3s ease;
}

.card-re {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backface-visibility: hidden;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateZ(-50px);
}

.card-re.active {
    opacity: 1;
    transform: translateZ(0);
    transition-delay: 0.2s;
}

.card-re img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.card-re:hover img {
    transform: scale(1.02);
}

.navigation {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-top: 15px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.navigation button {
    padding: 10px 20px;
    padding-bottom: 25px;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    margin: 0 10px;
    cursor: pointer;
    color: rgb(232, 225, 219);
    font-size: 40px;
    transition: all 0.3s ease;
    &:disabled {
        color: rgb(69, 69, 69);
        cursor: default;
    }
}

.navigation button:not(:disabled):hover {
    transform: scale(1.1);
}

.line-re {
    display: block;
    width: 80px;
    height: 1px;
    background-color: rgb(69, 69, 69);
    align-self: center;
    transition: all 0.3s ease;
}

/* Responsive transitions */
@media (max-width: 1037px) {
    .slider-re {
        width: 350px;
        min-height: 300px;
        margin-top: 20px;
        transition: all 0.5s ease;
    }

    .cards {
        min-height: 300px;
        transition: height 0.5s ease;
    }
}

@media (max-width: 430px) {
    .slider-re {
        width: 300px;
        min-height: 300px;
        margin-top: 60px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
        transition: all 0.5s ease;
    }

    .circle-text {
        position: absolute;
        top: -10%;
        left: 30%;
        transition: all 0.5s ease;
    }

    .cards {
        width: 300px;
        min-height: 300px;
        overflow: hidden;
        transition: all 0.5s ease;
    }
}
