/* ===== Collage section  to i neonowe ksztaty ===== */
.collage-section {
    position: relative;
    overflow: hidden;
    padding: 30px;
    background: var(--color-bg-dark);
}

.collage-section__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.collage-section__bg-shape {
    position: absolute;
    border: 2px solid var(--color-accent);
    opacity: 1;
    box-shadow:
        0 0 10px rgba(188, 242, 65, 0.28),
        0 0 26px rgba(188, 242, 65, 0.16);
    filter: drop-shadow(0 0 8px rgba(188, 242, 65, 0.18));
}

.collage-section__bg-shape--tl {
    width: 60vh;
    height: 60vh;
    border: 50px solid var(--color-accent);
    border-radius: 50%;
    background: transparent;
    top: -22%;
    left: -18%;
    box-sizing: border-box;
}

.collage-section__bg-shape--br {
    width: min(340px, 32vw);
    height: min(340px, 32vw);
    border-radius: 50%;
    background: var(--color-accent);
    bottom: -10%;
    right: -6%;
    box-shadow: 0 0 35px rgba(188, 242, 65, 0.25);
    opacity: 1;
}

@media (max-width: 768px) {
    .collage-section__bg-shape--tl {
        width: 52vh;
        height: 52vh;
        border-width: 36px;
    }
}

.collage-section__inner {
    position: relative;
    z-index: 2;
}

.collage-section__lead {
    margin-top: 0.5rem;
    color: var(--color-muted-on-dark);
    font-size: 1.05rem;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Kola: 6 kolumn, kady wiersz = 4 obrazy o rnych szerokociach (1 lub 2), inna kolejno co wiersz ===== */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    grid-auto-rows: 500px;
    margin-top: 2.5rem;
}

.collage-cell {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(24px);
    animation: collageReveal 0.5s ease-out forwards;
    transition: transform 0.28s ease-out, box-shadow 0.28s ease-out, border-color 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 0;
}

.collage-cell:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--color-accent);
}

/* Hover: zdjcie powiksza si (efekt zblienia do oryginalnych proporcji) */
.collage-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease-out;
}

.collage-cell:hover img {
    transform: scale(1.12);
}

.collage-cell__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.collage-cell:hover .collage-cell__overlay {
    opacity: 1;
}

/* Szeroko: w1 = 1/4, w2 = 1/2, w3 = 3/4 (grid 4 kolumny). */
.collage-cell--w1 {
    grid-column: span 1;
}

.collage-cell--w2 {
    grid-column: span 2;
}

.collage-cell--w3 {
    grid-column: span 3;
}

.collage-cell--w4 {
    grid-column: span 4;
}

/* Stagger  opnienie wejcia (nth-child) */
.collage-cell:nth-child(1)  { animation-delay: 0.05s; }
.collage-cell:nth-child(2)  { animation-delay: 0.1s; }
.collage-cell:nth-child(3)  { animation-delay: 0.15s; }
.collage-cell:nth-child(4)  { animation-delay: 0.2s; }
.collage-cell:nth-child(5)  { animation-delay: 0.25s; }
.collage-cell:nth-child(6)  { animation-delay: 0.3s; }
.collage-cell:nth-child(7)  { animation-delay: 0.35s; }
.collage-cell:nth-child(8)  { animation-delay: 0.4s; }
.collage-cell:nth-child(9)  { animation-delay: 0.45s; }
.collage-cell:nth-child(10) { animation-delay: 0.5s; }
.collage-cell:nth-child(11) { animation-delay: 0.55s; }
.collage-cell:nth-child(12) { animation-delay: 0.6s; }
.collage-cell:nth-child(13) { animation-delay: 0.65s; }
.collage-cell:nth-child(14) { animation-delay: 0.7s; }
.collage-cell:nth-child(15) { animation-delay: 0.75s; }
.collage-cell:nth-child(16) { animation-delay: 0.8s; }
.collage-cell:nth-child(17) { animation-delay: 0.85s; }
.collage-cell:nth-child(18) { animation-delay: 0.9s; }
.collage-cell:nth-child(19) { animation-delay: 0.95s; }
.collage-cell:nth-child(20) { animation-delay: 1s; }
.collage-cell:nth-child(21) { animation-delay: 1.05s; }
.collage-cell:nth-child(22) { animation-delay: 1.1s; }
.collage-cell:nth-child(23) { animation-delay: 1.15s; }
.collage-cell:nth-child(24) { animation-delay: 1.2s; }
.collage-cell:nth-child(25) { animation-delay: 1.25s; }
.collage-cell:nth-child(26) { animation-delay: 1.3s; }
.collage-cell:nth-child(27) { animation-delay: 1.35s; }
.collage-cell:nth-child(28) { animation-delay: 1.4s; }
.collage-cell:nth-child(29) { animation-delay: 1.45s; }
.collage-cell:nth-child(30) { animation-delay: 1.5s; }
.collage-cell:nth-child(31) { animation-delay: 1.55s; }
.collage-cell:nth-child(32) { animation-delay: 1.6s; }
.collage-cell:nth-child(33) { animation-delay: 1.65s; }
.collage-cell:nth-child(34) { animation-delay: 1.7s; }
.collage-cell:nth-child(35) { animation-delay: 1.75s; }
.collage-cell:nth-child(36) { animation-delay: 1.8s; }
.collage-cell:nth-child(37) { animation-delay: 1.85s; }
.collage-cell:nth-child(38) { animation-delay: 1.9s; }
.collage-cell:nth-child(39) { animation-delay: 1.95s; }
.collage-cell:nth-child(40) { animation-delay: 2s; }

@keyframes collageReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .collage-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .collage-cell--w2,
    .collage-cell--w3,
    .collage-cell--w4 {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .collage-grid {
        gap: 20px;
        grid-auto-rows: 160px;
    }
}

/* ===== Hero portfolio: jeden ekran, bez kolażu 3D ===== */
.pf-hero {
    padding: 8rem 0 2.5rem;
}

.pf-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.pf-hero h1 {
    margin: 0 0 1rem;
}

.pf-hero__content p {
    max-width: 36rem;
    margin: 0;
    color: var(--color-muted-on-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.pf-hero__strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.28);
}

.pf-hero__strip img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 767px) {
    .pf-hero {
        padding: 6.5rem 0 1.75rem;
    }

    .pf-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .pf-hero__strip {
        margin-top: 1.5rem;
    }

    .pf-hero__strip img {
        aspect-ratio: 3 / 4;
    }

    .pf-hero__content p {
        font-size: 1rem;
    }
}

.pf-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* Siatka kart: proste linie, bez cieni, zaokrągleń i unoszenia */
#projects .projects-grid--filterable {
    gap: 1.5rem;
    background: none;
    border: 0;
}

#projects .projects-grid--filterable .project-card {
    border: 1px solid #1A1A1A;
    transition: border-color 0.3s ease;
}

#projects .projects-grid--filterable .project-card:hover,
#projects .projects-grid--filterable .project-card:focus-within {
    border-color: var(--color-accent, #BCF241);
}

@media (max-width: 767px) {
    #projects .projects-grid--filterable {
        gap: 1.25rem;
    }
}

#projects .projects-grid--filterable .project-card {
    border-radius: 0;
    box-shadow: none;
}

#projects .projects-grid--filterable .project-card:hover {
    box-shadow: none;
    transform: none;
}

#projects .projects-grid--filterable .project-category {
    border-radius: 0;
}

/* CTA na dole: dwa przyciski */
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.btn-outline-neon {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-outline-neon:hover,
.btn-outline-neon:focus-visible {
    background: var(--color-accent);
    color: #000;
}

/* ===== Lightbox ===== */
.collage-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.collage-lightbox[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.collage-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.collage-lightbox__dialog {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.collage-lightbox__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collage-lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.collage-lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--color-accent);
    color: #000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.2s, background 0.2s;
}

.collage-lightbox__close:hover {
    background: #d4eb3d;
    transform: scale(1.05);
}

.collage-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.2s, color 0.2s;
}

.collage-lightbox__nav:hover {
    background: var(--color-accent);
    color: #000;
}

.collage-lightbox__nav--prev {
    left: -60px;
}

.collage-lightbox__nav--next {
    right: -60px;
}

@media (max-width: 768px) {
    .collage-lightbox__nav--prev {
        left: 8px;
    }
    .collage-lightbox__nav--next {
        right: 8px;
    }
}

.collage-lightbox__counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Okruszki (BreadcrumbList) - ten sam wzor co .mp-breadcrumb na stronach ofert */
.mp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.85rem;
}

.mp-breadcrumb li + li::before {
    content: '/';
    margin-right: 0.5rem;
    opacity: 0.6;
}

.mp-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.mp-breadcrumb a:hover,
.mp-breadcrumb a:focus-visible {
    color: var(--color-accent, #BCF241);
}

.mp-breadcrumb [aria-current="page"] {
    color: #ffffff;
}

.cta .cta-actions .btn-phone.btn-outline-neon {
    background: transparent;
    color: var(--color-accent, #BCF241);
    border: 2px solid var(--color-accent, #BCF241);
    box-shadow: none;
}

.cta .cta-actions .btn-phone.btn-outline-neon:hover,
.cta .cta-actions .btn-phone.btn-outline-neon:focus-visible {
    background: var(--color-accent, #BCF241);
    color: #000;
}
