/* Final CTA Section - Digital Portal Design */
.final-cta-section {
    position: relative;
    padding: 160px 0;
    text-align: center;
    background-color: transparent;
    overflow: hidden;
    z-index: 10;
}

/* The Portal Glow */
.final-cta-portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(123, 63, 242, 0.25) 0%, rgba(89, 40, 197, 0.1) 40%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: portalPulse 8s infinite ease-in-out;
}

@keyframes portalPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

.final-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -3px;
    margin-bottom: 2rem;
    color: white;
}

.final-cta-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

.title-gradient {
    background: linear-gradient(135deg, #6B21A8, #8B5CF6, #7B3FF2, #6B21A8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    white-space: nowrap;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 991px) {
    .title-gradient {
        white-space: normal;
    }
}

/* Scaled up Button for Final CTA */
.final-cta-section .glow-button-wrapper {
    transform: scale(1.2);
    margin-top: 20px;
}

/* Light Mode Overrides */
[data-theme="light"] .final-cta-title {
    color: #1a1a1a;
}

[data-theme="light"] .final-cta-portal {
    background: radial-gradient(circle, rgba(123, 63, 242, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .final-cta-subtitle {
    color: #444;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .final-cta-section {
        padding: 100px 20px;
    }

    .final-cta-portal {
        width: 400px;
        height: 400px;
    }

    .final-cta-section .glow-button-wrapper {
        transform: scale(0.8);
    }
}