/* Modern CTA Section */
.cta {
    padding: 140px 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    animation: gradientRotate 20s linear infinite;
    z-index: 1;
}

@keyframes gradientRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.01) 100px,
            rgba(255, 255, 255, 0.01) 200px
        );
    z-index: 1;
}

.cta .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

/* Main Heading with Animated Gradient */
.cta h2 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
    background: linear-gradient(
        135deg,
        #fbbf24 0%,
        #f59e0b 20%,
        #6366f1 40%,
        #8b5cf6 60%,
        #10b981 80%,
        #fbbf24 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    position: relative;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Animated underline */
.cta h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(135deg, #fbbf24, #6366f1, #10b981);
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% {
        width: 150px;
        opacity: 0.8;
    }
    50% {
        width: 200px;
        opacity: 1;
    }
}

/* Subtitle */
.cta p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.6;
}

/* CTA Buttons Container */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Primary CTA Button */
.cta-buttons .btn {
    position: relative;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-buttons .btn-large {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    box-shadow:
        0 10px 40px rgba(251, 191, 36, 0.4),
        0 0 0 2px rgba(251, 191, 36, 0.2);
    position: relative;
    z-index: 1;
}

.cta-buttons .btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.cta-buttons .btn-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 15px 60px rgba(251, 191, 36, 0.5),
        0 0 0 3px rgba(251, 191, 36, 0.3);
}

.cta-buttons .btn-large:hover::before {
    opacity: 1;
}

/* Ripple Effect */
.cta-buttons .btn-large::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-buttons .btn-large:active::after {
    width: 300px;
    height: 300px;
}

/* Secondary CTA Button */
.cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.cta-buttons .btn-outline:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.cta-buttons .btn-outline:hover::before {
    left: 100%;
}

/* CTA Note */
.cta-note {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-note::before,
.cta-note::after {
    content: '✓';
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Floating Elements Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Decorative Elements */
.cta .container::before,
.cta .container::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.05;
    animation: float 6s ease-in-out infinite;
}

.cta .container::before {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.cta .container::after {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    bottom: -150px;
    right: -150px;
    animation-delay: 3s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cta {
        padding: 100px 40px;
    }

    .cta h2 {
        font-size: 3.5rem;
    }

    .cta p {
        font-size: 1.2rem;
    }

    .cta-buttons .btn {
        padding: 18px 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .cta {
        padding: 80px 20px;
    }

    .cta h2 {
        font-size: 2.5rem;
    }

    .cta p {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 30px;
        font-size: 1rem;
    }

    .cta-note {
        font-size: 0.9rem;
    }

    .cta .container::before,
    .cta .container::after {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .cta-buttons .btn {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
}