/* =========================================
PAGE PORTFOLIO (projects.php)
========================================= */

.main-projects {
    width: 100%;
    background-color: transparent;
    padding: 40px 0 80px;
}

.portfolio-section,
.portfolio-header,
.portfolio-filters {
    width: 100%;
}

.portfolio-container,
.portfolio-header,
.portfolio-heading,
.portfolio-filters {
    display: flex;
    flex-direction: column;
}

.portfolio-container {
    width: 87%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.portfolio-header { gap: 40px; }
.portfolio-heading { gap: 12px; }

.portfolio-heading > h1 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--secondary-color);
    line-height: 0.95;
    text-box: trim-both cap alphabetic;
}

.portfolio-count {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
}

.portfolio-count > strong { font-weight: 600; }

.filter-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
}

.filter-row:first-child {
    border-bottom: 1px solid var(--border-subtle);
    padding-top: 0;
}

.filter-row:last-child { padding-bottom: 0; }

.filter-label,
.filter-btn {
    font-size: 0.8rem;
    letter-spacing: -0.02em;
}

.filter-label {
    font-weight: 500;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    column-gap: 14px;
    row-gap: 6px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 400;
    color: var(--tertiary-color);
    transition: color 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--secondary-color);
    font-weight: 500;
}

@media screen and (min-width: 450px) {
    .portfolio-heading > h1 { font-size: 3.2rem; }
}

@media screen and (min-width: 600px) {
    .portfolio-heading > h1 { font-size: 3.9rem; }
}

@media screen and (min-width: 768px) {
    .main-projects { padding: 60px 0 120px; }
    .portfolio-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
    }
    .portfolio-heading > h1 { font-size: 4.5rem; }
    .portfolio-count { font-size: 0.95rem; }
    .portfolio-filters { width: 48%; max-width: 460px; margin-top: 5px; }
    .filter-label, .filter-btn { font-size: 0.85rem; }
}

@media screen and (min-width: 1024px) {
    .main-projects { padding: 80px 0 150px; }
    .portfolio-container { gap: 75px; }
    .portfolio-heading { gap: 15px; }
    .portfolio-heading > h1 { font-size: 5rem; }
    .portfolio-filters { width: 45%; max-width: 480px; }
}

@media screen and (min-width: 1280px) {
    .portfolio-heading > h1 { font-size: 6rem; }
}