:root {
            /*strona glowna - portfolio*/
    --max-width: 1400px;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;

            /*kolory dla tej strony*/
    --primary-color: #000000;       /* główny kolor */
    --secondary-color: #3498db;     /* drugi kolor */
    --text-1: #000000;           /* jasny tekst */
    --text-2: #2c3e50;           /* ciemny tekst */
    --bg-color: #ffffff;            /* kolor tła */
    --header-color: #ffffff;            /* kolor headera */

            /*szarosci*/
    --bialy: #ffffff;
    --ciemnoszary: #0D0D0D;
    --czarny: #000000;

            /*frutiger-aero-blue*/
    --blue0: #fceef0;           /* blue 0-4 gdzie 0 to bialy */
    --blue1: #9af0f0;           /* blue 0-4 gdzie 0 to bialy */
    --blue2: #60bcd1;           /* blue 0-4 gdzie 0 to bialy */
    --blue3: #36bbde;           /* blue 0-4 gdzie 0 to bialy */
    --blue4: #0f9ac6;           /* blue 0-4 gdzie 0 to bialy */

            /*frutiger-aero*/
    --frut0: #f6673e;           /* pomarancz */
    --frut1: #f3cf5e;           /* zolty */
    --frut2: #03c4c7;           /* jasniniebieski */
    --frut3: #02b2ab;           /* zielonkawy */
    --frut4: #0092d8;           /* niebieski */

}

.portfolio-header.scrolled {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: 10px 0;
}

/* --- Wspólne tło fullscreen dla każdej sekcji --- */
section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 100px 30px;
    box-sizing: border-box;
    overflow: hidden; /* tło nie ucieknie poza sekcję */
}

/* warstwa tła */
section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* efekt "przyklejonego" tła */

    /* opcjonalne przyciemnienie, żeby tekst był czytelny */
    background-blend-mode: screen;
    background-color: rgba(255, 255, 255, 0.75);
}

/* --- Inny obrazek dla każdej sekcji --- */
.trzydefav-section::before {
background-image: var(--bg-img);
}

.darker-section::before {
    background-image: var(--bg-img);
        background-color: rgba(255, 255, 255, 0.1);
}

/* --- Sekcja "trzydefav" --- */
.trzydefav-section {

    max-width: 1920px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 60px;

    /* fullscreen */
    min-height: 100vh;
    width: 100%;
    padding: 100px 30px;
    box-sizing: border-box;

    opacity: 0; /* Początkowo niewidoczne */
    transform: translateY(30px); /* Przesunięcie w dół */
    transition: opacity 0.8s ease, transform 0.8s ease;
}


.trzydefav-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.trzydefav-image {
    flex: 1;
    text-align: center;
}

.trzydefav-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.trzydefav-content {
    flex: 2;
}

.trzydefav-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.trzydefav-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* --- Sekcja "darker" --- */
.darker-section {

    max-width: 1920px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 60px;

    /* fullscreen */
    min-height: 100vh;
    width: 100%;
    padding: 100px 30px;
    box-sizing: border-box;

    opacity: 0; /* Początkowo niewidoczne */
    transform: translateY(30px); /* Przesunięcie w dół */
    transition: opacity 1.8s ease, transform 1.8s ease;
}


.darker-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.darker-image {
    flex: 1;
    text-align: center;
}

.darker-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.darker-content {
    flex: 2;
  text-shadow: 2px 2px 5px black;
}

.darker-content h1 {
    font-size: 2.5rem;
    color: var(--bg-color);
    margin-bottom: 20px;
}

.darker-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--bg-color);
}


/* --- mobilki) --- */
@media (max-width: 768px) {
    /* Układ kolumnowy dla sekcji */
    .trzydefav-section {
        flex-direction: column; /* Zawsze kolumnowy */
        text-align: center;
        min-height: auto; /* Wyłącz minimalną wysokość 100vh */
        padding: 40px 20px;
    }

    /* Obrazy zajmują całą szerokość */

    .trzydefav-image {
        margin-top: 110px; /* Odstęp między obrazem a tekstem */

    }
    .trzydefav-image {
        width: 70%;
        margin-bottom: 0px; /* Odstęp między obrazem a tekstem */

        align-items: center;
        gap: 60px;
        flex: 1;
        text-align: center;
    }

    .trzydefav-image img {
        width: 100%; /* Obrazy rozciągają się na całą szerokość */
        height: auto; /* Zachowaj proporcje */
        max-height: 60vh; /* Ograniczenie wysokości, aby nie zajmowały całego ekranu */
        object-fit: cover; /* Dopasowanie obrazu do kontenera */
        border-radius: 0; /* Opjonalnie: usuń zaokrąglenie, aby obraz zajmował całą szerokość */
    }

    /* Tekst pod obrazem */
    .trzydefav-content {
        width: 100%;
        margin-top: 0;
        padding: 0 10px;
    }
    .darker-section {
        flex-direction: column; /* Zawsze kolumnowy */
        text-align: center;
        min-height: auto; /* Wyłącz minimalną wysokość 100vh */
        padding: 40px 20px;
    }

    /* Obrazy zajmują całą szerokość */

    .darker-image {
        margin-top: 110px; /* Odstęp między obrazem a tekstem */

    }
    .darker-image {
        width: 70%;
        margin-bottom: 0px; /* Odstęp między obrazem a tekstem */

        align-items: center;
        gap: 60px;
        flex: 1;
        text-align: center;
    }

    .darker-image img {
        width: 100%; /* Obrazy rozciągają się na całą szerokość */
        height: auto; /* Zachowaj proporcje */
        max-height: 60vh; /* Ograniczenie wysokości, aby nie zajmowały całego ekranu */
        object-fit: cover; /* Dopasowanie obrazu do kontenera */
        border-radius: 0; /* Opjonalnie: usuń zaokrąglenie, aby obraz zajmował całą szerokość */
    }

    /* Tekst pod obrazem */
    .darker-content {
        width: 100%;
        margin-top: 0;
        padding: 0 10px;
    }
}
