.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000080;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 45;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.cards-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1%;
    justify-content: center;
    width: 100%;
    z-index: 46;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cards-container.active {
    height: 36%;
    opacity: 1;
    visibility: visible;
    animation: slideInFromRight 0.5s ease-out forwards;
}

.cards-container.hiding .card:nth-child(3) {
    animation: hideCards 1s ease-out forwards;
}

.cards-container.hiding .card:nth-child(2) {
    animation: hideCards 1s ease-out forwards 0.1s;
}

.cards-container.hiding .card:nth-child(1) {
    animation: hideCards 1s ease-out forwards 0.2s;
}

.discover-button.hiding {
    animation: hideButton 1s ease-out forwards 0.2s;
}

.card {
    width: 28%;
    background: rgba(204, 1, 2, 0.5);
    border-radius: 30px;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease, backdrop-filter 0.5s ease 0.5s;
    display: flex;
    flex-direction: column;
    gap: 3%;
    align-items: center;
    padding: 3% 3% 2% 3%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(192, 2, 2, 0.815);
    border-radius: 30px;
    z-index: -1;
}

.card-circle {
    width: 6vh;
    height: 6vh;
    border-radius: 50%;
    background: linear-gradient(to right, #FFE680, #FAB041, #FFE680);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-circle span {
    font-size: 4vh;
    font-weight: 700;
    color: #442F1E;
    font-family: 'Circe Rounded', Arial, sans-serif;
}

.card-text {
    color: #fff;
    font-size: 2.9vh;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    font-family: 'Circe Rounded', Arial, sans-serif;
}

.cards-container.active .card {
    transform: translateY(0);
    opacity: 1;
}

.cards-container.active .card:nth-child(1) { transition-delay: 0.2s; }
.cards-container.active .card:nth-child(2) { transition-delay: 0.4s; }
.cards-container.active .card:nth-child(3) { transition-delay: 0.6s; }

.discover-button {
    position: fixed;
    bottom: 16%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #FFE680, #FAB041, #FFE680);
    border-radius: 24px;
    padding: 24px 30px;
    min-height: 88px;
    width: 40%;
    border: none;
    cursor: pointer;
    color: #442F1E;
    font-size: 2.8vh;
    font-weight: 700;
    font-family: 'Circe Rounded', Arial, sans-serif;
    z-index: 46;
    overflow: hidden;
}

.discover-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: all 0.3s ease;
    z-index: 1;
}

.discover-button::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: all 0.3s ease;
    z-index: 1;
}

.discover-button:hover::before {
    left: 0;
}

.discover-button:hover::after {
    right: 0;
}

.discover-button span {
    position: relative;
    z-index: 2;
}

@keyframes slideInFromRight {
    from {
        transform: translate(100vw, -50%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translate(-50%, 100vh);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes hideCards {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100vh);
    }
}

@keyframes showCards {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hideButton {
    from {
        opacity: 1;
        transform: translateX(-50%);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-100vh);
    }
}

@keyframes hideLeftCardsMobile {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-100vw, 0);
    }
}

@keyframes hideLeftButtonMobile {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-100vw, 0);
    }
}

@media screen and (max-width: 1250px) {
    .discover-button {
        min-height: auto;
        border-radius: 17px;
        padding: 16px 30px;
    }
}

@media screen and (max-width: 1050px) {
    .discover-button {
        border-radius: 16px;
        width: 85%;
    }
}

@media screen and (max-width: 768px) {
    .cards-container.active {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        height: auto;
        top: 50%;
        height: 75%;
        animation: slideInFromRight 0.5s ease-out forwards;
    }

    .card {
        width: 95%;
        height: 30%;
        padding: 30px 20px;
        border-radius: 18px;
    }

    .card::before {
        border-radius: 18px;
    }

    .card-circle {
        width: 30px;
        height: 30px;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-circle span {
        font-size: 24px;
    }

    .card-text {
        font-size: 2.8vh;
        line-height: 1.2;
        font-weight: 400;
    }

    .discover-button.active {
        width: 95%;
        font-size: 1.9vh;
        font-weight: 700;
        padding: 12px 22px;
        min-height: fit-content;
        position: absolute;
        top: calc(50% + 37.5% + 10px);
        left: 50%;
        transform: translateX(-50%);
    }

    .cards-container.hiding {
        animation: hideLeftCardsMobile 1s ease-out forwards;
    }

    .discover-button.hiding {
        animation: hideLeftButtonMobile 1s ease-out forwards;
    }
}

@media screen and (min-width: 769px) {
    .cards-container.active {
        animation: slideInFromBottom 0.5s ease-out forwards;
    }
} 