:root {
    --primary-color: #fff;
    --secondary-color: #ff4a4a;
    --third-color: #E11000;
    --text-color: #333;

}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--text-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--primary-color);
}

#menu-mobile {
    display: none;
}

.logo img {
    width: 150px;
    height: 150px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
}

nav ul li a:not(.btn):hover {
    color: var(--secondary-color)
}

nav ul li.home:nth-child(1) a {
    color: var(--secondary-color)
}

nav ul li.about:nth-child(2) a {
    color: var(--secondary-color)
}

nav ul li.services:nth-child(3) a {
    color: var(--secondary-color)
}

nav ul li.realizations:nth-child(4) a {
    color: var(--secondary-color)
}


.btn:hover {
    background-color: var(--third-color)
}

.btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.hero {
    text-align: center;
    padding: 50px 20px;
    display: flex;
    background-color: var(--primary-color)
}

.hero h1 {
    font-size: 36px;
}

.hero p {
    font-size: 18px;
    margin: 20px 0;
}

.btn-primary {
    background-color: var(--secondary-color);
    padding: 15px 20px;
    font-size: 18px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
}

.contentImage {
    width: 45vw;
    height: 60vh;
}

two-up {
    overflow: hidden;

    img {
        object-fit: fill;
        width: 45vw;
        height: 60vh;
        border-radius: 30px;
    }
}

two-up {
    --thumb-color: var(--secondary-color) !important;
    --track-color: var(--primary-color) !important;
    --thumb-background: var(--primary-color) !important;
}

footer {
    position: fixed;
    bottom: 0;
    text-align: center;
    width: 100vw;
    padding: 10px 0;
    background-color: var(--text-color);
    color: var(--primary-color);
}

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

/* Sekcja kontaktowa */
.contact-section {
    display: flex;
    justify-content: space-between;
    padding: 50px;
    background-color: var(--primary-color);
}

.contactInfo,
.contact-form {
    width: 48%;
}

.contactInfo {
    display: flex;
    flex-direction: column;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.detailsWithIcon {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.contactInfo h2 {
    font-size: 24px;
}

.contactInfo p {
    margin: 10px 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 0;
    border: 1px solid #ccc;
    border-style: none none solid none;
}

.contact-form input,
.contact-form textarea:focus {
    outline: none;
}

.contact-form textarea {
    grid-column: span 2;
    height: 150px;
    resize: none;
}

.contact-form button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Sekcja O nas */
.about-section {
    padding: 50px;
    background-color: var(--primary-color);
    text-align: center;
}

.about-section h2 {
    font-size: 28px;
    color: var(--secondary-color);
}

.about-section p {
    font-size: 18px;
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
}

.about-section ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.about-section ul li span {
    color: var(--secondary-color)
}

/* Sekcja usługi */
section.services {
    padding-top: 10px;
    background-color: var(--primary-color);
    height: 60vh;


}

.services h1 {
    font-size: 28px;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.servicesContainer {
    width: 90%;
    margin: 0px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 200px;
}

.service {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    width: 25%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 30px 20px;
    margin: 10px;
    border: 1px solid #ccc;
    transition: 0.4s ease;
}

.service h2 {
    text-align: center;
}

.service:hover {
    background-color: #f0f0f0;
}

.service span {
    font-size: 48px;
    color: var(--secondary-color);
}

.service h2 {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Sekcja realizacje */
section.realizations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 200px;
}

section.realizations h1 {
    font-size: 28px;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.masonry-realizations {
    width: 80%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
}

.realization {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 60vh;

}

.realization img {
    width: 100%;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.realization:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-menu {
    display: none;
}

.realization:hover .overlay {
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

/* Responsywność */
@media (max-width: 768px) {
    header {
        position: sticky;
        width: 100%;
        z-index: 100;
        top: 0;
        right: 0;
        left: 0;
        padding: 0;
        height: 100px;
    }

    footer {
        position: sticky;
        width: 100%;
        z-index: 0;
        bottom: 0;
    }

    .footer-menu {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 10px;
        padding-left: 24px;
        position: relative;
        z-index: 10;
    }

    .footer-menu .hr {
        display: block;
        background-color: var(--primary-color);
        width: 80%;
        height: 1px;
    }


    footer p {
        font-size: 10px;
        text-align: start;
        padding-left: 24px;

    }

    .footer-menu a {
        font-size: 18px;
    }


    .logo img {
        width: 80px;
        height: 80px;
    }

    nav {
        position: fixed;
        display: block;
        background: #fff;
        top: 100px;
        padding-top: 70px;
        height: 100%;
        width: 100%;
        left: 100%;
        z-index: 100;
        transition: all .5s ease-in-out;
    }

    #menu-mobile {
        display: block;
        transition: all .5s ease-in-out;
    }

    #menu-mobile span:nth-child(2) {
        display: none
    }

    #menu-mobile.active span:nth-child(2) {
        display: inline-block
    }

    #menu-mobile.active span:nth-child(1) {
        display: none
    }

    #menu-mobile span {
        font-size: 48px;
    }

    nav.active {
        left: 0;
        height: 100%;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        transition: all .2s ease;
        font-size: 24px;
        margin: 16px 0;
    }

    section {
        position: relative;
        z-index: 50;
    }

    .hero {
        padding: 30px 15px;
        padding-bottom: 150px;
        flex-direction: column;
        gap: 30px;
        padding-bottom: 30px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    two-up {

        img {
            width: 90vw;
        }
    }

    .contentImage {
        width: 90vw;
    }

    .contact-section {
        flex-direction: column;
        align-items: center;
        text-align: center;

    }

    .contact-section .submitBtn {
        grid-column: span 2;
    }

    .contact-section .submitBtn .btn {
        width: 100%;
    }

    .contactInfo,
    .contact-form {
        width: 100%;
    }

    .about-section {
        padding: 30px;
    }

    .about-section ul {
        padding: 0;
    }

    section.services {
        height: auto;
    }

    .servicesContainer {
        padding-bottom: 20px;
    }

    .service {
        flex-direction: column;
        width: 80%;
    }

    section.realizations {
        margin-bottom: 0;

    }

    .masonry-realizations {
        background-color: var(--primary-color);
        z-index: 15;
        width: auto;
    }


    .overlay {
        opacity: 1;
    }

}