// Feature section styles for cecli website

.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--heading-spacing);
    font-size: 2.5rem;
    color: var(--dark); // Light text on dark background
    font-weight: 700;
    line-height: var(--heading-line-height);
    letter-spacing: -0.5px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: #1a1a1a; // Dark card background
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    border-left: 3px solid var(--primary);
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: #2a2a2a; // Darker hover state
}

.feature-card p {
    font-size: var(--text-base);
    line-height: 1.6;
    color: #adb5bd; // Lighter gray for better contrast on dark background
}

.feature-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 0 12px 0;
}

.feature-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(18, 184, 134, 0.1);
    color: var(--secondary);
    margin-right: 14px;
    flex-shrink: 0;
    transition: transform 0.3s, background 0.3s;
    transform: scale(1.1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.25);
    background: rgba(18, 184, 134, 0.2);
    color: var(--secondary);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15);
    background: rgba(18, 184, 134, 0.2);
    color: var(--secondary);
}

.feature-title {
    font-size: var(--text-lg);
    color: var(--dark); // Light text on dark background
    margin: 0;
    position: relative;
    padding-bottom: var(--space-3);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.feature-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

// Responsive feature section adjustments
// Large tablets and small desktops (992px and below)
@media (max-width: 992px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card-header {
        padding: 10px 12px;
        margin-bottom: 15px;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
}

// Tablets (768px and below)
@media (max-width: 768px) {
    .feature-card p {
        font-size: 0.9375rem;
    }
}

// Mobile devices (576px and below)
@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-card-header {
        padding: 8px 10px;
        margin-bottom: 12px;
    }
}