/* Portfolio Stats */
.stats-section { padding: 4rem 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    text-align: center;
}
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--color-primary); }
.stat-label { color: var(--text-secondary); }

/* Portfolio Main */
.portfolio-main { padding: 4rem 0; background-color: var(--bg-secondary); }
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}
.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.active { background-color: var(--color-primary); color: white; border-color: var(--color-primary); }

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.portfolio-item {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), opacity 0.5s ease;
    border: 1px solid var(--border-color);
}
.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.5s ease, opacity 0.5s ease;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-link {
    color: white;
    background-color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
}
.portfolio-content { padding: 1.5rem; }
.portfolio-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.portfolio-title { margin-bottom: 0.75rem; }
.portfolio-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tech-tag {
    font-size: 0.8rem;
    background-color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section { padding: 4rem 0; }
.cta-content {
    text-align: center;
    background: var(--gradient-secondary);
    padding: 4rem 2rem;
    border-radius: var(--radius);
    color: white;
}
.cta-buttons { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }