/* ─────────────────────────────────────────
   PORTFOLIO PAGE — STYLES
   Complementa assets/style/style.css
───────────────────────────────────────── */

── Active nav link ──
.nav-link--active {
    color: var(--steel) !important;
}
.nav-link--active::after {
    width: 100% !important;
}

/* ─────────────────────────────────────────
   PORTFOLIO HERO
───────────────────────────────────────── */
.port-hero {
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 56px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.port-hero-inner {
    max-width: 700px;
}

.port-hero h1 {
    margin: 8px 0 16px;
}

.port-hero h1 span {
    color: var(--steel);
}

.port-hero p {
    font-size: 17px;
    font-weight: 300;
    color: var(--silver);
    max-width: 560px;
}

/* ─────────────────────────────────────────
   FILTER BAR
───────────────────────────────────────── */
.port-filter-bar {
    position: sticky;
    top: var(--nav-h);
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.port-filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px;
}

.port-filter-scroll::-webkit-scrollbar {
    display: none;
}

.port-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--silver);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}

.port-filter-btn i {
    font-size: 12px;
}

.port-filter-btn:hover {
    border-color: var(--steel);
    color: var(--steel);
}

.port-filter-btn.active {
    background: var(--steel);
    border-color: var(--steel);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 95, 138, .3);
}

/* ─────────────────────────────────────────
   PORTFOLIO SECTIONS
───────────────────────────────────────── */
.port-section {
    padding: 80px 0 0;
    background: var(--white);
}

.port-section--alt {
    background: var(--bg);
}

/* Header inside each section */
.port-section-header {
    margin-bottom: 48px;
}

.port-section-label {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.port-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ice-lt);
    color: var(--steel);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 6px;
}

.port-section-label h2 {
    margin-top: 4px;
    margin-bottom: 0;
}

.port-section-header > p {
    font-size: 16px;
    font-weight: 300;
    color: var(--silver);
    max-width: 640px;
    margin-top: 12px;
}

/* ─────────────────────────────────────────
   NAV OVERRIDE — portfolio page has 5 links
───────────────────────────────────────── */
/* nav igual ao index.html — sem override de padding ou gap */

/* Ajuste de espaçamento da galeria na página de portfólio para se alinhar ao layout */
.port-section .gallery,
.port-section--alt .gallery {
    padding-bottom: 80px;
}

/* Título nunca some: quebra de linha livre */
.port-section .gallery .gallery-overlay-base h4 {
    white-space: normal;
    word-break: break-word;
    font-size: 15px;
    line-height: 1.35;
}

/* Hidden state for filter */
.port-section.hidden {
    display: none;
}

/* ─────────────────────────────────────────
   PORTFOLIO CTA
───────────────────────────────────────── */
.port-cta {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.port-cta::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 95, 138, .35) 0%, transparent 70%);
    pointer-events: none;
}

.port-cta::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 189, 228, .15) 0%, transparent 70%);
    pointer-events: none;
}

.port-cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.port-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.port-cta-content h2 {
    color: #fff;
    margin: 12px 0 16px;
}

.port-cta-content p {
    font-size: 17px;
    font-weight: 300;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 36px;
}

.port-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .85);
    padding: 13px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s, color .2s, background .2s;
}

.btn-outline-light:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

/* ─────────────────────────────────────────
   REVEAL ANIMATION (same as main site)
───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
    .port-hero {
        padding-top: calc(var(--nav-h) + 40px);
        padding-bottom: 36px;
    }

    .port-hero h1 {
        font-size: clamp(30px, 8vw, 48px);
    }

    .port-section {
        padding-top: 56px;
    }

    .port-section .gallery {
        padding-bottom: 56px;
    }

    .port-section-label {
        gap: 14px;
    }

    .port-section-icon {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .port-filter-bar {
        top: var(--nav-h);
    }

    .port-cta {
        padding: 72px 0;
    }

    .port-cta-actions {
        flex-direction: column;
        align-items: center;
    }
}