/* Globalne ustawienia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Kolory strony */
:root {
    --primary-color: #4d4c5c; /* Niebieski */
    --secondary-color: #FF5733; /* Pomarańczowy */
    --dark-color: #333;
    --light-color: #f4f4f4;
}

/* Sekcja nagłówka */
.hero {
    background-image: url('4.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column; /* Ustaw kolumnę dla tekstu */
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    transition: background-image 0.5s ease-in-out;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 20px; /* Większy odstęp między nagłówkiem a paragrafem */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    animation: fadeInDown 1s ease-in-out;
    width: 100%; /* Dodaj pełną szerokość, aby tekst nie ustawił się obok innych elementów */
}

.hero p {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #f0f0f0; /* Zmieniony kolor na jaśniejszy, bliższy białemu */
    animation: fadeInUp 1s ease-in-out;
    width: 100%; /* Zapewnij pełną szerokość */
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sekcje */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

/* Sekcja usług */
#services {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Pozwól elementom przenieść się do kolejnego wiersza, jeśli jest za mało miejsca */
    margin-top: 20px;
    text-align: center; /* Centruj tekst w sekcji */
}

#services h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.service-item {
    background-color: white;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px; /* Flex-grow, flex-shrink, minimalna szerokość */
    max-width: 400px; /* Maksymalna szerokość dla kart */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Dodaj płynną animację */
}

.service-item:hover {
    transform: translateY(-10px); /* Karty unoszą się na hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Większy cień na hover */
}

.service-item img {
    width: 100%; /* Zdjęcia będą prostokątne, zajmując pełną szerokość kontenera */
    height: auto; /* Zachowaj proporcje obrazka */
    margin-bottom: 10px;
    border-radius: 5px; /* Lekko zaokrąglone rogi */
}

/* Stylizacja dla urządzeń mobilnych */
@media (max-width: 768px) {
    #services {
        flex-direction: column; /* Na mniejszych ekranach zmień układ na pionowy */
    }

    .service-item {
        max-width: 90%; /* Zmniejsz maksymalną szerokość kart usług na mniejszych urządzeniach */
        margin: 10px auto; /* Wycentruj karty na mniejszych ekranach */
    }
}



/* Sekcja kontaktowa */
#contact {
    padding: 40px 0;
    background-color: var(--primary-color);
    color: white;
}

#contact h2 {
    color: white;
}

#contact a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

#contact p {
    color: #cfcedb;
}

#contact a:hover {
    border-bottom: 2px solid var(--secondary-color);
}

/* Sekcja lokalizacji */
#locations ul {
    list-style-type: none;
    padding: 0;
}

#locations li {
    margin: 10px 0;
    font-size: 1.2rem;
    color: var(--dark-color);
}

/* Sekcja stopki */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Stylizacja dla urządzeń mobilnych */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    #services {
        flex-direction: column;
    }

    .service-item {
        max-width: 90%;
        margin: 10px auto;
    }
}
