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

body {
    font-family: ui-sans-serif, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Menu nawigacyjne */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
    list-style: none;
    display: flex;
    margin-left: 20px;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-family: ui-sans-serif, sans-serif;
    transition: color 0.3s ease;
}

nav.scrolled .nav-links a {
    color: #333;
}

.menu-icon {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    font-family: ui-sans-serif, sans-serif;
}

/* Styl dla nagłówków sekcji */
h2 {
    text-align: center;
    text-decoration: underline;
    text-decoration-color: #333;
    margin-bottom: 30px;
    font-size: 32px;
    color: #333;
    font-family: ui-sans-serif, sans-serif;
}

/* Sekcja Radek Zielski (hero) */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f8f8f8;
    margin-top: 0;
    padding-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.hero-background-active {
    opacity: 1;
}

.hero-background-next {
    opacity: 0;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

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

.hero-content h1 {
    font-family: ui-sans-serif, sans-serif;
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-family: ui-sans-serif, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-content .btn {
    background: #ff6f61;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background 0.3s ease;
    font-family: ui-sans-serif, sans-serif;
}

.hero-content .btn:hover {
    background: #ff4a3d;
}

/* Sekcja O mnie */
.about {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    margin-right: 2%;
    font-family: ui-sans-serif, sans-serif;
}

.about img {
    max-width: 500px;
    border-radius: 10px;
}


/* Sekcja Opinie */
.opinie {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
    overflow: hidden; /* Ukryj overflow, aby nie pokazywać opinii poza kontenerem */
}

.opinie-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opinie-slider {
    display: flex;
    align-items: center; /* Wyśrodkowanie kart w pionie */
    overflow: hidden;
    width: 80%; /* Ogranicz szerokość, aby przyciski były widoczne */
    margin: 0 auto;
    scroll-behavior: smooth; /* Płynne przewijanie */
}

.opinie-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 460px; /* Stała szerokość karty opinii */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 10px 10px;
    flex: 0 0 auto; /* Zapobiega zmianie rozmiaru kart */
}

.opinie-card p {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 20px;
}

.opinie-author {
    font-size: 0.7rem;
    color: #666;
    font-style: italic;
}

.opinie-prev, .opinie-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 25%;
    font-size: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.opinie-prev {
    left: 10px;
}

.opinie-next {
    right: 10px;
}

.opinie-prev:hover, .opinie-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}



/* Sekcja Fotografia */
.photography {
    padding: 50px 20px;
    background-color: #ffffff;
    color: #000;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Sekcja Nieruchomości */
.realestate {
    padding: 50px 20px;
    background-color: #ffffff;
    color: #000;
}

/*

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

*/



/* Sekcja Film */
.film {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 10px;
    border: 0;
}

/* Sekcja Fotobudka */
.photobooth {
    padding: 50px 20px;
    background-color: #ffffff;
}

.photobooth-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.photobooth-text {
    flex: 1;
    margin-right: 20px;
    font-family: ui-sans-serif, sans-serif;
}

.photobooth img {
    max-width: 500px;
    border-radius: 10px;
}

.media-container {
    position: relative;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
}

.fallback-image {
    width: 100%;
    height: auto;
    display: block;
}

.lazy-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sekcja Oferta */
.offer {
    padding: 50px 20px;
    background-color: #f9f9f9;
    color: #000;
}

.offer-cards {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.offer-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    text-align: left;
    font-family: ui-sans-serif, sans-serif;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.offer-card img {
    width: 60px; /* Powiększa obrazek */
    height: auto; /* Zachowuje proporcje */
}

.offer-card h3 {
    margin-bottom: 20px;
    font-size: 1.8rem; /* Większy nagłówek */
    font-weight: bold;
}

.offer-card ul {
    list-style: none;
}

.offer-card ul li {
    margin-bottom: 10px;
}

/* Sekcja Kontakt */
.contact {
    padding: 50px 20px;
    background-color: #ffffff;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    text-align: left;
    margin-right: 20px;
    font-family: ui-sans-serif, sans-serif;
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info p:first-child {
    font-weight: bold;
}

.contact-info p:nth-child(6) {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    width: 100%;
}

.contact-info a {
    color: #0077cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0055aa;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-media p {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.social-media img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-media img:hover {
    transform: scale(1.1);
}

.map {
    flex: 1;
    max-width: 50%;
    margin-left: 20px;
}

.map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
}

/* Sekcja Formularz kontaktowy */
.formularz {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.formularz h2 {
    text-decoration: underline;
    text-decoration-color: #333;
    margin-bottom: 30px;
    font-size: 32px;
    color: #333;
    font-family: ui-sans-serif, sans-serif;
}

.formularz-kontaktowy {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
    font-family: ui-sans-serif, sans-serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: ui-sans-serif, sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-formularz {
    background: #ff6f61;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: ui-sans-serif, sans-serif;
}

.btn-formularz:hover {
    background: #ff4a3d;
}

/* Stopka */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    font-family: ui-sans-serif, sans-serif;
}


/* Responsywność - wersja na telefon */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
        color: white;
        font-size: 24px;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 3px 0;
        margin: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 2px 0;
        padding: 6px 20px;
    }

    .nav-links a {
        color: black;
        font-size: 16px;
        text-decoration: none;
    }

    nav {
        background-color: transparent;
        transition: background-color 0.3s ease;
    }

    nav.scrolled {
        background-color: white;
    }

    nav.scrolled .menu-icon {
        color: black;
    }

    .menu-icon.active::before {
        content: "✕";
        font-size: 24px;
        color: white;
    }

    nav.scrolled .menu-icon.active::before {
        color: black;
    }

    .menu-icon.active {
        color: transparent;
    }

    .about-content, .photobooth-content, .contact-content {
        flex-direction: column;
        text-align: center;
    }

    .about img, .photobooth img {
        margin-top: 20px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-cards {
        flex-direction: column;
    }

    .offer-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .map {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-top: 20px;
        padding: 0 10px;
    }

    .map iframe {
        height: 350px;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        margin-right: 0;
        text-align: center;
    }

    .video-gallery {
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
        gap: 20px;
    }

    .video-item iframe {
        width: 100%;
        max-width: 100%;
        height: 200px;
    }

    .about img {
        max-width: 90%;
        align-items: center;
        border-radius: 10px;
    }

    .photobooth img {
        max-width: 90%;
        align-items: center;
        border-radius: 10px;
    }

    /* Responsywność - Opinie - wersja na telefon */
    .opinie-slider {
    width: 80%; /* Mniejsza szerokość na telefonach */
    }

    .opinie-card {
    width: 250px; /* Mniejsza szerokość kart na telefonach */
    }

    .opinie-prev, .opinie-next {
    font-size: 20px;
    padding: 8px;
    }

    .opinie-prev {
    left: 5px;
    }

    .opinie-next {
    right: 5px;
    }

    /* Marginesy dla wideo w sekcji Fotobudka */
    .photobooth-content video {
        display: block;
        margin-left: 20px;
        margin-right: 20px;
        max-width: calc(100% - 40px);
        width: 100%;
        border-radius: 10px;
}
