/* Portfolio child-center styling & animations */
.portfolio-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.portfolio-hero .hero-content { position: relative; z-index: 2; }
.portfolio-hero .hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255,255,255,0.3);
    animation: portfolio-fade-in-down 0.7s ease-out forwards;
}
.portfolio-hero .hero-title { animation: portfolio-fade-in-up 0.8s ease-out 0.15s both; }
.portfolio-hero .hero-subtitle { animation: portfolio-fade-in-up 0.8s ease-out 0.3s both; }
.portfolio-hero .hero-meta { animation: portfolio-fade-in-up 0.8s ease-out 0.45s both; }
.portfolio-hero .hero-cta { animation: portfolio-fade-in-up 0.8s ease-out 0.6s both; }
.portfolio-hero .hero-rating { animation: portfolio-fade-in-up 0.8s ease-out 0.75s both; }
@keyframes portfolio-fade-in-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes portfolio-fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.portfolio-section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--vz-heading-color, #1e293b);
}
.portfolio-section-subtitle { max-width: 42rem; margin-left: auto; margin-right: auto; }

.portfolio-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.portfolio-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery grid */
.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.portfolio-gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.portfolio-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
.portfolio-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-gallery-item:hover img { transform: scale(1.08); }
.portfolio-gallery-item .gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}
.portfolio-gallery-item:hover .gallery-item-overlay { opacity: 1; }
.portfolio-gallery-item .gallery-item-overlay i {
    color: #fff;
    font-size: 1.5rem;
}

/* News cards */
.portfolio-news-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.portfolio-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.portfolio-news-card .card-img-wrap {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}
.portfolio-news-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.portfolio-news-card:hover .card-img-wrap img { transform: scale(1.05); }

/* Team cards */
.portfolio-team-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.portfolio-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

/* Resources list */
.portfolio-resource-link {
    display: block;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.portfolio-resource-link:hover {
    background: #f8fafc;
    border-color: var(--vz-primary, #0d6efd);
    transform: translateX(4px);
}

/* Lightbox modal */
.portfolio-lightbox .modal-dialog { max-width: 90vw; max-height: 90vh; }
.portfolio-lightbox .modal-body { padding: 0; text-align: center; }
.portfolio-lightbox .modal-body img { max-width: 100%; max-height: 85vh; width: auto; height: auto; object-fit: contain; }
