/* 
 * Custom CTA Section Styles
 * Enhanced with animations and unique design
 */

.cta-section {
    background-color: var(--light-bg);
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.1) 100%);
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    color: var(--text-color);
    border-radius: 10px;
    margin: 2rem auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 98%;
    transition: transform 0.5s ease;
}

.cta-section.animated {
    transform: scale(1.01);
}

/* Animated background elements - similar to hero section */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Floating shapes */
.cta-particle {
    position: absolute;
    opacity: 0.5;
    z-index: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.particle-0 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 107, 0.2);
    animation: float 6s ease-in-out infinite, morphShape 15s linear infinite alternate;
}

.particle-1 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 115, 170, 0.2);
    animation: float 8s ease-in-out infinite 1s, morphShape 20s linear infinite alternate;
}

.particle-2 {
    bottom: 15%;
    left: 15%;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 193, 7, 0.2);
    animation: float 7s ease-in-out infinite 2s, morphShape 18s linear infinite alternate;
}

.particle-3 {
    bottom: 20%;
    right: 5%;
    width: 50px;
    height: 50px;
    background-color: rgba(76, 175, 80, 0.2);
    animation: float 9s ease-in-out infinite 3s, morphShape 22s linear infinite alternate;
}

.particle-4 {
    top: 40%;
    left: 20%;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    opacity: 0;
    border-radius: 50%;
    animation: pulse 5s infinite;
}

.particle-5 {
    bottom: 30%;
    right: 15%;
    width: 150px;
    height: 150px;
    background-color: var(--accent-color);
    opacity: 0;
    border-radius: 50%;
    animation: pulse 5s infinite 2.5s;
}

.particle-6 {
    top: 15%;
    left: 35%;
    width: 40px;
    height: 40px;
    background-color: rgba(76, 175, 80, 0.2);
    animation: float 9s ease-in-out infinite 1.5s, morphShape 17s linear infinite alternate;
}

.particle-7 {
    bottom: 25%;
    right: 35%;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 107, 107, 0.2);
    animation: float 7s ease-in-out infinite 2.2s, morphShape 19s linear infinite alternate;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
    animation: fadeInDown 0.8s ease-out;
    color: var(--text-color);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.cta-content .btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.cta-content .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background: var(--secondary-color);
}

.cta-content .btn.pulse {
    animation: buttonPulse 1s;
}

/* Floating animation */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Shape morphing animation */
@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Fade in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Button pulse animation */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .cta-section {
        padding: 3rem 0;
        margin: 1.5rem auto;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-content .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 90%;
        max-width: 300px;
        margin-top: 1rem;
    }
    
    /* Adjust particle positions for mobile */
    .particle-0, .particle-4, .particle-6 {
        display: none;
    }
} 