/* ============================================
   MODERN CTA SECTION STYLES - COBEX SAC
   ============================================ */

.cta.section {
    padding: 6rem 0;
    background-color: #0f172a; /* Dark Navy Blue from palette */
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
    /* Centering styles */
    margin: 4rem auto;
    width: 100%; /* Fallback for older browsers */
}

/* Match centering from other sections */
@media screen and (min-width: 1025px) {
    .cta.section {
        margin-left: 3rem;
        margin-right: 3rem;
        max-width: calc(100% - 6rem);
    }
}

@media screen and (min-width: 1400px) {
    .cta.section {
        margin-left: 6rem;
        margin-right: 6rem;
        max-width: calc(100% - 12rem);
    }
}

@media screen and (min-width: 1800px) {
    .cta.section {
        margin-left: 10rem;
        margin-right: 10rem;
        max-width: calc(100% - 20rem);
    }
}


/* Futuristic Grid Background */
.cta.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-pan 30s linear infinite;
    opacity: 0.5;
}

@keyframes grid-pan {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Glowing Orbs */
.cta.section::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-glow-cta 10s ease-in-out infinite;
    filter: blur(50px);
}

@keyframes float-glow-cta {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 30px) scale(1.2); }
}

.cta__container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta__title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 30px rgba(6, 182, 212, 0.3);
    animation: text-flicker 4s ease-in-out infinite;
}

@keyframes text-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.cta__description {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.8);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.8;
}

.cta__button {
    background: var(--gradient-accent);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    border: 2px solid var(--accent-light);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta__button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: var(--accent-light);
}

.cta__button i {
    transition: transform 0.3s ease;
}

.cta__button:hover i {
    transform: rotate(15deg);
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .cta.section {
        margin-left: 1rem;
        margin-right: 1rem;
        max-width: calc(100% - 2rem);
        padding: 5rem 0;
    }
    .cta__title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .cta.section {
        margin: 2rem 0;
        border-radius: 0; /* Edge-to-edge on mobile */
        padding: 4rem 1rem;
        max-width: 100%;
    }
    .cta__title {
        font-size: 2rem;
    }
    .cta__description {
        font-size: 1rem;
    }
    .cta__button {
        padding: 1rem 2.5rem;
        font-size: 0.95rem;
    }
}
