/* ==========================================
   RAVUKSA FINTECH - PREMIUM FEATURES
   Phase 2 - CSS
========================================== */


/* 1. SMOOTH PAGE SCROLLING */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* 2. ANIMATED NUMBER COUNTER */

.rf-counter {
    display: inline-block;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease;
}

.rf-counter.rf-counter-active {
    transform: scale(1.04);
}


/* 3. PLATFORM STATUS INDICATOR */

.rf-platform-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(53, 230, 223, 0.25);
    border-radius: 30px;
    background: rgba(0, 188, 212, 0.07);
    color: inherit;
    font-size: 12px;
    font-weight: 600;
}

.rf-status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #35d68a;
    box-shadow: 0 0 8px rgba(53, 214, 138, 0.75);
    animation: rfStatusPulse 1.8s ease-in-out infinite;
}

@keyframes rfStatusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.8);
    }
}


/* 4. COPY LINK BUTTON */

.rf-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid rgba(53, 230, 223, 0.45);
    border-radius: 8px;
    background: rgba(0, 188, 212, 0.08);
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.rf-copy-link:hover {
    border-color: #35e6df;
    box-shadow: 0 0 14px rgba(0, 188, 212, 0.2);
}

.rf-copy-link.rf-copy-success {
    border-color: #35d68a;
    color: #35d68a;
}


/* 5. ANIMATED LOADING SCREEN */

#ravuksa-premium-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #07182e;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#ravuksa-premium-loader.rf-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.rf-loader-logo {
    max-width: 155px;
    max-height: 90px;
    object-fit: contain;
}

.rf-loader-brand {
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
}

.rf-loader-line {
    width: 125px;
    height: 3px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
}

.rf-loader-line::after {
    content: "";
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: #35e6df;
    box-shadow: 0 0 12px #35e6df;
    animation: rfLoaderMove 1.2s ease-in-out infinite;
}

@keyframes rfLoaderMove {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(250%);
    }
}


/* MOBILE RESPONSIVE */

@media (max-width: 600px) {
    .rf-platform-status {
        font-size: 11px;
        padding: 6px 10px;
    }

    .rf-copy-link {
        font-size: 12px;
        padding: 8px 11px;
    }

    .rf-loader-logo {
        max-width: 130px;
    }
}


/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .rf-status-dot,
    .rf-loader-line::after {
        animation: none;
    }

    #ravuksa-premium-loader {
        transition: none;
    }
}

/* =========================================
   RAVUKSA FINTECH - PREMIUM HIGHLIGHTS
========================================= */

.rf-platform-highlights {
    width: 100%;
    padding: 55px 20px;
    background: linear-gradient(
        135deg,
        #071426,
        #0b2440,
        #071426
    );
    box-sizing: border-box;
    overflow: hidden;
}

.rf-platform-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* FEATURE CARD */

.rf-feature-card {
    width: 100%;
    max-width: 650px;
    padding: 35px 25px;
    text-align: center;
    background: linear-gradient(
        145deg,
        rgba(17, 43, 70, 0.98),
        rgba(7, 20, 38, 0.98)
    );
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rf-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 210, 255, 0.15);
}

.rf-feature-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.rf-feature-card h2 {
    color: #ffffff;
    font-size: clamp(21px, 3vw, 28px);
    margin: 0 0 15px;
    line-height: 1.4;
}

.rf-feature-card .rf-counter {
    color: #00d9ff;
    font-size: 55px;
    font-weight: 800;
    line-height: 1.2;
    margin: 12px 0;
}

.rf-feature-card p {
    color: #d2e2f0;
    font-size: 15px;
    line-height: 1.7;
    margin: 10px auto 0;
    max-width: 480px;
}

/* PLATFORM STATUS */

.rf-platform-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #e6f5ff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    flex-wrap: wrap;
}

.rf-status-dot {
    flex-shrink: 0;
}

/* COPY LINK BUTTON */

.rf-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #00bfe8, #087cff);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 190, 232, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rf-copy-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 190, 232, 0.4);
}

.rf-copy-link:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* LOADER CONTENT */

.rf-loader-content {
    width: min(90%, 420px);
    text-align: center;
    padding: 25px;
    box-sizing: border-box;
}

.rf-loader-brand {
    color: #ffffff;
    font-size: clamp(23px, 5vw, 32px);
    font-weight: 800;
    letter-spacing: 2px;
}

.rf-loader-content p {
    color: #bdefff;
    font-size: 14px;
    margin: 12px 0 20px;
}

.rf-loader-content span {
    display: block;
    color: #d7eaff;
    font-size: 13px;
    margin-top: 15px;
}

/* MOBILE RESPONSIVE */

@media (max-width: 600px) {

    .rf-platform-highlights {
        padding: 35px 15px;
    }

    .rf-feature-card {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .rf-feature-icon {
        font-size: 36px;
    }

    .rf-feature-card .rf-counter {
        font-size: 46px;
    }

    .rf-feature-card p {
        font-size: 14px;
    }

    .rf-platform-status {
        font-size: 13px;
    }

    .rf-copy-link {
        width: 100%;
        max-width: 300px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .rf-feature-card,
    .rf-copy-link {
        transition: none;
    }

    .rf-feature-card:hover,
    .rf-copy-link:hover {
        transform: none;
    }
}

/* END PREMIUM HIGHLIGHTS */


/* =========================================
   RAVUKSA FINTECH - PREMIUM CARD SPACING
========================================= */

.rf-platform-highlights {
    padding: 45px 18px;
}

.rf-platform-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.rf-feature-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 30px 24px;
    border-radius: 20px;
    box-sizing: border-box;
}

/* MOBILE DESIGN */

@media (max-width: 600px) {

    .rf-platform-highlights {
        padding: 32px 14px;
    }

    .rf-feature-card {
        width: calc(100% - 12px);
        max-width: 360px;
        padding: 25px 17px;
        border-radius: 18px;
    }

    .rf-platform-container {
        gap: 20px;
    }
}

/* RAVUKSA FINTECH - LIGHT PREMIUM SECTION BACKGROUND */

.rf-platform-highlights {
    width: 100%;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f0f8ff 50%,
        #ffffff 100%
    ) !important;

    padding: 45px 18px;
    box-sizing: border-box;
}

/* Keep the existing premium card design */
.rf-feature-card {
    margin-left: auto;
    margin-right: auto;
}

/* Mobile background full width */
@media (max-width: 600px) {

    .rf-platform-highlights {
        width: 100%;
        padding: 32px 14px;
        background: linear-gradient(
            180deg,
            #ffffff 0%,
            #edf7ff 50%,
            #ffffff 100%
        ) !important;
    }

}

/* =========================================
   RAVUKSA FINTECH - TEXT VISIBILITY FIX
========================================= */

/* Financial Tools & Calculators */
#rf-platform-highlights .rf-feature-card h2 {
    color: #ff0000 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Platform Development in Progress */
#rf-platform-highlights .rf-platform-status,
#rf-platform-highlights .rf-platform-status span {
    color: #ff0000 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Status Background */
#rf-platform-highlights .rf-platform-status {
    background: #ffffff !important;
    border: 2px solid #ff0000 !important;
    padding: 12px 20px !important;
    border-radius: 30px !important;
}

/* Status Dot */
#rf-platform-highlights .rf-status-dot {
    background: #ff0000 !important;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5) !important;
}

/* Make both headings clearly visible */
#rf-platform-highlights .rf-feature-card h2,
#rf-platform-highlights .rf-platform-status {
    display: block !important;
}

/* Restore Green Live Status Dot */

#rf-platform-highlights .rf-status-dot {
    display: inline-block !important;
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    background: #16c75b !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px rgba(22, 199, 91, 0.75) !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: rf-live-pulse 1.5s infinite !important;
}

@keyframes rf-live-pulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(22, 199, 91, 0.5);
    }
    50% {
        box-shadow: 0 0 14px rgba(22, 199, 91, 0.9);
    }
}

/* RAVUKSA WHATSAPP SECTION - DARK BOLD TEXT FIX */

#community .highlight h3 {
    color: #000000 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
}

#community .highlight p {
    color: #000000 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    visibility: visible !important;
    line-height: 1.8 !important;
    text-shadow: none !important;
}

#community .highlight > div {
    color: #000000 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#community .highlight .btns {
    opacity: 1 !important;
    visibility: visible !important;
}

#community .highlight .btns a {
    font-weight: 900 !important;
}
