/* ========== CTA SECTION ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 1px,
        transparent 1px
    );
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    z-index: 1;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    font-family: "Playfair Display", serif;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-cta {
    padding: 15px 40px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 35px rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.btn-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7d002 0%, #ff6b6b 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-cta:hover {
    background: #f7d002;
    color: #1a1a1a;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 45px rgba(247, 208, 2, 0.6);
}

.btn-cta:hover::before {
    left: 0;
}

.btn-cta:active {
    transform: translateY(-2px) scale(1.02);
}

/* Floating animation for CTA elements */
.cta-section [data-aos] {
    position: relative;
    z-index: 2;
}

/* Decorative elements */
.cta-decoration {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
}

.cta-decoration-1 {
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: #f7d002;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.cta-decoration-2 {
    bottom: 15%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: #ff6b6b;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 8s ease-in-out infinite reverse;
}

.cta-decoration-3 {
    top: 20%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: #4ecdc4;
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-5deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 1.8rem;
        padding: 0 20px;
    }

    .cta-text {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .btn-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .cta-decoration {
        display: none;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 50px 0;
    }

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

    .cta-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .btn-cta {
        padding: 12px 25px;
        font-size: 0.95rem;
        width: 80%;
        max-width: 250px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cta-section {
        background: linear-gradient(135deg, #0047a0 0%, #00a651 100%);
    }

    .btn-cta {
        background: rgba(255, 255, 255, 0.95);
    }

    .btn-cta:hover {
        background: #f7d002;
    }
}

/* Print styles */
@media print {
    .cta-section {
        background: #f8f9fa !important;
        color: #000 !important;
        border: 2px solid #000;
    }

    .btn-cta {
        background: #000 !important;
        color: #fff !important;
        border: 1px solid #000;
        box-shadow: none !important;
    }

    .cta-decoration {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cta-section {
        background: #667eea;
        border: 3px solid #f7d002;
    }

    .btn-cta {
        background: #f7d002;
        color: #1a1a1a;
        border: 2px solid #1a1a1a;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cta-section::before {
        animation: none;
    }

    .cta-decoration {
        animation: none;
    }

    .btn-cta {
        transition: none;
    }

    .btn-cta:hover {
        transform: none;
    }

    .btn-cta::before {
        display: none;
    }
}

/* Loading state for CTA button */
.btn-cta.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-cta.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success state for CTA button */
.btn-cta.success {
    background: #4ecdc4;
    color: white;
}

.btn-cta.success::before {
    content: "✓ ";
    margin-right: 8px;
}
