/* ============================================
   CONVERSION OPTIMIZER STYLES
   All styles for the conversion optimization features
   ============================================ */

/* 1️⃣ FLOATING CTA BUTTON */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta.hidden {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(45deg, #FF5C2D, #FF783C);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 92, 45, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 92, 45, 0.6);
}

.floating-cta-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 15px;
        right: 15px;
    }

    .floating-cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .floating-cta-btn span {
        display: none;
    }

    .floating-cta-btn i {
        font-size: 1.5rem;
    }
}

/* 2️⃣ BUTTON PULSE ANIMATION */
@keyframes micro-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.micro-pulse {
    animation: micro-pulse 0.6s ease-in-out;
}

/* 3️⃣ READING PROGRESS BAR */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 9999;
    pointer-events: none;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF5C2D, #FF783C, #1FBFFF);
    width: 0%;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 92, 45, 0.5);
}

.progress-message {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 92, 45, 0.95);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.progress-message.hidden {
    opacity: 0;
}

@media (max-width: 768px) {
    .progress-message {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        top: 10px;
    }
}

/* 4️⃣ SCROLL ANIMATIONS */
.aos-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.aos-element.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* 6️⃣ EXIT INTENT MODAL */
.exit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.exit-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.exit-modal-content {
    background: linear-gradient(145deg, #0A1A3C, #000B1D);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 92, 45, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.exit-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-modal-close:hover {
    opacity: 1;
}

.exit-modal-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FF5C2D;
}

.exit-modal-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #D9D9D9;
}

.exit-modal-cta {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
}

/* 7️⃣ SOCIAL PROOF NOTIFICATIONS */
#social-proof-container {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 998;
    pointer-events: none;
}

.social-proof-notification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(10, 26, 60, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border-left: 4px solid #FF5C2D;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
}

.social-proof-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.social-proof-notification i {
    color: #1FBFFF;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.social-proof-notification span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    #social-proof-container {
        left: 10px;
        right: 10px;
        bottom: 80px;
    }

    .social-proof-notification {
        max-width: calc(100vw - 20px);
        padding: 0.875rem 1.25rem;
    }

    .social-proof-notification span {
        font-size: 0.85rem;
    }
}

/* 9️⃣ SECTION HIGHLIGHT */
section {
    transition: background-color 0.6s ease;
}

section.section-active {
    position: relative;
}

section.section-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 92, 45, 0.03) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    animation: sectionGlow 2s ease-in-out forwards;
}

@keyframes sectionGlow {
    0% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .progress-message {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        top: 10px;
    }
}

/* 4️⃣ SCROLL ANIMATIONS */
.aos-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.aos-element.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* 6️⃣ EXIT INTENT MODAL */
.exit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.exit-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.exit-modal-content {
    background: linear-gradient(145deg, #0A1A3C, #000B1D);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 92, 45, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.exit-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-modal-close:hover {
    opacity: 1;
}

.exit-modal-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FF5C2D;
}

.exit-modal-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #D9D9D9;
}

.exit-modal-cta {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
}

/* 7️⃣ SOCIAL PROOF NOTIFICATIONS */
#social-proof-container {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 998;
    pointer-events: none;
}

.social-proof-notification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(10, 26, 60, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border-left: 4px solid #FF5C2D;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
}

.social-proof-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.social-proof-notification i {
    color: #1FBFFF;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.social-proof-notification span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    #social-proof-container {
        left: 10px;
        right: 10px;
        bottom: 80px;
    }

    .social-proof-notification {
        max-width: calc(100vw - 20px);
        padding: 0.875rem 1.25rem;
    }

    .social-proof-notification span {
        font-size: 0.85rem;
    }
}

/* 9️⃣ SECTION HIGHLIGHT */
section {
    transition: background-color 0.6s ease;
}

section.section-active {
    position: relative;
}

section.section-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 92, 45, 0.03) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    animation: sectionGlow 2s ease-in-out forwards;
}

@keyframes sectionGlow {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* PERFORMANCE OPTIMIZATIONS */
.floating-cta,
.progress-bar-fill,
.social-proof-notification,
.exit-modal {
    will-change: transform, opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .aos-element,
    .floating-cta,
    .social-proof-notification,
    .exit-modal-content {
        animation: none !important;
        transition: none !important;
    }

    .micro-pulse {
        animation: none !important;
    }
}