/* ============================================
   PORTFOLIO PAGE
   ============================================ */

/* Hero */
.pf-hero {
    padding: 140px 0 60px;
    background: var(--navy-deep);
    text-align: center;
}
.pf-hero .section-tag {
    color: var(--accent);
}
.pf-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800; color: #fff;
    line-height: 1.3; margin-bottom: 16px;
}
.pf-hero-desc {
    font-size: 1rem; color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

/* Filter */
.pf-filter {
    background: var(--navy-deep);
    padding: 0 0 48px;
}
.pf-filter-btns {
    display: flex; gap: 8px;
    justify-content: center; flex-wrap: wrap;
}
.pf-filter-btn {
    padding: 9px 20px; border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.12);
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    font-family: inherit;
}
.pf-filter-btn:hover {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
}
.pf-filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--navy);
}

/* Grid */
.pf-content {
    background: var(--navy-deep);
    padding: 0 0 80px;
}
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pf-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-light);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0; transform: translateY(16px);
    cursor: pointer;
}
.pf-item.show {
    opacity: 1; transform: translateY(0);
}
.pf-item:hover {
    transform: translateY(-4px);
}
.pf-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.pf-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.pf-item:hover .pf-thumb img {
    transform: scale(1.05);
}
.pf-overlay {
    position: absolute; inset: 0;
    background: rgba(18, 21, 48, 0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.pf-item:hover .pf-overlay { opacity: 1; }
.pf-play {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--navy);
    padding-left: 3px;
}
.pf-info {
    padding: 20px;
}
.pf-cat {
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent);
}
.pf-info h3 {
    font-size: 1.1rem; font-weight: 700;
    color: #fff; margin: 6px 0 4px;
}
.pf-info p {
    font-size: 0.85rem; color: rgba(255,255,255,0.4);
    line-height: 1.5;
}

/* CTA */
.pf-cta {
    background: var(--navy);
    padding: 80px 0;
    text-align: center;
}
.pf-cta h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800; color: #fff;
    margin-bottom: 12px; line-height: 1.4;
}
.pf-cta p {
    font-size: 0.95rem; color: rgba(255,255,255,0.5);
    margin-bottom: 28px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .pf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pf-hero { padding: 110px 0 40px; }
    .pf-hero-title { font-size: 1.6rem; }
    .pf-hero-desc { font-size: 0.88rem; }
    .pf-hero-title br:not(.mobile-br) { display: none; }
    .mobile-br { display: inline; }

    .pf-filter { padding: 0 0 28px; }
    .pf-filter-btns {
        justify-content: flex-start;
        overflow-x: auto; flex-wrap: nowrap;
        gap: 6px; padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .pf-filter-btns::-webkit-scrollbar { display: none; }
    .pf-filter-btn {
        padding: 7px 16px; font-size: 0.78rem;
        flex-shrink: 0;
    }

    .pf-content { padding: 0 0 56px; }
    .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pf-thumb { aspect-ratio: 16 / 11; }
    .pf-info { padding: 14px; }
    .pf-cat { font-size: 0.6rem; }
    .pf-info h3 { font-size: 0.88rem; margin: 4px 0 2px; }
    .pf-info p { font-size: 0.75rem; }

    .pf-cta { padding: 56px 0; }
    .pf-cta h2 { font-size: 1.2rem; word-break: keep-all; }
}
