/* ==========================================================================
   Projects Section Styles
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.project-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-slow);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.project-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.project-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-accent);
    color: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.project-card h3 {
    color: var(--color-primary);
    font-size: 1.125rem;
    margin: 0;
}

.project-description {
    color: var(--color-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.6em * 3);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.project-tag {
    background-color: var(--color-border-light);
    color: var(--color-secondary-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
}

.project-actions {
    margin-top: var(--space-lg);
    text-align: center;
}

.project-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    color: var(--color-secondary);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.project-stat {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.project-updated {
    font-size: 0.75rem;
}

/* Mobile Projects Styles */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-stats {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}