/* Nagłówek i animacja (sticky header) */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease-in-out;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.8em 5%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 40px;
    transition: height 0.4s ease-in-out;
}

.navbar.scrolled .logo img {
    height: 30px;
}

/* Ukrycie menu na widoku desktop */
.nav-links {
    display: flex;
    gap: 2em;
    list-style: none;
    transition: all 0.4s ease-in-out;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.navbar.scrolled .nav-links {
    visibility: hidden;
    opacity: 0;
}

/* Przycisk CTA */
.contact-btn {
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease-in-out;
}

.navbar.scrolled .contact-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.navbar.scrolled .contact-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Ukrycie hamburgera na widoku desktop */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--primary-color);
    z-index: 1100;
}

/* Media Queries dla responsywności (mobile) */
@media (max-width: 768px) {
    .nav-links, .contact-btn {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--primary-color);
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
        animation: slideInRight 0.5s forwards;
    }

    .nav-links.active li {
        margin: 1.5em 0;
    }

    .nav-links.active a {
        color: #fff;
        font-size: 1.5em;
    }

    /* Animacja wysuwania menu */
    @keyframes slideInRight {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
}
/* Resetowanie i podstawowe style */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f4f7f6;
    --text-color: #555;
    --light-text-color: #ecf0f1;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

.section {
    padding: 4em 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.subtitle {
    font-size: 1.1em;
    color: #777;
    margin-bottom: 3em;
}

.btn {
    display: inline-block;
    padding: 1em 2em;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-contact {
    margin-top: 1.5em;
}

/* Animacje (domyślnie ukryte) */
.fade-in, .slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Nagłówek i sekcja główna */
.hero-section {
    height: 100vh;
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.hero-content {
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5em;
    color: #fff;
    margin-bottom: 0.2em;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

/* Sekcje Usługi i Dlaczego My? */
.services-container, .why-us-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2em;
    margin-top: 2em;
}

.service-item, .why-us-item {
    background-color: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 280px;
}

.service-item:hover, .why-us-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-item img, .why-us-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1em;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.2));
}

.service-item h3, .why-us-item h3 {
    font-size: 1.4em;
}

/* Sekcja Galeria (Parallax) */
.gallery-section {
    background: url('../img/gallery-bg.jpg') no-repeat center center/cover fixed;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Sekcja Kontakt */
.contact-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.contact-section h2, .contact-section a, .contact-section h3 {
    color: #fff;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3em;
    margin-top: 2em;
    flex-wrap: wrap;
}

.contact-item h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

.contact-item a {
    font-size: 1.1em;
    color: #fff;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Stopka */
.footer {
    text-align: center;
    padding: 2em;
    background-color: #222;
    color: #aaa;
}

/* Responsywność */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .services-container, .why-us-container {
        flex-direction: column;
        align-items: center;
    }
    .service-item, .why-us-item {
        width: 100%;
        max-width: 400px;
    }
    .section {
        padding: 3em 5%;
    }
}