/* Features Section Component Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
    /* Colors from design */
    --color-primary: #3BADF9;
    --color-secondary: #2EF1A8;
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(176, 196, 216, 0.9);
    --color-border: rgba(59, 173, 249, 0.2);

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

/* Section Container */
.features-section {
    padding: 0 20px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Badge */
.features-main-badge {
    background: linear-gradient(0deg, #1B8B61 0%, #2EF1A8 100%);
    color: #fff;
    padding: 10px 45px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(46, 241, 168, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Content Layout */
.features-layout {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    grid-row-gap: 15px;
    width: 100%;
    align-items: center;
    position: relative;
    padding: 40px;
    /* background: rgba(0, 8, 54, 0.4); */
    /* backdrop-filter: blur(20px); */
    /* -webkit-backdrop-filter: blur(20px); */
    border-radius: 30px;
    /* border: 2px solid rgba(59, 173, 249, 0.15); */
    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); */
}

/* Vertical Line */
/* .features-layout::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--color-primary) 15%, var(--color-primary) 85%, transparent);
    z-index: 1;
} */

/* Divider Nodes */
.divider-node {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000836;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    margin: 0 auto;
}

/* Column Header */
.col-header {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 25px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.col-header span {
    color: #000836;
    font-weight: 800;
    font-size: 1.15rem;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.left-header {
    margin-right: 20px;
    text-align: right;
}

.right-header {
    margin-left: 20px;
    text-align: left;
}

/* Feature Cards */
.feature-card {
    background: #FFFFFF1A;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 18px 25px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    /* backdrop-filter: blur(5px); */
    z-index: 3;
}

.left-card {
    margin-right: 20px;
    text-align: center;
}

.right-card {
    margin-left: 20px;
    text-align: center;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Connectors */
.feature-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.left-card::after {
    right: -30px;
}

.right-card::after {
    left: -30px;
}

/* Global RTL adjustments */
[dir="rtl"] .features-layout {
    direction: ltr;
}

[dir="rtl"] .col-header span,
[dir="rtl"] .feature-card {
    direction: rtl;
}

/* Animation */
.animate-item {
    opacity: 0;
    transform: translateY(10px);
}

#featuresSection[style*="display: block"] .animate-item {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delays */

/* Sidebar Active State Styling */
/* .sidebar-btn.active {
    background: linear-gradient(135deg, #2EF1A8, #1B8B61);
    border-color: #2EF1A8 !important;
    box-shadow: 0 0 15px rgba(46, 241, 168, 0.3) !important;
}

.sidebar-btn.active img {
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(46, 241, 168, 0.5));
} */

/* Responsive */
@media (max-width: 1024px) {
    .features-layout {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .features-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }

    /* Hide divider elements */
    .features-layout::before,
    .divider-node,
    .header-spacer,
    .features-divider-line {
        display: none;
    }

    /* Reorder items to stack columns */
    /* Group 1: Left (Owners) Header */
    .left-header {
        order: 1;
        margin-right: 0;
        margin-bottom: 5px;
    }

    /* Group 2: Left (Owners) Cards */
    .left-card {
        order: 2;
        margin-right: 0;
        text-align: center;
    }

    /* Group 3: Right (Users) Header */
    .right-header {
        order: 3;
        margin-left: 0;
        margin-top: 20px;
        /* spacing between sections */
        margin-bottom: 5px;
    }

    /* Group 4: Right (Users) Cards */
    .right-card {
        order: 4;
        margin-left: 0;
        text-align: center;
    }

    /* Remove connectors */
    .feature-card::after {
        display: none;
    }

    .features-main-badge {
        font-size: 1rem;
        padding: 8px 30px;
        margin-bottom: 20px;
    }
}