/* =========================================================
   PORTFOLIO PUSLAPIS (PORTFOLIO PAGE) - LUXURY & FANCY STILIAI
   ========================================================= */

.portfolio-page-wrapper {
    width: 100%;
    background: var(--color-bg, #111111);
    color: var(--color-text, #f1eee8);
    font-family: var(--font-body, Arial, Helvetica, sans-serif);
    overflow: hidden;
}

/* ---------------------------------------------------------
   1. HERO SEKCIA
   --------------------------------------------------------- */
.portfolio-hero {
    padding: clamp(70px, 9vw, 120px) clamp(24px, 6vw, 90px) 40px;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--color-gold, #c5a572);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.portfolio-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--color-gold, #c5a572);
}

.portfolio-title-display {
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(38px, 5.5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 400;
    margin: 0 0 20px;
    color: #ffffff;
}

.portfolio-title-display em {
    font-style: italic;
    color: var(--color-gold, #c5a572);
    font-weight: 300;
}

.portfolio-lead {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.7;
    color: var(--color-text-muted, #a9a49c);
    max-width: 680px;
    margin: 0 auto;
}

/* ---------------------------------------------------------
   2. FILTRŲ JUOSTA
   --------------------------------------------------------- */
.portfolio-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 30px clamp(20px, 4vw, 40px) 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-muted, #a9a49c);
    padding: 10px 22px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--color-gold, #c5a572);
    color: #ffffff;
}

.filter-btn.active {
    background: var(--color-gold, #c5a572);
    border-color: var(--color-gold, #c5a572);
    color: #111111;
    font-weight: 700;
}

/* ---------------------------------------------------------
   3. NUOTRAUKŲ TINKLELIS
   --------------------------------------------------------- */
.portfolio-grid-section {
    padding: 0 clamp(24px, 6vw, 90px) clamp(80px, 10vw, 130px);
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.portfolio-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--color-bg-card, #202020);
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, opacity 0.3s ease;
}

.portfolio-item.is-hidden {
    display: none;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(197, 165, 114, 0.35);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease;
}

.portfolio-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.9);
}

/* Užsklanda su aprašymu */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.4) 40%, transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 26px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-cat {
    font-size: 10.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold, #c5a572);
    font-weight: 600;
    margin-bottom: 8px;
    transform: translateY(10px);
    transition: transform 0.35s ease;
}

.portfolio-item-title {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 22px;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.2;
    transform: translateY(12px);
    transition: transform 0.4s ease;
}

.portfolio-item-desc {
    font-size: 13px;
    color: var(--color-text-muted, #a9a49c);
    margin: 0;
    line-height: 1.5;
    transform: translateY(14px);
    transition: transform 0.45s ease;
}

.portfolio-item:hover .portfolio-cat,
.portfolio-item:hover .portfolio-item-title,
.portfolio-item:hover .portfolio-item-desc {
    transform: translateY(0);
}

/* ---------------------------------------------------------
   4. LIGHTBOX (VISO EKRANO PERŽIŪRA)
   --------------------------------------------------------- */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 30px;
}

.lightbox-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(197, 165, 114, 0.3);
}

.lightbox-caption {
    margin-top: 18px;
    text-align: center;
}

.lightbox-caption h4 {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 20px;
    color: #ffffff;
    margin: 0 0 4px;
}

.lightbox-caption p {
    font-size: 13px;
    color: var(--color-gold, #c5a572);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

.lightbox-close-btn {
    position: absolute;
    top: -46px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close-btn:hover {
    color: var(--color-gold, #c5a572);
    transform: scale(1.15);
}

/* ---------------------------------------------------------
   5. CTA SEKCIA
   --------------------------------------------------------- */
.portfolio-cta-section {
    position: relative;
    padding: clamp(80px, 10vw, 130px) clamp(24px, 6vw, 90px);
    background: radial-gradient(circle at center, #24221f 0%, #121212 100%);
    border-top: 1px solid rgba(197, 165, 114, 0.2);
    text-align: center;
}

.portfolio-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
    padding: 18px 46px;
    background: var(--color-gold, #c5a572);
    color: #111111;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(197, 165, 114, 0.3);
}

.portfolio-cta-btn:hover {
    transform: translateY(-3px);
    background: #d4b788;
    box-shadow: 0 15px 40px rgba(197, 165, 114, 0.5);
    color: #000000;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .portfolio-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .portfolio-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-overlay {
        opacity: 1;
        padding: 24px 20px;
    }

    .portfolio-cat,
    .portfolio-item-title,
    .portfolio-item-desc {
        transform: translateY(0);
    }
}
