/* --------------------------------------------- Resetowanie marginesów i stylów -----------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----------------------------------------------------- Ustawienia ogólne -----------------------------------------------*/
body {
    font-family: 'century-gothic', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #111111 !important; /* Kolor tła */
    color: whitesmoke; /* Kolor tekstu */
}

/* -----------------------------------------------------  Header (Navbar) -------------------------------------------------*/
/* ---------------------------------------------------- Header - DESKTOP --------------------------------------------------*/
.navbar {
    color: whitesmoke;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    font-family: 'century-gothic', sans-serif; /* Czcionka century */
}
.navbar-brand img {
    height: 60px;
}
.nav-link {
    color: whitesmoke;
    transition: color 0.3s ease;
    font-family: 'century-gothic', sans-serif; /* Czcionka century */
}
.nav-link:hover,
.nav-link.active {
    color: #a800e4 !important; /* Zmiana koloru linku po najechaniu */
}
[data-scroll] {
    cursor: pointer; /* Zmienia kursor na "rączkę" */
    text-decoration: none; /* Opcjonalne - usuwa podkreślenie */
}
/* -- Sekcje -- */
.section {
    padding: 0;
    text-align: center;
    width: 100%;
}

/* Stylizacja przycisku zmiany języka */
.btn-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    font-size: 14px;
    font-weight: bold;
    color: whitesmoke;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px; /* Dynamiczny rozmiar */
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Efekt po najechaniu */
.btn-lang:hover {
    color: #a800e4; /* Zmiana koloru tekstu */
}

/* Desktop - poprawiona pozycja guzika */
#lang-switch {
    display: flex;
    position: absolute;
    right: 15px; /* Odstęp od prawej */
    top: 50%; /* Wyrównanie względem ikon */
    transform: translateY(-50%); /* Centrowanie w pionie */
    z-index: 10; /* Na wierzchu */
}

/* Mobile - poprawiona pozycja guzika */
#lang-switch-mobile {
    display: flex;
    position: absolute;
    right: 15px; /* Odstęp od prawej */
    top: 27px; /* Ustawienie przycisku w prawym górnym rogu */
    transform: none; /* Usunięcie centrowania w pionie */
    z-index: 10; /* Na wierzchu */
}

/* Dostosowanie pozycji przycisku po rozwinięciu menu */
.collapse.show + .social-icons {
    position: absolute;
    right: 15px;
    top: 10px; /* Dopasowanie do ikon */
    transform: none; /* Usunięcie centrowania w pionie */
}

/* Desktop - poprawiona pozycja ikon */
.social-icons.d-none.d-lg-flex {
    margin-right: 50px; /* Przesunięcie ikon w lewo */
}


/* Ukrycie guzika mobilnego na desktopie */
@media (min-width: 992px) {
    #lang-switch-mobile {
        display: none;
    }
}

/*-------------------------------------------------- Header - MOBILE -----------------------------------------------*/
/* -- Ogólne style nawigacji -- */
.navbar {
    background-color: #201037;
    color: white;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler-icon {
    background-repeat: no-repeat;
    background-size: contain;
    width: 24px;
    height: 24px;
    box-shadow: none; /* Usunięcie obramowania */
}

/* Mobile - poprawiona pozycja ikon */
.d-lg-none.social-icons {
    margin-right: 50px; /* Przesunięcie ikon w lewo */
}

.social-icons img {
    height: 30px;
}

@media (max-width: 991.98px) {
    .navbar-brand {
        position: sticky;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1050;
    }

    .navbar-toggler {
        z-index: 1051;
    }

    .collapse.show + .social-icons {
        position: absolute;
        right: 15px;
        top: 10px;
    }

    .social-icons {
        justify-content: flex-end;
    }

    .section-1 h1 {
        margin-top: 80px; /* Dodanie odstępu od navbara */
    }

    .section-1 {
        margin-bottom: 40px; /* Dodanie odstępu poniżej sekcji */
    }
}

/* Ukrycie guzika desktopowego na mobilnych */
@media (max-width: 991px) {
    #lang-switch {
        display: none;
    }
}

/*----------------------------------------------------- SEKCJA 1 ------------------------------------------------------------*/

/* -- Sekcja -- 1 */
.section-1 {
    min-height: 91vh;
    color: whitesmoke;
    background-image: url('files/loudex_logo_section1.png');
    background-size: 20vw;
    background-repeat: no-repeat; 
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: century-gothic, sans-serif; /* Czcionka century */
}
.section-1 h1 {
    font-size: 5vw; /* Tekst reaguje na szerokość okna */
    text-align: center;
    margin-bottom: 100px;   
}
.section-1 p {
    font-size: 20px;
    text-align: center;
    max-width: 80vw; /* Ograniczenie szerokości treści */
    margin: 0 auto; /* Wyśrodkowanie treści */
}

/*----------------------------------------------------------- SEKCJA 2 ------------------------------------------------------*/
/* ---------------------------------------------------- SEKCJA 2 - DESKTOP --------------------------------------------------*/
.section-2 {
    height: 60vh; /* Ustawienie wysokości sekcji na 60vh */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -- Kontener galerii -- */
.gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%; /* Kontener zajmuje pełną szerokość */
    height: 100%; /* Kontener zajmuje pełną wysokość sekcji */
    margin: auto;
    overflow: hidden; /* Ukrywa zdjęcia wychodzące poza widoczny obszar */
}

/* -- Kontener zdjęć -- */
.gallery {
    display: flex;
    transition: transform 0.5s ease; /* Płynne przewijanie */
    width: 100%;
    height: 100%; /* Kontener zdjęć zajmuje pełną wysokość sekcji */
}

/* -- Pojedynczy slajd -- */
.slide {
    flex-shrink: 0;
    width: 25%; /* Dynamicznie obliczana szerokość zdjęcia */
    position: relative;
    overflow: hidden;
}

/* -- Zdjęcia -- */
.slide img {
    width: 100%;
    height: 100%; /* Zdjęcia zajmują pełną wysokość slajdu */
    object-fit: cover; /* Dopasowanie zdjęcia do kontenera */
    filter: grayscale(65%); /* Domyślne zaszarzenie */
    transition: filter 0.3s ease; /* Płynne przejście przy usuwaniu zaszarzenia */
}

.slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);  /* Półprzezroczyste tło */
    color: white;
    font-size: 24px;
    font-family: 'century-gothic', sans-serif;  /* Czcionka Audiowide */
    opacity: 1;  /* Domyślnie widoczny */
    transition: opacity 0.3s ease;  /* Płynne przejście przy usuwaniu napisu */
}

.slide:hover img {
    filter: none;  /* Usuwanie zaszarzenia przy najechaniu myszką */
}

.slide:hover .overlay {
    opacity: 0;  /* Ukrywanie napisu przy najechaniu myszką */
}

/* -- Strzałki -- */
.prev, .next {
    position: absolute;
    top: 50%;
    background-color: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* -- Ikony strzałek -- */
.prev img, .next img {
    width: 30px;
    height: 30px;
}

/* -- Ukrywanie strzałek -- */
.prev, .next {
    visibility: visible;
}

/* -- Ukryte strzałki -- */
.prev.hidden, .next.hidden {
    visibility: hidden;
}
.right-button-container {
    position: relative;
}

.btn-see-more {
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 30px 10px;
    background-color: #a800e4;
    color: white;
    text-decoration: none;
    font-size: 40px;
    font-weight: bold;
    border-radius: 5px;
    pointer-events: none; /* Blokowanie kliknięcia podczas ukrycia */
    transition: opacity 0.5s ease, background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 20px;
    text-align: center;
}

.btn-see-more.show {
    opacity: 1;
    pointer-events: auto; /* Włączanie kliknięcia, gdy jest widoczny */
}

.btn-see-more:hover {
    background-color: #b80af7;
}

/* Płynne ukrywanie tekstu na ostatnim slajdzie */
.overlay {
    transition: opacity 0.5s ease;
}
/* ---------------------------------------------------- SEKCJA 2 - MOBILE -----------------------------------------------------*/


/* -- Dostosowanie dla urządzeń mobilnych -- */
@media (max-width: 768px) {
    .slide {
      flex: 0 0 100%; /* Jedno zdjęcie na ekranie mobilnym */
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .slide {
        flex: 0 0 calc(100% / 2); /* Wyświetl 2 zdjęcia jednocześnie na tabletach */
    }
}

/*----------------------------------------------------------- Sekcja 3 --------------------------------------------------------*/
.section-3 {
    padding: 50px 20px;
    text-align: center;
    color: whitesmoke;
    background-color: #111111;
    font-family: 'century-gothic', sans-serif;
}

.section-3 h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start; /* Wyrównanie elementów do góry */
    gap: 110px; /* Większy odstęp między elementami */
    margin: 0 auto; /* Wyśrodkowanie względem sekcji */
    max-width: 1200px; /* Ograniczenie szerokości */
    padding: 0 20px; /* Dodatkowe wcięcia od krawędzi */
    margin-top: 70px; /* Dodanie marginesu górnego */
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px; /* Odstęp między ikoną a tekstem */
    width: calc(33.333% - 40px); /* Szerokość elementu z uwzględnieniem odstępu */
    max-width: 300px; /* Maksymalna szerokość elementu */
}

.icon-placeholder {
    width: 50px;
    height: 50px;
    flex-shrink: 0; /* Zapobiega zmniejszaniu ikony */
    object-fit: contain; /* Dopasowanie obrazu do kontenera */
}

.car-icon {
    width: 65px; /* Dopasowanie szerokości do pozostałych ikon */
    height: 65px; /* Dopasowanie wysokości do pozostałych ikon */
    margin-top: -15px; /* Usunięcie marginesu górnego */
}

/*--------------------------------------------------- Sekcja 4 ----------------------------------------------------------------------*/
.section-4 {
    background-color: #ffcccb;
    padding: 0; /* Usunięcie paddingu, aby mapa zajmowała całą sekcję */
    margin: 0; /* Usunięcie marginesów */
    height: 60vh; /* Ustawienie wysokości sekcji na 60vh */
}

.section-4 iframe {
    width: 100%;
    height: 100%; /* Mapa zajmuje całą wysokość sekcji */
    border: 0;
    filter: grayscale(65%); /* Domyślne zaszarzenie mapy */
    transition: filter 0.3s ease; /* Płynne przejście przy usuwaniu zaszarzenia */
}

.section-4 iframe:hover {
    filter: none; /* Usuwanie zaszarzenia mapy przy najechaniu myszką */
}

/*--------------------------------------------------------- Sekcja 5 -----------------------------------------------------------------*/
/* ---------------------------------------------------- SEKCJA 5 - DESKTOP -----------------------------------------------------------*/
.section-5 {
    background-color: #111111; /* Kolor tła */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}
.section-5 .content {
    text-align: center;
    font-family: 'century-gothic', sans-serif;
    font-size: 24px;
    color: whitesmoke;
    
    
}
.section-5 .logo {
    max-width: 200px; /* Zwiększenie rozmiaru logo */
    margin-bottom: 40px;
}
.section-5 .email {
    font-family: 'century-gothic', sans-serif; /* Czcionka century */
    color: whitesmoke;
    font-size: 24px;
    margin-top: 20px;
}
.section-5 .additional-text {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 80px 50px; /* Zwiększenie paddingu, aby przesunąć teksty w dół */
}
.section-5 .text-left {
    font-family: 'century-gothic', sans-serif; /* Czcionka century */
    color: whitesmoke;
    font-size: 20px;
    text-align: center;
    flex: 1;
    position: absolute; /* Przywrócenie absolutnego pozycjonowania */
    left: 200px; /* Pozycja po lewej */
}
.section-5 .text-center {
    font-family: 'century-gothic', sans-serif; /* Czcionka century */
    color: whitesmoke;
    font-size: 20px;
    text-align: center;
    flex: 1;
}
.section-5 .text-right {
    font-family: 'century-gothic', sans-serif; /* Czcionka century */
    color: whitesmoke;
    font-size: 20px;
    text-align: center;
    flex: 1;
    position: absolute; /* Przywrócenie absolutnego pozycjonowania */
    right: 200px; /* Pozycja po prawej */
}
.section-5 .social-icon {
    width: 30px;
    height: 30px;
    margin: 0 5px;
}
.section-5 a {
    color: whitesmoke; /* Kolor linków */
    text-decoration: none; /* Usunięcie podkreślenia */
}
.section-5 a:hover {
    color: #a800e4; /* Kolor linków po najechaniu */
}

/* ---------------------------------------------------- SEKCJA 5 - MOBILE --------------------------------------------------*/
@media screen and (max-width: 768px) {
    .section-5 .additional-text {
        display: flex;
        flex-direction: column; /* Ustawienie elementów w pionie */
        align-items: center;
        padding: 20px; /* Mniejsze odstępy */
        gap: 20px; /* Dodanie odstępów między elementami */
    }
    .section-5 .text-left,
    .section-5 .text-center,
    .section-5 .text-right,
    .section-5 .content{
        position: static; /* Resetowanie pozycjonowania */
        text-align: center; /* Wyśrodkowanie tekstu */
        margin: 0; /* Resetowanie marginesów */
    }
    .section-5 .logo {
        max-width: 300px; /* Mniejszy rozmiar logo */
        margin-bottom: 10px;
    }
    .section-5 .email {
        font-size: 18px; /* Mniejszy rozmiar czcionki */
    }
    .section-5 .social-icon {
        width: 25px; /* Mniejszy rozmiar ikon */
        height: 25px;
    }
}

/* --- Footer -- */
.footer {
    background-color: #201037;
    color: white;
    text-align: center;
    padding: 5px; /* Zwiększenie paddingu */
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    font-family: 'century-gothic', sans-serif; /* Czcionka century */
}
.footer p{
    margin-top: 12px;
    font-size: 12px;
}
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    display: none; /* Ukrycie przycisku na początku */
}

.apex-button {
    text-decoration: none; /* Usuwa podkreślenie */
    color: white; /* Kolor domyślny */
    transition: color 0.3s ease; /* Płynna zmiana koloru */
}

.apex-button:hover {
    color: rgb(217, 98, 249); /* Kolor po najechaniu */
}