/* ogólne */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
}

/* stopka */
.footer {
    position: relative;
    scroll-snap-align: start;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.footer-shape {
    position: absolute;

    left: 50%;
    bottom: 0;

    width: 80vw;
    height: 105px;

    background: #273b52;

    transform: translateX(-50%) rotate(180deg);

    box-shadow: 0 8px 28px rgba(0,0,0,.35);

    z-index: 3;
}

.footer-shape::before,
.footer-shape::after {
    content: "";

    position: absolute;
    top: 0;

    width: 10vw;
    height: 145px;

    background: #273b52;

    box-shadow: 0 8px 28px rgba(0,0,0,.35);
}

.footer-shape::before {
    right: 100%;
    border-bottom-right-radius: 24px;
}

.footer-shape::after {
    left: 100%;
    border-bottom-left-radius: 24px;
}

.footer-content {
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;

    transform: rotate(180deg);

    color: white;
    font-size: 14px;
    font-weight: 500;
}

.footer-content a {
    color: white;
    text-decoration: none;
}

.footer-content a:hover {
    color: #d8c3a5;
}

/* header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transform: translateY(-160px);
    opacity: 0;
    transition:
        transform .9s ease,
        opacity .9s ease;
}

.header--visible {
    transform: translateY(0);
    opacity: 1;
}

.header-shape {
    position: relative;

    width: 80vw;
    height: 105px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 0 3vw;

    pointer-events: auto;
    box-shadow: 0 8px 28px rgba(0,0,0,.35);

    transition:
        background-color .9s ease,
        box-shadow .9s ease;
}

.nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;
}

.nav-items {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 3vw;
}

.nav-group-left {
    justify-self: start;
}

.nav-group-center {
    justify-self: center;
}

.nav-group-right {
    justify-self: end;
}

.header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    color: white;
    text-decoration: none;

    font-size: 11px;
    font-weight: 500;

    transition:
        transform .25s ease,
        color .25s ease;
}

.header-link i {
    font-size: 18px;
}

.header-link-main i {
    font-size: 34px;
}

.nav-label {
    color: white;

    font-size: 17px;
    font-weight: 600;

    letter-spacing: .4px;
    line-height: 1;

    opacity: .95;
}

.header-link:hover {
    transform: translateY(-2px);
    color: #273b52;
}

.header--dark .header-link:hover {
    color: #d8c3a5;
}

.header--light .header-link:hover {
    color: #273b52;
}

.header-shape::before,
.header-shape::after {
    content: "";

    position: absolute;
    top: 0;

    width: 10vw;
    height: 145px;

    box-shadow: 0 8px 28px rgba(0,0,0,.35);

    z-index: -1;

    transition:
        background-color .9s ease,
        box-shadow .9s ease;
}

.header-shape::before {
    right: 100%;
    border-bottom-right-radius: 24px;
}

.header-shape::after {
    left: 100%;
    border-bottom-left-radius: 24px;
}

/* header colors */

.header--dark .header-shape,
.header--dark .header-shape::before,
.header--dark .header-shape::after {
    background: #273b52;
}

.header--light .header-shape,
.header--light .header-shape::before,
.header--light .header-shape::after {
    background: #d8c3a5;
}

/* header-links */

.header-link {
    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    color: white;
    text-decoration: none;

    font-size: 11px;

    transition:
        transform .25s ease,
        color .25s ease;
}

.header-link-main {
    flex: 2.5;

    font-size: 18px;
    font-weight: 600;
}

.header-link-main {
    flex: 3;
}

.header-link i {
    font-size: 18px;
    margin-bottom: 4px;
}

.header-link-main i {
    font-size: 32px;
}

.header-link:hover {
    transform: translateY(-2px);
    color: black;
}

/* sections */

.zone {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    scroll-snap-align: start;
}

.zone-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.zone-infront {
    position: absolute;
    inset: 0;

    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 0 15vw;

    color: white;
}

.zone-infront-light {
    position: absolute;
    inset: 0;

    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 0 15vw;

    color: #d8c3a5;
}

.zone-dark::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.35);

    z-index: 1;
}

.zone-infront {
    z-index: 2;
}

/* grafiki w tle*/

.myVideo {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}
.myVideo2 {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    opacity: 75%;   
}
.myVideo2 img {
    object-fit: cover;
    animation: slowZoom 25s ease-out forwards;
}

@keyframes slowZoom {
    from {
        transform: scale(1.0);
    }

    to {
        transform: scale(1.2);
    }
}

/* teksty na grafikach */
.witaj {
    display: block;

    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 600;

    margin-bottom: 1rem;

    text-shadow: 0 4px 15px rgba(0,0,0,.4);
}

.wstep {
    display: block;

    max-width: 900px;

    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.8;

    font-weight: 400;

    text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.ikony {
    display: flex;
    gap: 2rem;

    margin-top: 2rem;

    font-size: 2rem;
}

.ikony a {
    color: white;

    transition:
        transform .25s ease,
        color .25s ease;
}

.ikony a:hover {
    transform: translateY(-4px);
    color: #d8c3a5;
}

/*flipbook*/
.magazine-layout {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 5vw;
    padding-top: 4%;
}

.m1 {
    width: 24vw;
    max-width: 450px;
    color: white;
    font-size: 1.35rem;
    line-height: 1.9;
}

.m1 b {
    font-size: 1.8rem;
}

.m2 {
    width: 60vw;
    height: 80vh;
}

.flipbook img {
    width: 100%;
    object-fit: fill;
}

#trans {
    opacity: 50%;
}

.flipbook {
    -webkit-transition: margin-left 0.5s;
    -moz-transition: margin-left 0.5s;
    -ms-transition: margin-left 0.5s;
    -o-transition: margin-left 0.5s;
    transition: margin-left 0.5s;
}

.flipbook .shadow {
    transition: box-shadow 0.5s;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.zoom {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 95vh;
    width: calc(95vh * 1.4142857142857);
    max-width: 96vw;
    z-index: -1;
}

#zoom-pages {
    display: flex;
    width: 100%;
    height: 100%;
}

.zoom-img {
    width: 50%;
    height: 100%;
    object-fit: fill;
    display: block;
}


/* galeria */
.project-gallery {
    margin-top: 3rem;

    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gallery-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.project-card {
    position: relative;

    padding: 0;
    border: none;
    background: none;

    overflow: hidden;
    border-radius: 28px;

    cursor: pointer;

    border: 3px solid rgba(255,255,255,.75);
    box-shadow: 0 8px 28px rgba(0,0,0,.3);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.project-card img {
    display: block;

    height: 220px;
    width: auto;

    object-fit: cover;

    transition:
        transform .5s ease,
        filter .35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,.45);
}

.project-card:hover img {
    transform: scale(1.06);
}

.project-card span {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 1rem;

    color: white;
    font-weight: 600;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.85),
            transparent
        );
}

/* modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0,0,0,.9);

    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

#modalImage {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
}

.close,
.prev,
.next {
    position: fixed;
    z-index: 20001;
    color: white;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
}

.close {
    top: 2rem;
    right: 3rem;
}

.prev {
    left: 3rem;
}

.next {
    right: 3rem;
}

#caption,
#numbertext {
    color: white;
}

.modal-thumbs {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;

    max-width: 80vw;
    overflow-x: auto;
    padding-bottom: .5rem;
}

.modal-thumb {
    width: 90px;
    height: 60px;

    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;

    overflow: hidden;
    cursor: pointer;

    background: none;
    opacity: .55;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumb.active {
    opacity: 1;
    border-color: white;
}

/* MOBILE */

@media (max-width: 768px) {

    /* footer */

    .footer-shape::before,
    .footer-shape::after {
        display: none;
    }

    .footer-shape {
        width: 100vw;
    }

    /* sekcje */

    .zone,
    .footer {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .zone-infront {
        position: relative;
        inset: auto;

        min-height: 100vh;

        padding: 1.5rem 1.5rem 2rem;
    }

    .myVideo,
    .myVideo2 {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .myVideo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .myVideo2 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* kafelki */

     .project-gallery {
        width: 100%;
        margin-top: 2rem;
        gap: 1rem;
    }

    .gallery-row,
    .gallery-row-bottom {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .project-card {
        width: 100%;
        max-width: 420px;
    }

    .project-card img {
        width: 100%;
        height: 190px;
        object-fit: cover;
    }

    .ikony {
        gap: 1rem;
    }

    /* navbar */

    .header {
        transform: translateY(0);
        opacity: 1;
    }

    .header-shape {
        width: 100vw;
        height: 72px;

        display: flex;
        justify-content: center;
        gap: 1.2rem;

        padding: 0 1rem;
        border-radius: 0;
    }

    .header-shape::before,
    .header-shape::after {
        display: none;
    }

    .nav-label,
    .nav-group-left {
        display: none;
    }

    .nav-group {
        gap: 0;
    }

    .nav-items {
        gap: 1.2rem;
    }

    .header-link span,
    .header-link {
        font-size: 10px;
    }

    .header-link i {
        font-size: 18px;
    }

    .header-link-main i {
        font-size: 24px;
    }

    /* magazyn */

    .magazine-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .m1 {
        width: 90%;
        max-width: none;
        text-align: center;
    }

    .m2 {
        width: 95vw;
        height: auto;
    }

    .zoom, #mob {
        display: none;
    }
}