/* ==========================================================================
   Interactive CTA Section
   ========================================================================== */
.cta-section {
    position: relative;
    background-color: #050505;
    color: #fff;
    min-height: 40vh; /* Reduced extra space, matching screenshot proportion */
    padding: 6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    cursor: auto;
}

/* Concentric Rings Background */
.cta-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150vw;
    z-index: 1;
    pointer-events: none;
}

.cta-rings span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: pulseRipples 8s infinite linear;
}

/* Stagger the animations continuously */
.cta-rings span:nth-child(1) { animation-delay: 0s; }
.cta-rings span:nth-child(2) { animation-delay: -2s; }
.cta-rings span:nth-child(3) { animation-delay: -4s; }
.cta-rings span:nth-child(4) { animation-delay: -6s; }

@keyframes pulseRipples {
    0% { width: 0; height: 0; opacity: 0.8; }
    99% { width: 100vw; height: 100vw; opacity: 0.8; } /* Stays visible until the very end */
    100% { width: 100vw; height: 100vw; opacity: 0; } /* Disappears abruptly at completion */
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    pointer-events: none;
}

.cta-title {
    font-family: 'Saira Semi Condensed', sans-serif; /* Blocky, tech font matching site theme */
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* The Magnetic Cursor Follower & Trails */
.cta-cursor-follower,
.cta-cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 120px;
    height: 120px;
    background: #00d2ff; /* Light Blue */
    border-radius: 50%;
    pointer-events: none; 
    z-index: 100;
    opacity: 0;
    transform: scale(0);
    /* Removed transition for exact JS control */
}

.cta-cursor-follower {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.15;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4);
    z-index: 105; /* Main text circle on top */
}

/* Trails are just faded background circles */
.cta-cursor-trail {
    background: rgba(0, 210, 255, 0.9); /* Almost fully opaque so JS controls true brightness */
    box-shadow: none;
}

/* Mobile Fallback & Screenshot Match */
@media (max-width: 739.98px) {
    .cta-cursor-follower, .cta-cursor-trail {
        display: none !important;
    }
    
    .cta-section {
        background-color: #0d0d0d; /* Slightly softer dark background as per screenshot */
        padding: 4rem 1rem; /* Made 30% smaller vertically */
        min-height: auto;
    }

    /* Replace static rings with animated radiating circles */
    .cta-rings {
        opacity: 1;
    }

    .cta-title {
        font-size: 3rem;
        letter-spacing: -1px;
        line-height: 1.1;
        margin-bottom: 2rem;
        color: #e5e5e5;
    }

    .cta-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        color: #a0a0a0;
        margin-bottom: 2.5rem;
        max-width: 90%;
    }

    /* Outline Button for Mobile */
    .cta-btn-outline {
        display: inline-block !important;
        background: transparent;
        border: 1px solid #555;
        color: #e5e5e5;
        font-family: 'Saira Semi Condensed', sans-serif;
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        transition: all 0.3s ease;
    }

    .cta-btn-outline:hover, .cta-btn-outline:active {
        background: #e5e5e5;
        color: #0d0d0d;
        border-color: #e5e5e5;
    }
}
