/* Client Projects Section Styles */
.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: normal;
}

.client-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.client-project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.client-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.client-project-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, #3a506b 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.client-info h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: white;
    font-weight: 600;
}

.client-category {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-style: italic;
}

.client-price {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    min-width: 90px;
    text-align: center;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: #f0f7ff;
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #d4e6ff;
}

.project-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
}

.status-badge {
    background: #d4edda;
    color: #155724;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.view-client-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
}

.view-client-btn:hover {
    color:#218838;
    
}

/* Earnings Summary */
.client-earnings-summary {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c3e50 100%);
    border-radius: 12px;
    padding: 2.5rem;
    color: white;
    margin-top: 2rem;
}

.earnings-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .client-projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .client-project-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .client-price {
        align-self: flex-start;
    }
    
    .earnings-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-divider {
        width: 80%;
        height: 1px;
        margin: 0.5rem 0;
    }
    
    .stat-item {
        min-width: 100%;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.client-project-card {
    animation: fadeInUp 0.5s ease-out;
}

.client-project-card:nth-child(2) { animation-delay: 0.1s; }
.client-project-card:nth-child(3) { animation-delay: 0.2s; }
.client-project-card:nth-child(4) { animation-delay: 0.3s; }