/* CTA Section Enhanced Styles */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Overlay */
.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.85);
}

/* Decorative Elements */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(17, 162, 215, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(218, 48, 141, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(247, 220, 111, 0.1) 0%, transparent 50%);
    z-index: 2;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Floating Particles */
.cta-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 33% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 66% 90%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    animation: floatParticles 20s linear infinite;
    z-index: 2;
    opacity: 0.6;
}

@keyframes floatParticles {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.cta-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 7rem 0;
}

.cta-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.cta-description {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

.btn-cta-primary,
.btn-cta-secondary {
    padding: 1.125rem 2.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-cta-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

.btn-cta-primary i,
.btn-cta-secondary i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-cta-primary:hover i {
    transform: translateX(4px);
}

.btn-cta-secondary:hover i {
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cta-section {
        min-height: 400px;
        background-attachment: scroll;
    }

    .cta-content {
        padding: 5rem 0;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-description {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-section {
        min-height: 350px;
    }

    .cta-content {
        padding: 4rem 0;
    }

    .cta-title {
        font-size: 1.85rem;
        margin-bottom: 1.25rem;
    }

    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
