@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body::before{
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image: url(/pngs/bgMain2ciemniej.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
    background-color: #000;
    color: white;
}

.container{
    padding: 40px;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    background-repeat: no-repeat;
    display: flex;             /* włączamy flexbox */
    justify-content: center;   /* wyśrodkowanie poziome */
    align-items: center;
    flex-direction: column;
}

.nav{
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.navInner{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    flex-direction: row;
}

.navList{
    display: flex;
    grid-auto-flow: column;
    align-items: center;
    column-gap: 100px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.navList li{
    white-space: nowrap;
}

.navToggle{
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

.navLogo img{
    height: 54px;
}

.navList a{
    text-decoration: none;
    color: white;
    font-weight: 400;
}

.navCTA a{
    padding: 10px 26px;
    border-radius: 10px;
    background: white;
    color: black;
    font-weight: 500;
    font-size: 15px;
}

.galleryHeader{
    margin-top: 140px;
    margin-bottom: 40px;
    padding: 0 20px;
    text-align: left;
    margin-bottom: 30px;
}

.galleryHeader h1{
    font-size: 32px;
    margin-bottom: 12px;
}

.galleryHeader p{
    font-size: 14px;
    opacity: 0.85;
    max-width: 700px;
    line-height: 1.6;
    text-align: left;
}

.gallerySection{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.galleryGrid{
    display: grid;
    grid-template-columns: repeat(5, 260px);
    margin-top: 50px;
    gap: 20px;
}

.galleryGrid img{
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3 ease;
}

.galleryGrid img:hover{
    transform: scale(1.05);
}

body.menu-open .soon {
    display: none;
}

.lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3 ease;
    z-index: 9999;
}

.lightbox.active{
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
}

.lightbox img{
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    z-index: 5;
    position: relative;
}

.lightboxClose{
    position: absolute;
    top: 20px;
    left: 20px;

    background: none;
    border: none;
    box-shadow: none;

    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 20;

    padding: 0;
    line-height: 1;
}

.lightboxArrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
    opacity: 0.8;
    z-index: 20;
    pointer-events: auto;
}

.lightboxArrow:hover{
    opacity: 1;
}

.lightboxArrow.left{
    left: 30px;
}

.lightboxArrow.right{
    right: 30px;
}

@media (max-width: 768px) {

    *,
    *::before,
    *::after{
        box-sizing: border-box;
    }

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;

        background-image: url("/pngs/mobileBg.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .container {
        background: none !important;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;  
    }

    body.menu-open{
        overflow: hidden;
    }

    body.menu-open .event, body.menu-open .previousEvents{
        opacity: 0;
    }

    .nav{
        left: 0;
        transform: none;
        padding: 0px 30px 0px 35px;
        width: 100%;
    }

    .navInner{
        justify-content: space-between;
        align-items: center;
    }

    .navLogo{
        position: relative;
        z-index: 11;
        scale: 0.9;
    }

    .navList{
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: calc(var(--vh, 1vh) * 100);
        background-color: #000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        list-style: none;
        opacity: 0;
        margin: 0;
        padding: 0;
        z-index: 10;
        pointer-events: none;
    }

    .navList.active{
        opacity: 1;
        display: flex;
        flex-direction: column;
        pointer-events: auto;
    }

    .navToggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        position: relative;
        z-index: 1001;
    }

    .navToggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .navToggle span:nth-child(1) { top: 0; }
    .navToggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .navToggle span:nth-child(3) { bottom: 0; }

    .navToggle.open span:nth-child(1) {
        transform: rotate(45deg);
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .navToggle.open span:nth-child(2) {
        opacity: 0;
    }

    .navToggle.open span:nth-child(3) {
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    .navList.active{
        display: flex;
    }

    body.menu-open .soon {
        display: none;
    }

    .gallery{
        padding: 60px 20px;
    }

    .galleryGrid{
        grid-template-columns: repeat(2, 115px);
    }

    .lightboxArrow{
        font-size: 36px;
    }

    .galleryHeader{
        margin-top: 120px;
        margin-bottom: 40px;
        padding: 0 20px;
        text-align: left;
        margin-bottom: 0px;
    }   

    .galleryHeader h1{
        font-size: 22px;
        text-align: center;
    }

    .galleryHeader p{
        font-size: 14px;
        text-align: center;
    }

}

@media (min-width: 768px) and (max-width: 1024px) {

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;

        background-image: url("/pngs/tabletBg2.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .container {
        background: none !important;
        display: flex;
        justify-content: center;
        align-items: center;  
    }

    body.menu-open{
        overflow: hidden;
    }

    body.menu-open .event, body.menu-open .previousEvents{
        opacity: 0;
    }

    .nav{
        left: 0;
        transform: none;
        width: 100%;
        padding: 0px 60px 0px 65px;
    }

    .navInner{
        justify-content: space-between;
        align-items: center;
    }

    .navLogo{
        position: relative;
        z-index: 1000;
        scale: 1;
    }

    .navList{
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        opacity: 0;
        pointer-events: none;
        z-index: 10;
    }

    .navList.active{
        opacity: 1;
        pointer-events: auto;
    }

    .navToggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        position: relative;
        z-index: 1001;
    }

    .navToggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .navToggle span:nth-child(1) { top: 0; }
    .navToggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .navToggle span:nth-child(3) { bottom: 0; }

    .navToggle.open span:nth-child(1) {
        transform: rotate(45deg);
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .navToggle.open span:nth-child(2) {
        opacity: 0;
    }

    .navToggle.open span:nth-child(3) {
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    body.menu-open .soon {
        display: none;
    }

    .galleryGrid{
        grid-template-columns: repeat(4, 1fr);
    }

    .galleryHeader{
        margin-top: -30px;
    }

}

/* FOOTER - UNIVERSAL */

.siteFooter{
    width: 100%;
    margin-top: 120px;
}

.footerInner{
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.footerSponsors{
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 80px 0;
}

.footerSponsorsTitle{
    margin: 0 0 48px;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
}

.footerSponsorsLogos{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 90px;
    max-width: 1100px;
    margin: 0 auto;
}

.footerSponsorsLogos a{
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.footerSponsorsLogos a:hover{
    opacity: 1;
    transform: translateY(-2px);
}

.footerSponsorsLogos img{
    max-height: 50px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.footerBottom{
    width: 100%;
    background: #000;
}

.footerBottomInner{
    padding: 110px 40px 70px;
    display: grid;
    grid-template-columns: 180px 1fr 1fr auto;
    gap: 50px;
    align-items: start;
}

.footerBrand img{
    width: 90px;
    height: auto;
    display: block;
}

.footerColumn{
    width: 100%;
}

.footerLinks{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footerLinks a{
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.footerLinks a:hover{
    color: #ffffff;
}

.footerCTA{
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.footerCTA a{
    text-decoration: none;
    color: #000;
    background: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.footerCTA a:hover{
    transform: translateY(-2px);
    opacity: 0.95;
}

.footerCopy{
    width: 100%;
    background: #000;
}

.footerCopy .footerInner{
    text-align: center;
    padding-top: 20px;
    padding-bottom: 26px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

/* MOBILE */

@media (max-width: 768px){

    .siteFooter{
        margin-top: 80px;
    }

    .footerInner{
        padding-left: 24px;
        padding-right: 24px;
    }

    .footerSponsors{
        padding: 42px 0 36px;
    }

    .footerSponsorsTitle{
        font-size: 17px;
        margin: 0 0 26px;
    }

    .footerSponsorsLogos{
        gap: 30px;
    }

    .footerSponsorsLogos img{
        max-height: 28px;
        max-width: 100px;
    }

    .footerBottomInner{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
        padding: 46px 24px 36px;
        text-align: left;
    }

    .footerBrand{
        display: block;
        width: 100%;
        margin-bottom: 6px;
    }

    .footerBrand a{
        display: inline-block;
    }

    .footerBrand img{
        width: 72px;
        height: auto;
    }

    .footerColumn{
        width: 100%;
    }

    .footerColumn + .footerColumn{
        margin-top: 6px;
    }

    .footerLinks{
        align-items: flex-start;
        gap: 16px;
    }

    .footerLinks a{
        font-size: 18px;
        font-weight: 400;
        color: rgba(255,255,255,0.75);
        letter-spacing: 0;
    }

    .footerCTA{
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }

    .footerCTA a{
        width: auto;
        max-width: none;
        text-align: center;
        padding: 12px 22px;
        font-size: 13px;
        border-radius: 10px;
    }

    .footerCopy .footerInner{
        text-align: center;
        font-size: 13px;
        padding-top: 8px;
        padding-bottom: 22px;
        color: rgba(255,255,255,0.4);
    }
}

/* TABLET */

@media (min-width: 769px) and (max-width: 1024px){

    .footerInner{
        padding-left: 30px;
        padding-right: 30px;
    }

    .footerSponsors{
        padding: 60px 0;
    }

    .footerSponsorsTitle{
        font-size: 21px;
        margin: 0 0 36px;
    }

    .footerSponsorsLogos{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
        align-items: center;
        column-gap: 40px;
        row-gap: 34px;
        max-width: 760px;
        margin: 0 auto;
    }

    .footerSponsorsLogos img{
        max-height: 40px;
        max-width: 120px;
    }

    .footerBottomInner{
        grid-template-columns: 120px 1fr 1fr;
        gap: 30px;
        padding: 70px 30px 50px;
        align-items: start;
    }

    .footerBrand{
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .footerBrand img{
        width: 78px;
    }

    .footerLinks{
        gap: 14px;
        align-items: flex-start;
    }

    .footerLinks a{
        font-size: 14px;
        letter-spacing: 0.02em;
    }

    .footerCTA{
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 18px;
    }

    .footerCTA a{
        font-size: 13px;
        padding: 12px 24px;
    }

    .footerCopy .footerInner{
        font-size: 15px;
        padding-top: 10px;
        padding-bottom: 24px;
    }
}