body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#o-nas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* Opcjonalne: dodaje odstępy między elementami */
    background-color: rgb(224, 219, 197);
}

.container {
    padding: 20px;
    margin: 0 20px; /* Marginesy zewnętrzne */
    align-self: center; /* Centruje tekst w pionie w swoim gridzie */
}

.container h2 {
    font-size: 2rem;
    margin-bottom: 10px; /* Margines dolny dla nagłówka */
}

.container p {
    font-size: 1.2rem;
    margin-top: 0; /* Resetuje domyślny margines górny dla paragrafu */
}

img {
    width: 100%;
    height: auto;
    margin: 20px; /* Margines wokół obrazka */
    border-radius: 10px;
}


header {
    background: #fff; /* Zmiana tła na białe */
    color: #000; /* Zmiana koloru tekstu na czarny */
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    width: 100px; /* Zmniejszenie rozmiaru logo */
    height: auto; /* Zachowanie proporcji logo */
}

header nav {
    flex-grow: 1;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Wyśrodkowanie poziome */
    align-items: center; /* Wyśrodkowanie pionowe */
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: #000; /* Zmiana koloru linków na czarny */
    text-decoration: none;
    padding: 10px 5px; /* Zmniejszenie wewnętrznych odstępów */
}

#hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column; /* Ustawienie flex-direction na column, aby elementy wewnątrz były ustawione w pionie */
    justify-content: center;
    align-items: center;
    height: 65vh; /* Wysokość sekcji na pełne okno przeglądarki */
    background-color: #000; /* Czarny kolor tła */
}

#hero .video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Dopasowanie do wysokości sekcji */
    overflow: hidden;
    background-color: #000; /* Czarny kolor tła za wideo */
}

#hero video {
    height: 100%;
    width: auto;
        object-fit: cover; /* Wypełnienie całego kontenera wideo */
}

@media screen and (max-width: 768px) {
    #hero video {
        height: auto;
        width: 100%;
    }


header nav ul {
    display: none; /* Ukryj pełnowymiarowe menu */
}

header nav {
    justify-content: flex-end; /* Przesunięcie ikony hamburgera na prawo */
}

.menu-toggle {
    order: 1; /* Zmiana kolejności, aby menu hamburgerowe było na początku */
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
    transition: 0.4s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

header nav ul li {
    display: block;
    text-align: center;
    margin: 15px 0;
}

#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Półprzezroczysta czarna nakładka */
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2; /* Tekst nad nakładką */
    opacity: 0; /* Ukryj element przed animacją */
    animation: fadeIn 2s ease-in-out 3s forwards; /* Animacja fadeIn z opóźnieniem 3s */
}

.services, .gallery, .case-studies .container {
    flex-direction: row;
}

.service, .case-study {
    margin-bottom: 0;
    margin-right: 20px;
}

.service:last-child, .case-study:last-child {
    margin-right: 0;
}
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

#hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.btn {
    background: rgb(235, 80, 80);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
}

section {
    padding: 60px 0;
}

h2 {
    margin-bottom: 20px;
}

.services, .gallery, .case-studies {
    display: flex;
    justify-content: space-between;
}

.service, .case-study {
    flex: 1;
    margin-right: 20px;
}

.service:last-child, .case-study:last-child {
    margin-right: 0;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer nav ul li {
    display: inline;
    margin-left: 20px;
}

footer nav ul li a {
    color: #fff;
    text-decoration: none;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.social-links a {
    text-decoration: none;
    margin: 0 10px;
    font-size: 24px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #0073e6; /* Kolor przy najechaniu */
}
