/* =====================================================
   UNIFIED THEME FIXES - Consistent Dark Theme
   ===================================================== */

/* Global Dark Theme Variables */
:root {
    --dark-bg-primary: #121225;
    --dark-bg-secondary: #1a1d29;
    --dark-bg-tertiary: #0f1419;
    --accent-gradient: linear-gradient(135deg, #00F5A0 0%, #00D9F5 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 245, 160, 0.3);
}

/* =====================================================
   1. FINANCIAL INNOVATION SECTION - Fix text wrapping
   ===================================================== */
.about__area.theme-bg-5 .feature-box {
    background: rgba(30, 35, 50, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 2.5rem 2rem !important;
    min-height: 320px;
}

.about__area.theme-bg-5 .feature-box h4 {
    white-space: nowrap !important;
    font-size: 1.25rem !important;
    letter-spacing: 0.3px;
    margin-bottom: 1.2rem !important;
}

.about__area.theme-bg-5 .feature-box p {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    max-width: 100% !important;
    word-wrap: break-word;
    hyphens: none;
}

.about__area.theme-bg-5 .feature-icon-wrap {
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 1.5rem !important;
}

.about__area.theme-bg-5 .feature-icon-wrap i {
    font-size: 1.8rem !important;
}

/* =====================================================
   2. REVOLUTIONIZING SECTION - Fix border closure
   ===================================================== */
.revolution__area {
    background: var(--dark-bg-tertiary) !important;
    border: none !important;
    position: relative;
    padding: 80px 0 100px !important;
}

/* Remove the incomplete border styling */
.revolution__area::before,
.revolution__area::after {
    display: none !important;
}

.revolution__wrapper {
    background: rgba(30, 35, 50, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 30px !important;
    padding: 60px 40px !important;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay for depth */
.revolution__wrapper::before {
    content: '' !important;
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 245, 160, 0.03) 0%, rgba(0, 217, 245, 0.03) 100%) !important;
    pointer-events: none;
    z-index: 0;
}

.revolution__wrapper > * {
    position: relative;
    z-index: 1;
}

/* Stats cards styling */
.revolution__item {
    flex: 0 0 calc(25% - 24px) !important;
    max-width: calc(25% - 24px) !important;
}

.revolution__item .revolution__content {
    background: rgba(20, 25, 40, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 40px 20px !important;
    height: 100%;
    transition: all 0.3s ease;
}

.revolution__item .revolution__content:hover {
    border-color: rgba(0, 245, 160, 0.3) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.revolution__number h2 {
    font-size: 3rem !important;
    margin-bottom: 0.5rem;
}

.revolution__item p {
    font-size: 0.9rem !important;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* =====================================================
   3. HOW IMVEST WORKS - Clean up signal clutter
   ===================================================== */
.work__step-area {
    background: var(--dark-bg-primary) !important;
    position: relative;
}

/* Remove all the cluttered signal dots */
.work__steps-main-3::before,
.work__steps-main-3::after,
.working__step-item::before,
.working__step-item::after {
    display: none !important;
}

/* Clean connecting line between steps */
.work__steps-main-3 {
    position: relative;
}

.work__steps-main-3 .row::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0, 245, 160, 0.1) 0%,
        rgba(0, 245, 160, 0.3) 25%,
        rgba(0, 217, 245, 0.3) 75%,
        rgba(0, 217, 245, 0.1) 100%
    );
    z-index: 1;
}

/* Step circles - clean styling */
.working__step-round {
    width: 70px !important;
    height: 70px !important;
    background: var(--accent-gradient) !important;
    border: none !important;
    box-shadow: 0 0 30px rgba(0, 245, 160, 0.3) !important;
    position: relative;
    z-index: 2;
}

.working__step-round span {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--dark-bg-primary) !important;
}

/* Step content cards */
.working__step-item {
    text-align: center;
}

.working__step-content {
    background: rgba(30, 35, 50, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 30px 20px !important;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.working__step-content:hover {
    border-color: rgba(0, 245, 160, 0.2) !important;
    background: rgba(30, 35, 50, 0.8) !important;
}

.working__step-content h5 {
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.working__step-content p {
    font-size: 0.9rem !important;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* =====================================================
   4. PROTECTION SECTION - Remove empty space
   ===================================================== */
.protection__area {
    background: var(--dark-bg-primary) !important;
    padding: 60px 0 80px !important;
}

.protection__area .section__title-space {
    margin-bottom: 30px !important;
    padding-bottom: 0 !important;
}

.protection__area .section__title-wraper {
    margin-bottom: 0 !important;
}

/* Brand slider - remove extra padding */
.protection__area .brnad__active {
    padding: 20px 0 !important;
}

.protection__area .brand__item {
    padding: 15px 20px !important;
}

.protection__area .brand__thumb img {
    max-height: 40px !important;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.protection__area .brand__thumb:hover img {
    opacity: 1;
}

/* Remove any nested wrappers that create empty space */
.protection__area .brand__area,
.protection__area .brand__inner {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure no extra space after the slider */
.protection__area .row.justify-content-center.mt-4 {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

.protection__area .col-12 {
    padding-bottom: 0 !important;
}

/* =====================================================
   5. CONSISTENT THEME ACROSS ALL SECTIONS
   ===================================================== */

/* Unified section backgrounds */
section {
    background: var(--dark-bg-primary);
}

.theme-bg-5 {
    background: var(--dark-bg-secondary) !important;
}

/* Section separators - subtle and consistent */
.section-separator {
    height: 1px !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%
    ) !important;
    margin: 0 !important;
}

/* Consistent card styling */
.glass-effect {
    background: rgba(30, 35, 50, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) !important;
}

/* Consistent button styling */
.bd-gradient-btn {
    background: var(--accent-gradient) !important;
    color: var(--dark-bg-primary) !important;
    border: none !important;
    font-weight: 600 !important;
}

/* Consistent headings */
.section__title {
    color: var(--text-primary) !important;
}

.section__subtitle-7 {
    background: rgba(0, 245, 160, 0.1) !important;
    color: #00F5A0 !important;
    border: 1px solid rgba(0, 245, 160, 0.3) !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
}

/* =====================================================
   6. RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 1199px) {
    .revolution__item {
        flex: 0 0 calc(50% - 16px) !important;
        max-width: calc(50% - 16px) !important;
    }
}

@media (max-width: 768px) {
    .revolution__wrapper {
        padding: 40px 20px !important;
    }
    
    .revolution__item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .about__area.theme-bg-5 .feature-box h4 {
        white-space: normal !important;
        font-size: 1.1rem !important;
    }
    
    .work__steps-main-3 .row::before {
        display: none;
    }
    
    .working__step-content {
        padding: 20px 15px !important;
    }
}

/* =====================================================
   7. REMOVE VISUAL NOISE
   ===================================================== */

/* Remove any decorative shapes causing clutter */
.revolution__shape {
    display: none !important;
}

/* Remove any background patterns that create noise */
.work__step-area::before,
.work__step-area::after {
    display: none !important;
}

/* Clean up any leftover pseudo-elements */
.working__step-item .step-connector,
.step-dot,
.signal-dot {
    display: none !important;
}
