.footer {
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding-top: 140px;
    background: #09090b;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/footer_bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: translateY(18px) scale(1.02);
    filter: blur(5px) saturate(1.14) brightness(1);
    transition: opacity 2.4s ease, transform 2.4s ease, filter 2.4s ease;
    z-index: 0;
}

.footer.visible::before,
.footer.active::before {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) saturate(1.18) brightness(1.04);
}

.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.72) 14%, rgba(23, 9, 38, 0.14) 34%, rgba(242, 239, 255, 0.01) 58%, rgba(17, 8, 28, 0.28) 76%, rgba(9, 9, 11, 0.9) 100%),
        radial-gradient(circle at 50% 73%, rgba(255, 248, 220, 0.34) 0%, rgba(225, 214, 255, 0.22) 14%, rgba(168, 113, 255, 0.18) 26%, rgba(138, 0, 255, 0) 42%);
    z-index: 1;
    pointer-events: none;
}

.footer-bg-image,
.footer-bg-overlay,
.sunrise-glow {
    display: none;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer__top {
    padding-bottom: 110px;
}

.footer__content {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.footer__subtitle {
    padding: 10px 12px 10px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 30px;
    width: fit-content;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    background: rgba(17, 12, 28, 0.22);
    backdrop-filter: blur(8px);
}

.footer__subtitle-color {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    background: rgb(203, 39, 2);
    border-radius: 10px;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
}

.footer__subtitle-text {
    color: rgb(255, 154, 96);
    font-size: 15px;
    text-transform: capitalize;
}

.footer__title {
    color: #fff;
    font-size: clamp(44px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
    padding-top: 18px;
    margin: 0;
}

.footer__title strong {
    display: inline-block;
    position: relative;
    background-image: linear-gradient(309deg, rgb(180 120 255) 2%, rgb(150 29 255) 48%, rgb(138 1 255) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 12px;
}

.footer__title strong::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(138, 1, 255, 0.18) 0%, rgba(184, 120, 255, 1) 18%, rgba(197, 104, 255, 1) 50%, rgba(184, 120, 255, 1) 82%, rgba(138, 1, 255, 0.18) 100%);
    box-shadow: 0 0 24px rgba(168, 113, 255, 0.42);
    transform: skewX(-10deg);
}

.footer__desc {
    max-width: 690px;
    margin: 0 auto;
    padding-top: 22px;
    color: rgba(232, 229, 240, 0.72);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
}

.footer__button {
    width: fit-content;
    margin: 0 auto;
    padding-top: 34px;
}

.footer__button .button-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8518ff 0%, #6b0df2 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 38px rgba(109, 8, 235, 0.3);
    font-size: 20px;
    font-weight: 700;
}

.footer__button .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(109, 8, 235, 0.38);
}

.footer__bottom {
    padding-top: 32px;
    padding-bottom: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    margin-bottom: -2px;
}

.footer__bottom-box {
    display: flex;
    align-items: center;
}

.footer__bottom-item {
    width: calc(100% / 2);
    color: #fff;
    font-size: 14px;
    gap: 22px;
}

.footer__bottom-item a {
    color: #fff;
    transition: 0.3s ease all;
    opacity: 0.62;
    text-decoration: none;
}

.footer__bottom-item span {
    opacity: 0.62;
}

.footer__bottom-item a:hover {
    opacity: 1;
}

.footer__bottom-item--left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.footer__bottom-item--right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.footer-reveal-text {
    opacity: 0;
    transform: translateY(36px);
    filter: blur(8px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease;
}

.footer.visible .footer-reveal-text,
.footer.active .footer-reveal-text {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.back-to-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(152, 74, 255, 0.92) 0%, rgba(84, 0, 194, 0.92) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 14px 30px rgba(88, 0, 204, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 30;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .footer {
        padding-top: 110px;
    }

    .footer::before {
        background-attachment: scroll;
        background-position: center;
    }

    .footer__top {
        padding-bottom: 80px;
    }

    .footer__bottom-box {
        flex-direction: column;
        gap: 18px;
        justify-content: center;
    }

    .footer__bottom-item {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .footer__bottom-item--left,
    .footer__bottom-item--right {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer {
        padding-top: 90px;
    }

    .footer__subtitle {
        gap: 8px;
        padding: 8px 10px 8px 8px;
    }

    .footer__subtitle-text {
        font-size: 13px;
    }

    .footer__desc {
        font-size: 16px;
    }

    .footer__button .button-primary {
        font-size: 18px;
        padding: 13px 22px;
    }

    .footer__bottom {
        padding-bottom: 52px;
    }
}
