/* ============================================
   Pre-Footer CTA Section - Zencia.AI Theme
   ============================================ */

.pre-footer-cta-section {
    padding: 120px 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Background effects */
.pre-footer-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.jsdelivr.net/gh/tech-zencia/website-images@main/language-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    filter: brightness(0.8);
    z-index: 1;
}

.pre-footer-cta-section .container {
    position: relative;
    z-index: 2;
}

/* ===== CTA CONTENT ===== */
.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.cta-title .highlight {
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 50%, #00CED1 100%);
/* Teal to Turquoise to Cyan - CORRECT! */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.cta-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CTA BUTTONS ===== */
.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.3);
    border: none;
    cursor: pointer;
    min-width: 180px;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 213, 0.4);
    background: linear-gradient(135deg, #00b8b5 0%, #006b6b 100%);
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    min-width: 180px;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-3px);
}

/* ===== FLOATING ELEMENTS ===== */
.cta-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-dot {
    position: absolute;
    background: var(--primary-teal);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.floating-dot:nth-child(1) {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-dot:nth-child(2) {
    width: 4px;
    height: 4px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-dot:nth-child(3) {
    width: 8px;
    height: 8px;
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.6;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.cta-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-title {
    animation: fadeInUp 1s ease-out;
}

.cta-subtitle {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.cta-buttons {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .pre-footer-cta-section {
        padding: 100px 0;
    }
    
    .cta-title {
        margin-bottom: 1.25rem;
        letter-spacing: -1px;
    }
    
    .cta-subtitle {
        margin-bottom: 2.5rem;
    }
    
    .cta-buttons {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pre-footer-cta-section {
        padding: 80px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        max-width: 320px;
    }
    
    .cta-subtitle {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .pre-footer-cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        margin-bottom: 1rem;
    }
    
    .cta-subtitle {
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        margin-top: 2rem;
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        padding: 16px 32px;
        font-size: 1rem;
        max-width: none;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .floating-dot,
    .cta-content {
        animation: none;
        transition: none;
    }
}

/* Focus states */
.cta-btn-primary:focus,
.cta-btn-secondary:focus {
    outline: 3px solid var(--primary-teal);
    outline-offset: 4px;
}