/* Zmienne CSS dla lekkiego, niebieskiego motywu */
:root {
    --primary-color: #6CA0DC; /* Jasny, elegancki niebieski */
    --primary-hover: #5A8FCB;
    --secondary-color: #A3C4E5;
    --accent-color: #D1E4F9;
    --background-color: #F8FBFF;
    --surface-color: rgba(255, 255, 255, 0.85);
    --text-color: #2C3E50;
    --text-light: #596B7D;
    --shadow-sm: 0 4px 6px rgba(108, 160, 220, 0.1);
    --shadow-md: 0 10px 20px rgba(108, 160, 220, 0.15);
    --shadow-lg: 0 20px 40px rgba(108, 160, 220, 0.2);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset i podstawowe ustawienia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh; /* Nowoczesne zabezpieczenie dla pasków adresu na mobile */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('Photo/Plener/foto (12 z 132).jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(248, 251, 255, 0.2), rgba(248, 251, 255, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem 4rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 90%;
    animation: fadeInDown 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Video Section */
.video-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.video-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: #000;
}

.video-container video {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 2rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.gallery-item.hide {
    display: none;
}

/* Wariacje dla urozmaicenia siatki */
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(108, 160, 220, 0.7), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(248, 251, 255, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--primary-hover);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--surface-color);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
    padding: 1rem;
}

.lightbox-nav:hover {
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Footer & Legal */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Cookie Banner (Wymóg PG Tech Studio) */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    box-shadow: 0 -5px 20px rgba(108, 160, 220, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 1px solid var(--accent-color);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--text-color);
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-cookie {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-left: 2rem;
    white-space: nowrap;
}

.btn-cookie:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Animacje */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsywność - POPRAWKA GŁÓWNEGO ZDJĘCIA NA MOBILE */
@media (max-width: 768px) {
    /* Wyłącza parallax, centruje obraz, dostosowuje wielkość */
    .hero {
        background-attachment: scroll; 
        background-position: center center;
        min-height: 400px;
    }

    /* Dopasowanie marginesów dla treści tekstu, by dobrze wyglądał na wąskim ekranie */
    .hero-content {
        padding: 2rem;
    }

    .hero-content h1 { 
        font-size: 2.5rem; 
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .btn-cookie { 
        margin-left: 0; 
        width: 100%; 
    }
    
    .masonry-grid { 
        grid-template-columns: 1fr;
    }
    
    .gallery-item.wide { grid-column: auto; }
    .gallery-item.tall { grid-row: auto; }
}

/* YouTube iframe */
.video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: var(--radius);
    display: block;
}

/* Przycisk Pobierz Wszystkie */
.btn-download-all {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: var(--transition);
}
.btn-download-all:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: white;
}

/* Przycisk Pobierz Jedno (Lightbox) */
.lightbox-download {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--primary-color);
    z-index: 1010;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
}
.lightbox-download:hover {
    color: white;
    transform: scale(1.1);
}