/* --- ZMIENNE I RESET --- */
:root {
    --bg-dark: #1a1a1a;
    --bg-card: #2B2C2B;
    --text-main: #f2f2f2;
    --text-muted: #b0b0b0;
    --accent: #ffdcb2;
    --nav-height: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* --- FULL PAGE SCROLL (Globalny) --- */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: scroll;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    height: 100%;
    overflow: hidden;
}

/* Kontener główny */
.snap-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Pojedyncza sekcja */
.snap-section {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden; 
}

/* Treść przewijalna wewnątrz sekcji */
.scrollable-content {
    max-height: 100%;
    overflow-y: auto;
    width: 100%;
    padding: 20px;
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;
    position: relative; /* Ważne dla sticky */
}
.scrollable-content::-webkit-scrollbar { display: none; }

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    background: rgba(26, 26, 26, 0.95);
    z-index: 1000;
    border-bottom: 1px solid #333;
    backdrop-filter: blur(5px);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    height: 100%; padding: 0 20px; max-width: 1200px; margin: 0 auto;
}
.logo { font-family: 'Roboto Slab', serif; color: var(--accent); font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.nav-menu { display: flex; gap: 25px; list-style: none; }
.nav-menu a { text-decoration: none; color: var(--text-main); font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--accent); }
.nav-controls { display: flex; gap: 15px; align-items: center; }
.lang-btn { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 4px 10px; cursor: pointer; border-radius: 4px; font-size: 0.8rem; transition: 0.3s; }
.lang-btn:hover { background: var(--accent); color: #000; }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--accent); margin: 5px 0; }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('photo/tlo/section0.jpg');
    background-size: cover; background-position: center; text-align: center; align-items: center;
}
.hero-content h1 { font-family: 'Roboto Slab', serif; font-size: 3.5rem; color: var(--accent); margin-bottom: 10px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; }
.btn-primary { display: inline-block; padding: 12px 30px; background: var(--accent); color: #000; font-weight: 700; border-radius: 30px; text-decoration: none; transition: 0.3s; }
.btn-primary:hover { transform: translateY(-2px); background: #fff; }

/* --- GALERIA --- */
.section-title { text-align: center; color: var(--accent); font-family: 'Roboto Slab', serif; font-size: 2rem; margin-bottom: 30px; }

/* NOWOŚĆ: Sticky Filters */
/* --- GALERIA --- */
/* ... (inne style) ... */

.gallery-filters { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 20px;
    
    /* Sticky Logic */
    position: -webkit-sticky; 
    position: sticky;
    top: 0; 
    
    /* POPRAWKA: Ustaw wyższy z-index, np. 100, aby mieć pewność */
    z-index: 100; /* Zmieniono z 10 na 100 */ 
    
    /* Zachowaj tło, ale dla pewności użyj stałego koloru */
    background-color: #1a1a1a; /* Użycie stałej wartości zamiast zmiennej (możesz zostawić var(--bg-dark) jeśli działa) */
    
    padding: 10px 0; 
    border-bottom: 1px solid #333; 
}

.filter-btn { background: transparent; border: 1px solid #555; color: #bbb; padding: 8px 20px; cursor: pointer; border-radius: 20px; font-size: 0.9rem; transition: 0.3s; }
.filter-btn.active, .filter-btn:hover { border-color: var(--accent); color: var(--accent); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 100px; 
}

/* Animacja */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.gallery-item { opacity: 0; aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer; border: 1px solid #333; background: #000; position: relative; }
.gallery-item.animate { animation: fadeInUp 0.6s ease-out forwards; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; opacity: 0.9; }
.gallery-item:hover img { transform: scale(1.1); opacity: 1; }

/* --- O MNIE & KONTAKT --- */
.section-about, .section-contact { background: var(--bg-card); }
.about-text, .contact-box { max-width: 800px; margin: 0 auto; text-align: center; }
.contact-box { font-size: 1.1rem; }
.contact-box a { color: var(--accent); text-decoration: none; }
.timeline { text-align: left; margin-top: 30px; list-style: none; }
.timeline li { border-left: 2px solid var(--accent); padding-left: 15px; margin-bottom: 15px; }
.footer-note { margin-top: 50px; font-size: 0.8rem; color: #666; border-top: 1px solid #333; padding-top: 20px; }

/* --- LIGHTBOX (MODAL) --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #1a1a1a; 
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.lightbox.open { display: flex; }
.lightbox-content { text-align: center; position: relative; max-width: 95%; max-height: 95%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-img { 
    max-height: 80vh; 
    max-width: 100%; 
    border: 1px solid #333; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5); 
}
.lightbox-caption { color: #fff; margin-top: 15px; padding: 0 20px; }
.lb-title { color: var(--accent); font-size: 1.2rem; }
.lightbox-close { position: absolute; top: 20px; right: 20px; font-size: 40px; color: #fff; background: none; border: none; cursor: pointer; z-index: 2001; }

/* Strzałki Lightboxa */
.lightbox-prev, .lightbox-next { 
    position: absolute; 
    top: 50%; transform: translateY(-50%); 
    background: rgba(0,0,0,0.5); /* Lekkie tło pod strzałką dla lepszej widoczności */
    border: none; color: #fff; 
    font-size: 40px; 
    cursor: pointer; 
    padding: 10px 20px; 
    z-index: 2001; 
    transition: 0.2s; 
}
.lightbox-prev { left: 0; } 
.lightbox-next { right: 0; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--accent); background: rgba(0,0,0,0.8); }

/* --- MOBILE FIXES --- */
@media (max-width: 768px) {
    /* SNAP + Internal Scroll */
    .snap-container {
        scroll-snap-type: y mandatory;
        height: 100dvh;
    }
    
    .snap-section {
        height: 100dvh;
        width: 100%;
        scroll-snap-align: start;
        display: flex;
        padding-top: 70px;
    }

    .scrollable-content {
        height: 100%;
        overflow-y: auto;
        padding: 0 15px;
    }

    /* Nawigacja */
    .hamburger { display: block; }
    .nav-menu {
        position: fixed; top: var(--nav-height); right: -100%; width: 75%; height: calc(100vh - var(--nav-height));
        background: #1a1a1a; flex-direction: column; align-items: center; justify-content: flex-start;
        padding-top: 40px; gap: 30px; transition: 0.3s ease-in-out; border-left: 1px solid #333;
    }
    .nav-menu.active { right: 0; }

    /* Galeria Mobile */
    .hero-content h1 { font-size: 2.2rem; }
    .gallery-filters { gap: 8px; }
    .filter-btn { flex-grow: 1; text-align: center; font-size: 0.8rem; padding: 6px 10px; }
    
    .gallery-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
        padding-bottom: 150px; 
    }

    /* Lightbox Mobile - ZMIANA: Strzałki widoczne */
    .lightbox-prev, .lightbox-next { 
        display: block; /* Wymuszamy widoczność */
        font-size: 30px;
        padding: 15px 10px;
        background: transparent; /* Bez tła na mobile żeby nie zasłaniać za dużo */
    }
}
/* ========================================= */
/* === STYLIZACJA PASKA PRZEWIJANIA (SCROLLBAR) === */
/* ========================================= */

/* 1. Dla przeglądarek bazujących na WebKit (Chrome, Edge, Safari) */

/* Cały pasek */
::-webkit-scrollbar {
    width: 10px; /* Szerokość paska */
}

/* Tło paska */
::-webkit-scrollbar-track {
    background: #1a1a1a; /* Bardzo ciemne tło (prawie czarne) */
}

/* Suwak (część, którą można przesuwać) */
::-webkit-scrollbar-thumb {
    background-color: #444444; /* Ciemny szary kolor suwaka */
    border-radius: 6px;
    border: 3px solid #1a1a1a; /* Wcięcie/ramka w kolorze tła paska */
}

/* Suwak po najechaniu myszką */
::-webkit-scrollbar-thumb:hover {
    background-color: #666666; /* Nieco jaśniejszy ciemny szary na hover */
}


/* 2. Dla Firefoxa */
body {
    /* Ustawia kolor suwaka (#444444) i kolor tła paska (#1a1a1a) */
    scrollbar-color: #444444 #1a1a1a;
    /* Ustawia cieńszą szerokość paska */
    scrollbar-width: thin;
}