/* ================================================== */
/* ==   PINNING & FINAL CTA STYLES                 == */
/* ================================================== */

/* This is the element that will be pinned */
#pinning-section {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 100vh;
}

#pinning-section #contentSection3,
#pinning-section .cta-container,
#pinning-section .cta-primary-big {
    z-index: inherit;
    position: relative;
}

#pinning-section .cta-primary-big,
#pinning-section .cta-container {
    transition: opacity 0.1s ease, transform 0.3s ease;
}

#pinning-section > #contentSection3 {
    z-index: 1;
}

#contentSection3 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    z-index: 5;
    padding: 0 60px; /* This padding is large for mobile */
    overflow: hidden;
}

#contentSection3 .section-content {
    display: flex;
    justify-content: center;
}

.cta-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0 60px 0; /* These margins are large for mobile */
    flex-wrap: wrap;
}

.cta-primary-big {
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 200px;
    background: var(--kinetic-teal);
    color: var(--quantum-blue);
    font-weight: 700;
    border: 1px solid var(--kinetic-teal);
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.1);
}

.cta-primary-big:hover {
    transform: translateY(-3px) scale(1.05);
    background: #00ffe1;
    border-color: #00ffe1;
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.2);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--graphite);
    opacity: 0.85;
    font-size: 1.1rem;
}

.cta-icon {
    font-size: 1.5rem;
    color: var(--kinetic-teal);
}

.cta-container h2 {
    color: var(--graphite);
    text-shadow: none;
}

.cta-container p {
    color: var(--graphite);
    opacity: 0.9;
}

/* ======================================================= */
/* ==   DEFINITIVE LIGHT THEME FOR FINAL CTA SECTION    == */
/* ======================================================= */

.theme-light #contentSection3 {
    background: transparent;
}

.theme-light .cta-container h2 {
    color: var(--graphite);
    text-shadow: none;
}

.theme-light .cta-container p {
    color: var(--graphite);
    opacity: 0.9;
}

.theme-light .cta-feature {
    color: var(--graphite);
    opacity: 0.85;
}

.theme-light .cta-icon {
    color: var(--kinetic-teal);
}

.theme-light .cta-primary-big {
    background: var(--kinetic-teal);
    color: var(--quantum-blue);
    font-weight: 700;
    border: 1px solid var(--kinetic-teal);
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.1);
}

.theme-light .cta-primary-big:hover {
    background: #00ffe1;
    border-color: #00ffe1;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.2);
}

/* ======================================================= */
/* ==        MOBILE RESPONSIVE FIX (REDUCE SPACING)     == */
/* ======================================================= */

@media (max-width: 768px) {
    /* Reduce the horizontal padding on the main section container */
    #contentSection3 {
        padding: 0 20px;
    }

    /* Reduce the top and bottom margin on the button container */
    .cta-buttons {
        margin: 25px 0 30px 0;
    }

    /* Reduce the gap between the feature items */
    .cta-features {
        gap: 25px;
    }

    /* Optionally, slightly reduce button size for smaller screens */
    .cta-primary-big {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
}