/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    padding: 0 200px;
    transition: background-color 0.6s ease, box-shadow 0.6s ease, padding 0.6s ease;
    background-color: transparent;
    font-family: 'ArialNova', sans-serif;
}

header nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

header.scrolled {
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

header nav ul.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.logo-item {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.logo-item img {
    height: 80px;
    width: auto;
    transition: height 0.3s ease;
}

header.scrolled nav ul.nav-links {
    justify-content: flex-end;
}

header.scrolled .logo-item {
    order: -1;
    margin-right: auto;
}

header.scrolled .logo-item img {
    height: 60px;
}

header nav ul li a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: lighter;
    transition: color 0.3s ease;
    display: inline-block;
    padding-bottom: 5px;
}

header.scrolled nav ul li a {
    color: white;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: #fff;
    transition: width 0.3s ease, left 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active-link::after {
    width: 100%;
    left: 0;
}

header nav ul li a:hover {
    color: #fff;
}

header nav ul li a.active-link {
    font-weight: bold;
    color: #fff !important;
}

header nav ul li.logo-item a::after {
    display: none !important;
}

/* Black Header Variant for Subpages */
header.black-header {
    background-color: black !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
}

header.black-header nav ul.nav-links {
    justify-content: flex-end !important;
}

header.black-header .logo-item {
    order: -1 !important;
    margin-right: auto !important;
}

header.black-header .logo-item img {
    height: 60px !important;
}

header.black-header nav ul li a {
    color: white !important;
}

header.black-header nav ul li a:hover {
    color: #fff !important;
}



/* style5.css - Galeria Styles */

.gallery-section {
    padding: 160px 10% 100px; /* adjusted for fixed header */
    background-color: #000;
    min-height: 100vh;
    font-family: 'ArialNova', sans-serif;
}

.gallery-header-container {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-main-title {
    font-size: 36px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.gallery-subtitle {
    font-size: 14px;
    color: #a0a0a0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(25, 25, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) brightness(0.9);
    transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1.1);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95); /* Ciemne tło */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    transform: scale(1.2) rotate(90deg);
    color: #ccc;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .lightbox-btn {
        width: 40px;
        height: 40px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 15px; font-size: 30px; }
}

/* Footer Section */
.footer {
    background: linear-gradient(to bottom, #050505 0%, #000000 100%);
    color: #fff;
    font-family: 'ArialNova', sans-serif;
    padding: 100px 40px 40px 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.footer-top {
    display: flex;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    align-items: flex-start;
}

.footer-logo {
    flex: 2;
    padding-right: 40px;
}

.footer-logo img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.05));
    transition: filter 0.4s ease;
}

.footer-logo img:hover {
    filter: drop-shadow(0 0 25px rgba(255,255,255,0.2));
}

.footer-links-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links-col a {
    position: relative;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.4s ease;
    padding-bottom: 5px;
    width: fit-content;
}

.footer-links-col a::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 50%;
    width: 0; 
    height: 1px;
    background: #fff;
    transition: width 0.4s ease, left 0.4s ease;
}

.footer-links-col a:hover {
    color: #fff;
}

.footer-links-col a:hover::after {
    width: 100%;
    left: 0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.footer-copyright {
    letter-spacing: 3px;
    text-transform: uppercase;
}

.footer-legal {
    display: flex;
    gap: 40px;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.footer-legal a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 60px;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        padding-right: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Responsywnosc - Mobile Header */
.mobile-logo, .hamburger {
    display: none;
}

@media (max-width: 992px) {
    /* Header layout for mobile and tablet: logo on the left, hamburger on the right */
    header, header.black-header {
        padding: 0 30px;
        height: 80px;
        background-color: rgba(5, 5, 5, 0.95) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    }

    header nav {
        justify-content: flex-end !important;
        flex-grow: 0;
    }

    .mobile-logo {
        display: block;
        z-index: 101;
    }

    .mobile-logo img {
        height: 40px;
        width: auto;
    }

    header nav ul.nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: left 0.4s ease;
        display: flex;
        z-index: 9999;
    }

    header nav ul.nav-links.active {
        left: 0;
    }

    header:not(.scrolled) .logo-item {
        position: static !important;
        transform: none !important;
    }

    header:not(.scrolled) nav ul.nav-links li:nth-child(3) {
        margin-right: 0;
    }

    /* Logo inside mobile menu */
    .logo-item, header.black-header .logo-item {
        order: -1 !important;
        align-self: center !important;
        margin: 0 0 40px 0 !important;
    }

    .logo-item img, header.black-header .logo-item img {
        height: 80px !important;
    }

    /* Hamburger Menu Styles */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 101;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #fff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
