/* ========== HERO DA PÁGINA ========== */
.portfolio-page-hero {
    min-height: 18rem;
    background-image: url('../images/banner-mobile.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 9rem 1.25rem 2.5rem;
}

.portfolio-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.portfolio-page-hero .hero-content {
    position: relative;
    z-index: 2;
}

.portfolio-page-hero .hero-title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-page-hero .hero-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
    color: var(--white);
}

@media (min-width: 430px) {
    .portfolio-page-hero .hero-title {
        font-size: 2.3rem;
    }

    .portfolio-page-hero .hero-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .portfolio-page-hero {
        min-height: 20rem;
        padding: 7.5rem 0 3rem;
        background-image: url('../images/banner-desktop.webp');
    }

    .portfolio-page-hero .hero-title {
        font-size: 3rem;
    }

    .portfolio-page-hero .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .portfolio-page-hero {
        min-height: 22rem;
        padding: 8rem 0 3rem;
    }

    .portfolio-page-hero .hero-title {
        font-size: 3.5rem;
    }

    .portfolio-page-hero .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    .portfolio-page-hero .hero-title {
        font-size: 3.8rem;
    }
}

/* ========== ABAS DE FILTRO ========== */
.tab-btn {
    padding: 0.55rem 1.75rem;
    border: 2px solid var(--primary-purple);
    border-radius: 2rem;
    background: transparent;
    color: var(--primary-purple);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.03em;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-purple);
    color: var(--white);
}

/* ========== GALLERY CARD ========== */
.gallery-card {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.gallery-image img {
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 2, 44, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.8rem;
    color: var(--white);
}

/* ========== PAGINAÇÃO ========== */
#portfolioPagination .page-link {
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

#portfolioPagination .page-link:hover {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--white);
}

#portfolioPagination .page-item.active .page-link {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--white);
}

#portfolioPagination .page-item.disabled .page-link {
    color: #aaa;
    border-color: #ddd;
}

/* ========== LIGHTBOX ========== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#lightboxImage {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    transition: opacity 0.15s ease;
}

@media (min-width: 768px) {
    #lightboxImage {
        max-height: 85vh;
    }
}

.lightbox-caption {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
    padding: 0 1rem;
}

.lightbox-caption:empty {
    display: none;
    margin-top: 0;
}

@media (min-width: 768px) {
    .lightbox-caption {
        font-size: 1.2rem;
        margin-top: 1.5rem;
        padding: 0 2rem;
    }
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    background: var(--primary-purple);
    transform: rotate(90deg);
}

@media (min-width: 768px) {
    .lightbox-close {
        top: 2rem;
        right: 3rem;
        font-size: 3rem;
        width: 3.125rem;
        height: 3.125rem;
    }
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    padding: 1rem 0.75rem;
    cursor: pointer;
    border-radius: 0.5rem;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:active,
.lightbox-next:active,
.lightbox-prev:focus,
.lightbox-next:focus {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    outline: none;
    box-shadow: none;
}

.lightbox-prev {
    left: 0.5rem;
}

.lightbox-next {
    right: 0.5rem;
}

@media (min-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 1.5rem 1rem;
    }

    .lightbox-prev {
        left: 2rem;
    }

    .lightbox-next {
        right: 2rem;
    }
}