/* Importuj czcionkę Google */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    /* Efekt parallax: tło jest przywiązane do widoku, wycentrowane oraz zajmuje 1/3 szerokości ekranu */
    background: url('../img/xl studioU.png') no-repeat center fixed;
    background-size: 60vw auto;
    margin-top: 70px; /* Dostosuj wartość, w zależności od wysokości nawigacji */
    background-attachment: fixed; /* Ensure the background is fixed for parallax effect */
}

/* Nowoczesny i elegancki styl nagłówka z wyraźnym kolorem w odcieniu fioletu */
header {
    background: #4c008207; /* Męski, pewny i elegancki odcień fioletu */
    padding: 40px 20px;
    text-align: center;
    color: #ffffff;

}

/* Styl dla nagłówka H1 */
header h1 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Poprawiona responsywność nagłówka */
@media (max-width: 768px) {
    header {
        padding: 30px 15px;
    }
    header h1 {
        font-size: 2rem;
    }
}

/* Nowoczesna elegancka stylizacja dla nav */
nav {
    background: #4c008207;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    z-index: 1000;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0 20px;
}

/* Updated navigation link styles with improved text shadow */
.nav-link {
    color: #616161;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.923); /* Wyraźny cień z ostrymi krawędziami */
}

.nav-link:hover {
    color: #fdb813;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Transparent background for sections */
.section {
    max-width: 60vw;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background for better readability */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(0,0,0,0.15);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.section h2 {
    color: #333333;
    text-shadow: none;
}

/* Modern superhero-style service cards */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.service-card {
    background: #ffffff86;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1 1 300px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.923); /* Wyraźny cień z ostrymi krawędziami */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #5A6F8C;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    color: #393939;
    font-weight: 500;
}

/* Dotychczasowy styl footer */
.footer {
    background: linear-gradient(180deg, #d4d3d179, #e2c5af70);
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60vw;
    box-shadow: 0 -2px 10px rgba(255, 245, 245, 0.2);
    font-size: 0.9rem;
}

/* Stylowanie przeniesione z inline -> footer-container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Stylowanie dla social media w footer */
.footer .social-media {
    margin-bottom: 15px;
}

.social-media a {
    margin: 0 10px;
    color: inherit;
    text-decoration: none;
}

.material-icons {
    font-size: 24px;
    vertical-align: middle;
}

/* Usuwamy inline style marginesu dla paragrafu */
.footer p {
    margin: 0;
}

/* Zapewnij odstęp na dole, aby footer nie zasłaniał treści */
main {
    max-width: 60vw;
    margin: 70px auto calc(120px + 1rem); /* Increased bottom margin by 1rem for extra spacing */
    padding: 0 20px; /* Opcjonalny padding, aby zawartość nie przylegała bezpośrednio do krawędzi */
}

.language-switcher {
    position: fixed;
    top: 10px;
    right: 20px;
}

.language-switcher button {
    background: transparent;
    border: none;
    color: #363636c9;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 10px;
}

.language-switcher button:hover {
    text-decoration: underline;
}

/* Mobile devices adjustments */
@media (max-width: 768px) {
    body {
        /* Scale the background so it "overflows" the viewport */
        background-size: cover;
        background-position: center top;
    }

    /* Adjust header */
    header {
        padding: 30px 10px;
    }
    header h1 {
        font-size: 2rem;
    }

    /* Adjust navigation */
    nav {
        width: 90%;
        padding: 10px 15px;
    }
    .nav-list li {
        margin: 0 10px;
    }
    .nav-link {
        font-size: 1em;
    }

    /* Adjust main container to add extra bottom margin for mobile devices */
    main {
        max-width: 90%;
        margin: 70px auto 150px; /* Increased bottom margin from 120px to 150px */
        padding: 0 10px;
    }

    /* Adjust sections */
    .section {
        max-width: 90%;
        margin: 15px auto;
        padding: 15px;
    }

    /* Adjust services cards layout */
    .service-cards {
        flex-direction: column;
        gap: 15px;
    }
    .service-card {
        max-width: 100%;
        flex: 1 1 auto;
    }

    /* Adjust footer */
    .footer {
        width: 105%;
        padding: 15px 0;
        margin-top: 10px;
    }

    /* Adjust language switcher if necessary */
    .language-switcher {
        top: 5px;
        right: 10px;
    }
}