:root {
    /* Główne kolory */
    --bg-dark-green: #124749;
    --text-dark-green: #124749;
    --text-light: #e5f4ef;
    --text-muted: rgba(229, 244, 239, 0.90);
    --accent: #4e907c;

    /* Tła pomocnicze */
    --bg-sidebar-end: #0a292a;
    --bg-dark-alt: #0d3536;
    --bg-footer: #092e30;

    /* Efekt szkła (glassmorphism) */
    --glass-bg: rgba(78, 144, 124, 0.08);
    --glass-border: rgba(78, 144, 124, 0.3);
    --glass-blur: blur(15px);

    /* Overlay na tło z kolażem */
    --overlay-dark: rgba(18, 71, 73, 0.85);
    --overlay-darker: rgba(9, 46, 48, 0.9);

    /* Cienie */
    --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.5);

    /* Typografia */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Layout */
    --sidebar-width: 280px;

    /* Animacje */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s ease;
}
/* =============================================
   RESET I BAZOWE STYLE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-dark-green);
    overflow-x: hidden;
}

/* =============================================
   PANEL BOCZNY (SIDEBAR)
   ============================================= */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--bg-dark-green) 0%, var(--bg-sidebar-end) 100%);
    color: var(--text-light);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    z-index: 100;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-fast);
}

.profile-container {
    margin-bottom: 3rem;
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.4rem;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.profile-pic:hover {
    transform: scale(1.05); 
}

/* --- Nawigacja w panelu bocznym --- */
.main-nav ul {
    list-style: none;
    text-align: center;
}

.main-nav li {
    margin-bottom: 1.5rem;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-nav a:hover {
    opacity: 0.7;
}

/* Kropka pod aktywnym linkiem */
.main-nav a .dot {
    font-size: 1.2rem;
    margin-top: 2px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.main-nav a.active .dot,
.main-nav a:hover .dot {
    opacity: 1;
}

/* =============================================
   GŁÓWNA TREŚĆ (PRAWA STRONA)
   ============================================= */
.content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #124749 0%, #165b5d 100%);
}

/* Wspólne ustawienia wyświetlania sekcji */
.hero-section,
.showcase-section,
.site-footer {
    position: relative;
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =============================================
   WSPÓLNY EFEKT SZKŁA (GLASSMORPHISM)
   Używany przez: .hero-box, .about-card
   ============================================= */
.hero-box,
.about-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    animation: fadeIn 1s ease-out;
}

/* =============================================
   STRONA GŁÓWNA — SEKCJA POWITALNA
   ============================================= */
.hero-section {
    min-height: 30vh;
    max-height: 60vh;
}

.hero-box {
    padding: 3rem 4rem;
    max-width: 900px;
    text-align: center;
}

.brand-title {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 2.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-weight: 600;
}

.welcome-text {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.motto {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =============================================
   STRONA GŁÓWNA — TŁO KOLAŻOWE NA CAŁĄ STRONĘ
   ============================================= */
.home-page .content {
    background: linear-gradient(
        rgba(18, 71, 73, 0.88),
        var(--overlay-darker)
    ), url('../images/kolaz.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

/* Showcase — przezroczyste (kolaż z .content prześwituje) */
.showcase-section {
    background: transparent;
}

.collage-wrapper {
    width: 100%;
    max-width: 650px;
}

.collage-wrapper a {
    display: block;
}

.circle-collage {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-smooth);
}

.circle-collage:hover {
    transform: scale(1.03);
}

/* =============================================
   STOPKA
   ============================================= */
.site-footer {
    padding: 2rem;
    flex-direction: column;
    background: var(--bg-footer);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-title {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
}

/* --- Dane kontaktowe --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.contact-info p {
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--accent);
}

.contact-info i {
    font-size: 1.1rem;
    color: var(--accent);
}

/* --- Ikony social media --- */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--text-light);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--accent);
    color: var(--text-light);
    transform: translateY(-5px);
}

.copyright {
    color: var(--text-light);
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 1.2rem;
}

/* =============================================
   ANIMACJE
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   PRZYCISK MENU MOBILNEGO (HAMBURGER)
   ============================================= */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--glass-border);
    color: var(--text-light);
    font-size: 1.8rem;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

/* =============================================
   RESPONSYWNOŚĆ — OGÓLNA (poniżej 992px)
   ============================================= */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }

    .sidebar-brand {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .sidebar {
        transform: translateX(-100%); /* Ukryj panel domyślnie poza ekranem */
        width: 300px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    .sidebar.active {
        transform: translateX(0); /* Wysuń po kliknięciu na hamburger */
    }

    .content {
        margin-left: 0; 
        width: 100%;
    }

    .hero-box {
        padding: 2rem;
    }

    .brand-title {
        font-size: 2rem;
    }

    .footer-title {
        font-size: 1.5rem;
    }

    /* Na mobile wyłączamy fixed attachment (wydajność) */
    .home-page .content {
        background-attachment: scroll;
    }
}

/* =============================================
   GALERIA METAMORFOZ
   ============================================= */

.gallery-page .content {
    padding: 0; 
    background: var(--bg-dark-green);
    position: relative; 
}


.sticky-gallery-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 12px 40px;
    z-index: 90; 
    
    background: rgba(18, 71, 73, 0.75); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border-bottom: 1px solid var(--glass-border);
}

.sticky-label {
    width: 45%; 
    text-align: center;
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.mobile-only-label {
    display: none;
}

/* --- WIERSZE ZE ZDJĘCIAMI --- */
.gallery-row-metamorphosis {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 40px 40px; 
    width: 100%;
    border-bottom: 2px solid rgba(78, 144, 124, 0.4); 
}

.gallery-row-metamorphosis:nth-child(odd)  { background-color: var(--bg-dark-green); }
.gallery-row-metamorphosis:nth-child(even) { background-color: var(--bg-dark-alt); }

.gallery-half {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

.gallery-images-pair {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.gallery-item-square {
    width: 45%; 
    aspect-ratio: 1 / 1; 
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--glass-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.gallery-item-square:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

/* Wariant kompaktowy stopki (galeria, o mnie) */
.compact-footer {
    padding: 3rem 2rem 2rem;
    min-height: auto;
    background: var(--bg-footer);
}

.compact-footer .footer-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.compact-footer .copyright {
    position: static;
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =============================================
   GALERIA — RESPONSYWNOŚĆ (poniżej 992px)
   ============================================= */
@media (max-width: 992px) {
    /* Na telefonie wywalamy szklany pasek */
    .sticky-gallery-header {
        display: none; 
    }
    
    .mobile-only-label {
        display: block; 
        font-family: var(--font-heading);
        color: var(--accent);
        font-size: 1.3rem;
        letter-spacing: 3px;
        margin-bottom: 20px;
        text-transform: uppercase;
        text-align: center;
    }

    .gallery-row-metamorphosis {
        flex-direction: column; 
        padding: 80px 15px 40px;
        gap: 50px;
    }
    
    .gallery-half { width: 100%; }
    .gallery-item-square { width: 48%; }
}

/* =============================================
   LIGHTBOX (POWIĘKSZENIE ZDJĘĆ)
   ============================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(9, 46, 48, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text-light);
    font-size: 50px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: var(--accent);
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.prev-btn:hover,
.next-btn:hover {
    color: var(--accent);
    transform: scale(1.2) translateY(-40%);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

/* --- Lightbox na mobile --- */
@media (max-width: 768px) {
    .prev-btn,
    .next-btn {
        font-size: 2rem;
        padding: 10px;
    }

    .prev-btn { left: 0; }
    .next-btn { right: 0; }

    .lightbox-img {
        max-width: 95%;
    }
}

/* =============================================
   STRONA "O MNIE"
   ============================================= */

.about-page .content {
    background: linear-gradient(
        rgba(18, 71, 73, 0.88),
        var(--overlay-darker)
    ), url('../images/kolaz.jpg') center/cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.about-section {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.about-card {
    /* Efekt szkła odziedziczony ze wspólnej reguły .hero-box, .about-card */
    padding: 60px 50px;
    max-width: 800px;
    text-align: center;
}

.about-title {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 2.2rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.title-separator {
    width: 60px;
    height: 2px;
    background-color: var(--accent);
    margin: 0 auto 40px auto;
}

.about-text {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
}

.about-motto {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1.8rem;
    font-style: italic; 
    margin: 50px 0;
    line-height: 1.4;
}

.eco-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 30px;
    border-top: 2px solid rgba(78, 144, 124, 0.5);
}

.eco-box h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.eco-box p {
    color: rgba(229, 244, 239, 0.75);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* =============================================
   STRONA "O MNIE" — RESPONSYWNOŚĆ (poniżej 768px)
   ============================================= */
@media (max-width: 768px) {
    .about-page .content {
        background-attachment: scroll;
    }

    .about-card {
        padding: 40px 20px;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .about-text {
        font-size: 1rem;
    }

    .about-motto {
        font-size: 1.4rem;
    }
}