/* === GŁÓWNE STYLE I ZMIENNE === */

:root {
    --primary-color: #004225;       /* Butelkowa zieleń */
    --secondary-color: #d4af37;     /* Złoty */
    --background-color: #fdfaf5;    /* Czysta biel */
    --text-color: #2c3e50;          /* Ciemny, elegancki grafit (dla tekstu) */
    --text-light: #fdfaf5;          /* Kremowa biel (dla tekstu na ciemnym tle) */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Włącza płynne przewijanie */
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    text-align: center;
}

/* WKLEJ TEN KOD DO PLIKU style.css, PRZED SEKCJA @media */

/* === SEKCJA WRZUCANIA ZDJĘĆ PRZEZ GOŚCI === */

.photo-upload-section {
    position: relative;
    padding-top: 120px; /* Robimy więcej miejsca na separator */
    border-bottom: none; /* Usuwamy dolną ramkę, jeśli istnieje */
}

/* Ozdobny, złoty separator na górze sekcji */
.photo-upload-section::before {
    content: '';
    position: absolute;
    top: 60px; /* Pozycjonujemy go między tytułem a górną krawędzią */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--secondary-color);
    opacity: 0.5;
}

/* 2. NOWY, WIDOCZNY STYL DLA PRZYCISKU */
.photo-upload-section .gallery-button {
    background-color: var(--secondary-color); /* Złote tło */
    color: var(--primary-color); /* Ciemnozielony tekst */
    font-weight: bold;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); /* Stan początkowy dla animacji */
    animation: pulse-button 2.5s infinite; /* Aplikujemy animację */
}

/* Poprawiamy efekt hover dla nowego przycisku */
.photo-upload-section .gallery-button:hover {
    background-color: #f0c340; /* Jaśniejszy złoty */
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
}

/* 3. "FAJNA" ANIMACJA DLA PRZYCISKU */
@keyframes pulse-button {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* === KONTENER I SEKCJE === */

/* WKLEJ TEN KOD TUŻ NAD SEKCJA "STOPKA" */

/* === NOWA SEKCJA Z GRĄ === */
.game-promo-section {
    background-color: #f8f8f8;
}
.game-promo-container {
     display: flex;
    flex-direction: column; /* Ustawia układ pionowy (jeden pod drugim) */
    align-items: center;   /* Centruje wszystko w poziomie */
    gap: 20px;             /* Dodaje odstęp między obrazkiem a tekstem */
    text-align: center;    /* Centruje tekst wewnątrz */
}
.game-promo-image {
    flex: 1;
}
.game-promo-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.game-promo-text {
    flex: 1.5;
}
.game-promo-text h2 {
    color: var(--primary-color);
}
.game-promo-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.gallery-button {
    text-decoration: none;
    display: inline-block;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 20px;
    border-bottom: 1px solid #eee;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

/* === NAWIGACJA === */
/* ZASTĄP ISTNIEJĄCĄ SEKCJĘ NAWIGACJI W style.css TYM KODEM */

/* === NAWIGACJA === */
.navbar {
    background-color: var(--primary-color);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Delikatna dolna krawędź */
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: flex-end; /* Domyślnie przycisk po prawej */
    align-items: center;
}

/* --- Style dla Wersji Mobilnej (domyślne) --- */

/* Kontener na linki (wysuwane menu) */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Początkowo schowane za prawą krawędzią */
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.4s ease-in-out;
}

/* Stan aktywny - menu jest wysunięte */
.navbar.active .nav-links {
    right: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem; /* Większe litery w menu mobilnym */
    font-family: var(--font-serif);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animacja pojawiania się linków po wysunięciu menu */
.navbar.active .nav-links a {
    opacity: 1;
    transform: translateX(0);
}
/* Opóźnienie animacji dla kolejnych linków */
.navbar.active .nav-links a:nth-child(1) { transition-delay: 0.2s; }
.navbar.active .nav-links a:nth-child(2) { transition-delay: 0.3s; }
.navbar.active .nav-links a:nth-child(3) { transition-delay: 0.4s; }
.navbar.active .nav-links a:nth-child(4) { transition-delay: 0.5s; }


/* Przycisk Hamburgera */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Zawsze na wierzchu */
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color); /* ZMIANA TUTAJ */
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Animacja Hamburgera do 'X' */
.navbar.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.navbar.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.navbar.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Style dla Wersji Desktop (od 768px w górę) --- */
@media (min-width: 768px) {
    .navbar {
        justify-content: center; /* Centrujemy nawigację na desktopie */
    }

    /* Ukrywamy hamburgera na desktopie */
    .hamburger {
        display: none;
    }

    /* Przywracamy normalny wygląd menu */
    .nav-links {
        color: var(--text-light); /* ZMIANA TUTAJ (używamy kremowej bieli) */
    font-size: 1rem;
    font-family: var(--font-sans);
    padding: 5px 15px;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
    opacity: 1;
    transform: none;
        position: static;
        height: auto;
        width: auto;
        max-width: none;
        background-color: transparent;
        flex-direction: row;
        gap: 15px;
        box-shadow: none;
        transition: none; /* Wyłączamy animację wysuwania */
    }

    .nav-links a {
        color: var(--text-light);
        font-size: 1rem;
        font-family: var(--font-sans);
        padding: 5px 15px;
        border-radius: 20px;
        transition: background-color 0.3s, color 0.3s;
        /* Resetujemy animacje z wersji mobilnej */
        opacity: 1;
        transform: none;
    }

    .nav-links a:hover {
        background-color: var(--secondary-color); /* ZMIANA TUTAJ (złote tło po najechaniu) */
        color: var(--primary-color); /* Ciemny tekst na złotym tle */
    }
    /* WKLEJ TEN KOD W SEKCJI @media */
/* ZASTĄP TĘ REGUŁĘ W SEKCJI @media W PLIKU style.css */
.game-promo-container {
    flex-direction: column; /* Ustawia układ pionowy */
    text-align: center;   /* Centruje tekst wewnątrz */
}

/* Dodajemy tę nową regułę, aby wyśrodkować przycisk */
.game-promo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

}

/* === SEKCJA GŁÓWNA (HERO) === */
/* === SEKCJA GŁÓWNA (HERO) Z TŁEM WIDEO === */
.hero {
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* Kluczowe dla pozycjonowania wideo i nakładki */
    overflow: hidden; /* Ukrywa wszystko, co wychodzi poza sekcję */
}

/* Nakładka z kolorem, która przyciemnia wideo i zapewnia czytelność */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 28, 0.65); /* Półprzezroczysta butelkowa zieleń */
    z-index: 1; /* Nakładka jest nad wideo, ale pod tekstem */
}

/* Styl dla elementu wideo */
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0; /* Wideo jest na samym spodzie */
}

/* Upewniamy się, że gwiazdki i tekst są na samej górze */
.stars-bg {
    z-index: 2; /* Gwiazdki nad nakładką */
}
.hero-content {
    position: relative;
    z-index: 2; /* Treść nad nakładką */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Wzmacniamy cień dla lepszej czytelności */
}

/* Pozostałe style dla h1, subtitle, date zostają bez zmian,
   więc nie trzeba ich kopiować, jeśli już je masz */
.hero h1 { font-size: 3.5rem; }
.hero .subtitle { font-size: 1.8rem; font-family: var(--font-serif); margin: 10px 0; }
.hero .date{
     font-size: 1.2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 10px 20px; /* Lekko powiększamy padding */
    border-radius: 5px;
    margin-top: 15px;
    display: inline-block;
    /* --- NOWE LINIE PONIŻEJ --- */
    position: relative; /* Niezbędne do działania animacji */
    overflow: hidden;   /* Ukrywa błysk poza obszarem daty */
    z-index: 1;
}

/* === LICZNIK MAŁŻEŃSTWA === */
/* ZASTĄP CAŁĄ TĘ SEKCJĘ W PLIKU style.css */

/* === LICZNIK MAŁŻEŃSTWA (NOWY, STYLOWY WYGLĄD) === */

.counter-section {
    background-color: var(--primary-color); /* Tło w kolorze butelkowej zieleni */
    color: var(--text-light); /* Jasny kolor dla nagłówka "Jesteśmy małżeństwem..." */
    padding: 100px 20px;
    position: relative;
    /* Subtelny efekt światła w tle */
    background-image: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.1), transparent 70%);
}

#marriage-counter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Zwiększamy odstęp */
    margin-top: 40px;
}

/* Nowy wygląd "magicznego zegara" */
.time-box {
    background: rgba(255, 255, 255, 0.05); /* Lekko prześwitujące tło */
    border: 2px solid rgba(255, 255, 255, 0.1); /* Delikatna ramka */
    border-radius: 50%; /* Kluczowa zmiana: robimy z niego okrąg */
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 212, 59, 0.1); /* Cień i wewnętrzna poświata */
    width: 140px;   /* Ustawiamy stałą szerokość */
    height: 140px;  /* i wysokość, aby był idealnym kołem */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 4s ease-in-out infinite; 
}

.time-box:hover {
    transform: translateY(-10px) scale(1.05); /* Efekt uniesienia po najechaniu */
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 212, 59, 0.2);
}

/* Styl dla cyfr */
.time-box span {
    color: var(--secondary-color); /* Złoty kolor cyfr */
    font-size: 3rem; /* Powiększamy cyfry */
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-serif);
}

/* Styl dla etykiet (Dni, Godzin, etc.) */
.time-box p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 1px; /* Zwiększamy odstępy między literami */
    text-transform: uppercase; /* Piszemy wielkimi literami */
}

/* Mniejsza czcionka dla milisekund, aby się zmieściły */
.milliseconds-box span {
    font-size: 2.2rem;
}

/* Poprawki responsywne dla mniejszych ekranów */
@media (max-width: 768px) {
    .time-box {
        width: 120px;
        height: 120px;
    }
    .time-box span {
        font-size: 2.2rem;
    }
    .milliseconds-box span {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    #marriage-counter {
        gap: 15px;
    }
    .time-box {
        width: 90px;
        height: 90px;
    }
    .time-box span {
        font-size: 1.5rem;
    }
    .milliseconds-box span {
        font-size: 1.2rem;
    }
    .time-box p {
        font-size: 0.7rem;
    }
}

/* === SEKCJA HISTORII I WSPOMNIEŃ === */
.story-text {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 20px auto;
}
.story-date {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.memories-section {
    background-color: #f4f4f4;
}

.event {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* === STOPKA === */
.footer {
    padding: 40px 20px;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    background-color: var(--primary-color);
    color: white;
}

/* === RESPONSIVE DESIGN (DLA TELEFONÓW) === */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero .subtitle {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .navbar {
        gap: 5px;
    }
    .navbar a {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
    #marriage-counter {
        gap: 10px;
    }
    .time-box {
        min-width: 80px;
        padding: 15px 10px;
    }
    .time-box span {
        font-size: 1.8rem;
    }
    .milliseconds-box span {
        font-size: 1.5rem;
    }
}
/* DODAJ TEN KOD NA KOŃCU PLIKU style.css */

/* === ANIMACJA ZŁOTEGO PYŁU W MENU MOBILNYM === */

.golden-dust-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Kliknięcia będą przechodzić "przez" animację */
    z-index: -1; /* Umieszczamy pył pod linkami */
    overflow: hidden;
}

/* Definicja animacji spadania pyłu */
@keyframes fall-dust {
    0% {
        transform: translateY(-10vh) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(20px); /* Dodajemy lekki ruch w bok */
        opacity: 0;
    }
}

/* Styl pojedynczej drobinki pyłu */
.golden-dust-container i {
    position: absolute;
    top: -5%; /* Startują nad ekranem */
    display: block;
    background-color: var(--secondary-color); /* Używamy naszego złotego koloru */
    border-radius: 50%;
    opacity: 0; /* Domyślnie niewidoczne */
    box-shadow: 0 0 8px var(--secondary-color), 0 0 12px #fff; /* Efekt poświaty */
}

/* Uruchomienie animacji tylko gdy menu jest aktywne */
.navbar.active .golden-dust-container i {
    animation-name: fall-dust;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Losowość jest kluczem!
   Dla każdej drobinki (<i>) ustawiamy inne położenie, rozmiar, 
   czas trwania animacji i opóźnienie, aby efekt był naturalny.
*/
.golden-dust-container i:nth-child(1) { left: 10%; width: 2px; height: 2px; animation-duration: 5s; animation-delay: 0s; }
.golden-dust-container i:nth-child(2) { left: 20%; width: 3px; height: 3px; animation-duration: 6s; animation-delay: -1s; }
.golden-dust-container i:nth-child(3) { left: 30%; width: 1px; height: 1px; animation-duration: 4s; animation-delay: -2.5s; }
.golden-dust-container i:nth-child(4) { left: 40%; width: 2px; height: 2px; animation-duration: 7s; animation-delay: -4s; }
.golden-dust-container i:nth-child(5) { left: 50%; width: 3px; height: 3px; animation-duration: 5.5s; animation-delay: -1.5s; }
.golden-dust-container i:nth-child(6) { left: 60%; width: 1px; height: 1px; animation-duration: 8s; animation-delay: -5s; }
.golden-dust-container i:nth-child(7) { left: 70%; width: 2px; height: 2px; animation-duration: 4.5s; animation-delay: -0.5s; }
.golden-dust-container i:nth-child(8) { left: 80%; width: 3px; height: 3px; animation-duration: 6.5s; animation-delay: -3s; }
.golden-dust-container i:nth-child(9) { left: 90%; width: 1px; height: 1px; animation-duration: 5s; animation-delay: -2s; }
.golden-dust-container i:nth-child(10) { left: 5%; width: 2px; height: 2px; animation-duration: 7.5s; animation-delay: -3.5s; }
.golden-dust-container i:nth-child(11) { left: 15%; width: 3px; height: 3px; animation-duration: 4.2s; animation-delay: -1.2s; }
.golden-dust-container i:nth-child(12) { left: 25%; width: 1px; height: 1px; animation-duration: 6.8s; animation-delay: -4.8s; }
.golden-dust-container i:nth-child(13) { left: 35%; width: 2px; height: 2px; animation-duration: 5.3s; animation-delay: -0.3s; }
.golden-dust-container i:nth-child(14) { left: 45%; width: 3px; height: 3px; animation-duration: 7.2s; animation-delay: -2.2s; }
.golden-dust-container i:nth-child(15) { left: 55%; width: 1px; height: 1px; animation-duration: 4.7s; animation-delay: -3.7s; }
.golden-dust-container i:nth-child(16) { left: 65%; width: 2px; height: 2px; animation-duration: 6.3s; animation-delay: -1.3s; }
.golden-dust-container i:nth-child(17) { left: 75%; width: 3px; height: 3px; animation-duration: 8.2s; animation-delay: -5.2s; }
.golden-dust-container i:nth-child(18) { left: 85%; width: 1px; height: 1px; animation-duration: 5.8s; animation-delay: -0.8s; }
.golden-dust-container i:nth-child(19) { left: 95%; width: 2px; height: 2px; animation-duration: 6.7s; animation-delay: -2.7s; }
.golden-dust-container i:nth-child(20) { left: 2%; width: 1px; height: 1px; animation-duration: 8.5s; animation-delay: -4.5s; }
/* DODAJ TEN KOD NA KOŃCU PLIKU style.css */

/* Definicja błyszczącej nakładki */
.hero .date::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Zaczyna poza elementem */
    width: 75%;
    height: 100%;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg); /* Pochylenie błysku */
    animation: shimmer 5s infinite 2s; /* Aplikacja animacji */
}

/* Definicja animacji (klatki kluczowe) */
@keyframes shimmer {
    100% {
        left: 125%; /* Kończy poza elementem */
    }
}
/* DODAJ TEN KOD NA KOŃCU PLIKU style.css */

/* Definicja animacji pulsowania */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 212, 59, 0.1);
    }
    50% {
        transform: scale(1.05); /* Lekkie powiększenie w połowie animacji */
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 212, 59, 0.25); /* Mocniejsza poświata */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 212, 59, 0.1);
    }
}

/* Opóźnienia dla kolejnych kół, aby stworzyć efekt fali */
#marriage-counter .time-box:nth-child(1) { animation-delay: 0s; }
#marriage-counter .time-box:nth-child(2) { animation-delay: 0.1s; }
#marriage-counter .time-box:nth-child(3) { animation-delay: 0.2s; }
#marriage-counter .time-box:nth-child(4) { animation-delay: 0.4s; }
#marriage-counter .time-box:nth-child(5) { animation-delay: 0.5s; }


.story-section {
    color: white;
    padding: 100px 20px;
    position: relative; /* Kluczowe dla animacji */
    overflow: hidden;   /* Ukrywa animację poza sekcją */
    background-color: #1a2d27; /* Nasza bardzo ciemna zieleń jako tło */
}

.article-container {
    max-width: 800px;
    text-align: left;
}

.article-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8); /* Zwiększona czytelność */
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
}

.article-intro {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
}

.story-divider {
    border: none;
    height: 1px;
    background-color: var(--secondary-color);
    opacity: 0.5;
    margin: 40px auto;
}

.interview-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.interview-body strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.interview-body em {
    color: rgba(255, 255, 255, 0.8); /* Zwiększona czytelność */
    font-style: italic;
}

.pull-quote {
    font-size: 2rem;
    font-family: var(--font-serif);
    color: var(--text-light);
    text-align: center;
    border-left: 4px solid var(--secondary-color);
    padding: 10px 30px;
    margin: 50px auto;
    max-width: 80%;
}

.article-outro {
    font-size: 1.1rem;
    font-style: italic;
}

.article-signature {
    text-align: right;
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--secondary-color);
    margin-top: 40px;

}
/* DODAJ TEN KOD NA KOŃCU PLIKU style.css */

/* === ANIMOWANE TŁO "CHMUR" DLA SEKCJI STORY === */

/* Tworzymy dwa "obłoki" za pomocą pseudo-elementów ::before i ::after */
.story-section::before,
.story-section::after {
    content: '';
    position: absolute;
    z-index: 0; /* Umieszczamy je tuż nad tłem, ale pod wszystkim innym */
    border-radius: 50%;
    filter: blur(100px); /* Kluczowy efekt rozmycia, który tworzy "chmurę" */
    opacity: 0.15; /* Delikatna przezroczystość */
}

/* Pierwsza chmura (złota) */
.story-section::before {
    background-color: var(--secondary-color);
    width: 600px;
    height: 600px;
    top: -20%;
    left: -20%;
    animation: move-cloud 35s linear infinite alternate;
}

/* Druga chmura (biała) */
.story-section::after {
    background-color: var(--text-light);
    width: 500px;
    height: 500px;
    bottom: -20%;
    right: -20%;
    animation: move-cloud 45s linear infinite alternate;
}

/* Definicja animacji poruszania się chmur */
@keyframes move-cloud {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, -100px) rotate(180deg);
    }
}
.story-section {
    color: white;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    background-color: #1a2d27;
    background-size: 20px 20px;
}

.article-container { max-width: 800px; text-align: left; }
.article-meta { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 30px; display: flex; justify-content: space-between; }
.article-intro { font-size: 1.2rem; font-style: italic; color: var(--text-light); line-height: 1.7; }
.story-divider { border: none; height: 1px; background-color: var(--secondary-color); opacity: 0.5; margin: 40px auto; }
.interview-body p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }
.interview-body strong { color: var(--secondary-color); display: block; margin-bottom: 5px; font-size: 1.2rem; }
.interview-body em { color: rgba(255, 255, 255, 0.8); font-style: italic; }
.pull-quote { font-size: 2rem; font-family: var(--font-serif); color: var(--text-light); text-align: center; border-left: 4px solid var(--secondary-color); padding: 10px 30px; margin: 50px auto; max-width: 80%; }
.article-outro { font-size: 1.1rem; font-style: italic; }
.article-signature { text-align: right; font-size: 1.5rem; font-family: var(--font-serif); color: var(--secondary-color); margin-top: 40px; }

/* === ANIMACJA POJAWIANIA SIĘ (POWRÓT DO SPRAWDZONEJ WERSJI) === */

/* Stan początkowy dla WSZYSTKICH elementów 'reveal' */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Stan aktywny - element staje się widoczny */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* DODAJ TEN KOD NA KOŃCU PLIKU style.css */

/* === NOWE STYLE DLA SEKCJI "WSPOMNIENIA" I SLIDERA === */

/* NOWE STYLE DLA GALERII W OKNIE MODALNYM */

.memories-section {
    background-color: #f8f8f8;
    color: var(--text-color);
}

.gallery-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.3s;
}

.gallery-button:hover {
    background-color: #005a34; /* Ciemniejsza zieleń */
    transform: translateY(-3px);
}

/* Styl dla okna modalnego (pełnoekranowa galeria) */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Półprzezroczyste czarne tło */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Domyślnie ukryte */
    pointer-events: none; /* Domyślnie nieklikalne */
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* Przycisk zamknięcia 'X' */
.close-gallery-button {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
}

/* Style dla slidera WEWNĄTRZ okna modalnego */
.gallery-modal .swiper {
    width: 95vw;
    height: 90vh;
}

.gallery-modal .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-modal .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* KLUCZOWE: Gwarantuje, że całe zdjęcie jest widoczne */
}

/* Nowe kolory dla strzałek i paginacji na ciemnym tle */
.gallery-modal .swiper-button-prev,
.gallery-modal .swiper-button-next {
    color: white !important;
}

.gallery-modal .swiper-pagination {
    color: white;
    font-size: 1.2rem;
    bottom: 20px !important;
}