html {
    scroll-behavior: smooth;
}

body.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Oswald', sans-serif;
}

body {
    color: #333;
    background-color: #f4f4f9;
    line-height: 1.6;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Logo po lewej, nawigacja po prawej */
    align-items: center; /* Wyśrodkowanie elementów w pionie */
    padding: 20px 10%;
    background: rgba(0, 0, 0, 0.84);
    color: #fff;
    z-index: 10;
}

header .menu-container {
    display: flex; /* Logo i nawigacja w jednej linii */
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Rozciągamy kontener na całą szerokość */
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 50px; /* Wysokość logo */
    display: block;
}

header nav {
    display: flex; /* Linki w jednej linii */
    gap: 30px; /* Odstęp między linkami */
    align-items: center;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px; /* Powiększenie tekstu */
    transition: color 0.3s;
}

header nav a:hover {
    color: #0EFAFE; /* Zmiana koloru przy najechaniu */
}

.burger-menu {
    display: none; /* Ukryte na desktopie */
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Wersja mobilna */
@media screen and (max-width: 768px) {
    header {
        padding: 10px 5%; /* Mniejsze odstępy w mobilnych */
    }

    header .menu-container {
        justify-content: center; /* Wyśrodkowanie logo i hamburgera */
        position: relative;
    }

    header .burger-menu {
        display: block; /* Pokazujemy hamburger */
        margin-left: auto; /* Przesuwamy go na prawą stronę */
    }

    header nav {
        display: none; /* Ukrycie nawigacji */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0%;
        background-color: black;
        padding: 15px;
        border-radius: 8px;
        z-index: 1000;
    }

    header nav.active {
            display: flex;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

    header nav a {
        padding: 10px;
        color: white;
    }

    /* Przesunięcie treści hero w dół na mobilnych */
    #hero .hero-content {
        margin-top: 80px; /* Dodanie odstępu od góry */
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content .circle {
        margin: 0 auto 20px;
    }
}
#hero {
    position: relative;
    height: 100vh;
    color: #fff;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
z-index: 1;
}

#hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Tło wideo znajduje się pod wszystkim */
}

.hero-content {
    position: relative;
    background: rgba(0, 0, 0, 0.80); /* Czarny z 60% przezroczystości */
    padding: 30px;
    border-radius: 30px; /* Zaokrąglone krawędzie */
    max-width: 600px;
    text-align: center;
    z-index: 1;
}
.hero-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(90deg, rgba(4,35,141,1) 0%, rgba(1,86,201,1) 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: #0EFAFE;
    color: black;
    transform: scale(1.1);
}
#portfolio-about-container {
    background: url('tlo.png') no-repeat center center;
    background-size: cover; /* Dopasowanie obrazu tła */
    padding: 60px 10%;
    margin-bottom: 60px;
}

#portfolio,
#about {
    padding: 60px 10%;
    text-align: center;
    margin-top: 20px; /* Usunięto odstęp, aby nie nachodziło na hero */
}

#portfolio h2,
#about h2 {
    font-size: 35px;
    margin-bottom: 40px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.work {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
#work-modal {
    display: none; /* Ukryj modal na starcie */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Przyciemnienie tła */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#work-modal img {
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: auto;
    object-fit: contain; /* Dopasowanie obrazu bez zniekształceń */
    border: 3px solid white;
    border-radius: 10px;
}

.work:hover {
    transform: scale(1.08);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}
#work-details {
    text-align: center;
}

#about p {
    font-size: 20px;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

footer {
    position: relative; /* Umożliwia nachodzenie na sekcję */
    background: #1F1F1F; /* Przezroczyste tło */
    color: white;
    padding: 20px 10%; /* Takie same odstępy jak w headerze */
    z-index: 1;
    display: flex;
    justify-content: space-between; /* Rozdzielenie logo i tekstu */
    align-items: center;
    margin-top: -60px; /* Nachodzenie na tło sekcji about */
}

footer .logo {
    display: flex;
    align-items: center;
    height: 50px; /* Taka sama wysokość jak w headerze */
    cursor: pointer;
}

footer .logo img {
    height: 50px; /* Dopasowanie rozmiaru logo */
    display: block;
}

footer p {
    margin: 0;
    font-size: 16px;
    text-align: right;
    max-width: calc(100% - 200px); /* Ograniczenie szerokości tekstu do obszaru headera */
    line-height: 1.6;
}
.hidden-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease-out;
}
.hidden-text.expanded {
    max-height: 500px; /* Maksymalna wysokość po rozwinięciu */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    animation: scaleUp 0.3s ease-out;
    position: relative;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 26px;
    color: #333;
    cursor: pointer;
    font-weight: bold;
}

form label {
    font-size: 18px;
    margin-top: 10px;
    display: block;
    color: #333;
}

form input,
form textarea,
form button {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
}

form button {
    background-color: #333;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

form button:hover {
    background-color: #0EFAFE;
    color: black;
    transform: scale(1.05);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.circle {
    width: 220px;
    height: 220px;
    background-image: url('zdj.jpg');
    background-size: cover; /* Dopasowanie obrazu */
    background-position: center;
    border-radius: 50%;
    margin-right: 20px;
}

.about-text {
    max-width: 800px;
    line-height: 1.8;
    text-align: justify;
}

#read-more-btn {
    background: linear-gradient(90deg, rgba(4,35,141,1) 0%, rgba(1,86,201,1) 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 10px;
    box-shadow: 0px 0px 10px;
}

#read-more-btn:hover {
    background: #0EFAFE;
    color: black;
    transform: scale(1.1);
}

#read-more-btn:focus {
    outline: none;
}

#contact-modal {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
	z-index: 2000;
}

#contact-modal.show {
    display: flex;
    opacity: 1;
}
