@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

header {
    background: linear-gradient(to left, #70a1d7, white 60%);
    color: white;
    display: flex;
    align-items: center;
    margin-top: 0; 
    margin-bottom: 0; 
    padding-right: 20px;
}

.logo {
    height: 125px;
    width: 150px;
    margin-right: 70px;
    flex-shrink: 0;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    flex-grow: 1;
}

nav {
    margin-left: auto;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a.button {
    background-color: #f0f0f0;
    color: #4c6faf;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#oferta {
    position: relative;
    background-image: url('zdjecia/t1.JPG');
    background-size: cover;
    background-position: center;
    padding: 80px 20px; 
    text-align: center;
    overflow: hidden;
}

#oferta::before,
#oferta::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 20px; 
    background-color: rgba(0, 0, 0, 0.5);
}

#oferta::before {
    top: 0;
}

#oferta::after {
    bottom: 0;
}

#oferta h2, .card-container {
    position: relative;
    z-index: 2;
}

#oferta h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7); 
    position: relative;
    z-index: 2; 
    background: transparent; 
    padding: 0; 
}

.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    justify-items: center;
}

.card {
    border: 1px solid #ddd;
    padding: 20px;
    width: 100%;
    max-width: 450px;
    min-height: 350px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    text-decoration: none;
    position: relative;
}

.card::before,
.card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 10px; 
    background-color: rgba(0, 0, 0, 0.3);
}

.card::before {
    top: 0;
}

.card::after {
    bottom: 0;
}

.card h3, .card p {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    margin: 10px 0;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

section {
    padding: 40px 20px;
    text-align: center;
    background-color: #f4f4f4;
    margin-top: 20px;
}

section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #4c6faf;
    position: sticky;
    top: 0;
    background-color: white;
    padding: 10px 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.profile-link {
    display: inline-block;
    margin: 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #4c6faf;
    object-fit: cover;
    transition: transform 0.3s;
}

.profile-image:hover {
    transform: scale(1.05);
}

form {
    max-width: 500px;
    margin: auto;
    text-align: left;
}

button[type="submit"] {
    background-color: #4c6faf;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #3a5b8f;
}

footer {
    background-color: #4c6faf;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.service-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6b7a99;
    margin-top: 20px;
    text-align: center;
    font-style: italic;
}

.service-list {
    list-style-position: inside;
    list-style-type: disc;
    padding-left: 40px;
    text-align: left;
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
    color: #333;
}

.serwis-image {
    width: 48%;
    margin: 1%;
    border-radius: 5px;
}

#wynajem-przyczep {
    background: linear-gradient(to bottom, #2f2f2f, white);
    padding: 40px 20px;
    margin-bottom: 0; 
    margin-top: 0; 
}

#wynajem-przyczep p {
    color: white; /
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); 
}

#sprzedaz-przyczep {
    background: linear-gradient(to top, #2f2f2f, white);
    padding: 40px 20px;
    margin-top: 0; 
    margin-bottom: 0; 
}

#serwis {
    background: linear-gradient(to top, #2f2f2f, white);
    padding: 40px 20px;
    margin-bottom: 0;
}

#o-nas {
    margin-top: 0;
    margin-bottom: 0;
}

#kontakt {
    margin-top: 0;
    margin-bottom: 0;
}

.sprzedaz-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    grid-template-rows: repeat(10, auto);
    margin: 0 auto;
}

.sprzedaz-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sprzedaz-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        height: 50px;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    #oferta h2 {
        font-size: 40px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .sprzedaz-container {
        grid-template-columns: 1fr;
    }

    .sprzedaz-image {
        max-width: 100%;
    }

    #wynajem-przyczep {
        padding: 40px 20px;
        background-color: #f8f8f8;
    }

    .wynajem-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .wynajem-row {
        flex-direction: column;
    }

    .wynajem-text, .wynajem-image {
        padding: 10px;
    }

    .wynajem-image {
        height: 200px;
    }
}
