/* Portfolio Specific Styles */

/* 1. Grid 2 Columns */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

/* Logic: Jika jumlah item ganjil, item terakhir akan span 2 kolom (full width) */
.portfolio-grid .project-item:last-child:nth-child(odd) {
    grid-column: span 2;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Reset span logic on mobile */
    .portfolio-grid .project-item:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

.project-item {
    background: var(--bg-card);
}

.project-img {
    height: 280px;
}

.project-content h3 {
    margin-bottom: 4px;
}

.project-label {
    margin-bottom: 5px;
}

/* 3. Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.breadcrumb .current {
    color: var(--text-main);
    font-weight: 500;
}

/* 4. Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--text-main);
    border-color: var(--text-main);
    color: var(--bg-page);
    font-weight: 600;
}