@font-face {
    font-family: 'LeagueSpartan';
    src: url('fonts/LeagueSpartan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LeagueGothic';
    src: url('fonts/LeagueGothic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'LeagueSpartan', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: transparent;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

header .logo img {
    height: 120px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
    margin-right: 80px;
}

header nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    font-family: 'LeagueSpartan', sans-serif;
    font-size: 22px;
    
}

header nav ul li a:hover {
    color: #000;
}

/* Hero Section */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.hero-text {
    position: absolute;
    top: 30%;
    left: 35%;
    transform: translate(-50% , -50%);
    z-index: 2;
    opacity: 0;
    animation: fadeInDrop 2s forwards;
    margin-top: 200px;
    width: 1300px;
    margin-left: 70px;
}

.hero-text h1 {
    font-family: 'LeagueSpartan', sans-serif;
    font-size: 3rem;
    margin-right: 30%;
    margin-top: 5%;
    color: #fff;
    padding: 0px;
}

/* animka wejscia */
@keyframes fadeInDrop {
    0% {
        transform: translate(-50%, -100%);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* srodek */
.offer {
    position: relative;
    overflow: hidden;
    height: 100px;
}

.offer img {
    width: 50%;
    height: auto;
    position: relative;
    z-index: 1;
    margin-top: 20px;
    margin-left: 25%;
    margin-right: 25%;
    margin-bottom: 0px;
    object-fit: cover;
}

.background-text {
    position: absolute;
    transform: translate(-50%);
    z-index: 2;
    top: 28%;
    left: 50%;
    text-align: center;
}

.background-text h2 {
    font-family: 'LeagueGothic', sans-serif;
    font-size: 3rem;
    color: #000;
    padding: 0px;
}

.tekst a {
    text-decoration: none;
    font-weight: bold;
    font-family: 'LeagueSpartan', sans-serif;
    font-size: 1.5rem;
    color: #000;
    padding: 0px;
    text-align: left;
}

/* dis Section */
.dis {
    position: relative;
    overflow: hidden;
    height: 1200px;
    margin-bottom: 20px;
    align-items: center; /* Wyśrodkowanie w pionie */
    padding-left: 24%; /* Przesunięcie tekstu w lewo */
    padding-right: 24%;
    margin-top: 15px;
}

/* Siatka dla kafelków */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Dokładnie 3 kolumny */
    gap: 20px; /* Odstęp między kafelkami */
    margin: 20px;
}


/* Karta projektu */
.project-card {
    display: block;
    text-decoration: none;
    background-color: #d0eaff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Obraz w karcie */
.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Informacje o projekcie */
.project-info {
    padding: 15px;
}

.project-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    color: #000;
}

.project-subtitle {
    font-size: 14px;
    color: #555;
    margin: 5px 0 0;
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 500px) {
    .whoarewe {
        padding: 20px;
    }

    .hero-text {
        margin-right: 0; /* Wyłączenie dużego marginesu */
        margin-left: 50px; /* Ustawienie małego marginesu z lewej */
        width: 90%; /* Tekst zajmuje większość szerokości ekranu */
        font-size: 1.2rem; /* Zmniejszenie rozmiaru czcionki */
        transition: all 0.3s ease-in-out; /* Dodanie płynnego przejścia */
        text-align: left;
        margin-top: 100px;
    
    }

    .hero-text h1 {
        font-size: 1.5rem; /* Zmniejszenie rozmiaru nagłówka */
        line-height: 1.4;
    }

    .whoarewe img {
        width: 20px;    /* DO ZROBIENIA - wyświetlanie prawidłowo bloku*/
        z-index: 1;
        margin-left: 6px;
    }

    .background-text {
        top: 22%;
        left: 50%;
        transform: translate(-50%);
    }

    .background-text h2 {
        font-size: 3rem; /* Zmniejszenie rozmiaru tekstu na mniejszych ekranach */
    }

    .offer {
        margin-top: -35px;
        padding: 20px;
    }


    .offer img {
        height: 100px;
        width: 385px;
        z-index: 1;
        margin-left: 6px;
    }

    .dis {
        margin-top: 15px;
        height: 1440px;
        padding: 0;
    }

    .tekst {
        margin-top: -30px ;
        transform: translate(-50%);
    }

    .tekst a {
        font-size: 1rem; /* Zmniejszenie rozmiaru tekstu na mniejszych ekranach */
    }


}

@media (min-width: 501px) and (max-width: 768px) {

    .hero-text {
        margin-right: 0; /* Wyłączenie dużego marginesu */
        margin-left: 0; /* Ustawienie małego marginesu z lewej */
        width: 65%; /* Tekst zajmuje większość szerokości ekranu */
        font-size: 1.2rem; /* Zmniejszenie rozmiaru czcionki */
        top: 100px;
        transition: all 0.3s ease-in-out; /* Dodanie płynnego przejścia */
        text-align: left;
    
    }

    .hero-text h1 {
        font-size: 1.5rem; /* Zmniejszenie rozmiaru nagłówka */
        line-height: 1.4;
    }



    .background-text {
        top: 25%;
        left: 50%;
        transform: translate(-50%);
    }

    .background-text h2 {
        font-size: 3rem; /* Zmniejszenie rozmiaru tekstu na mniejszych ekranach */
    }

    .offer {
        margin-top: -35px;
        padding: 20px;
    }


    .offer img {
        height: 200px;
        width: 728px;
        z-index: 1;
        margin-left: 6px;
    }


    .dis {
        margin-top: -5px;
        height: 1200px;
        padding-left: 1%;
        padding-right: 1%;
    }



    .tekst {
        margin-top: 17px ;
        transform: translate(-50%);
    }

    .tekst h2 {
        font-size: 1rem; /* Zmniejszenie rozmiaru tekstu na mniejszych ekranach */
    }
}



@media (min-width: 769px) and (max-width: 1080px) {
    .offer {
        margin-top: -35px;
        padding: 20px;
        height: 120px;
    }


    .offer img {
        height: 200px;
        width: 728px;
        z-index: 1;
        margin-left: 140px;
        justify-items: center;
    }


    .dis {
        height: 1200px;
        padding-left: 12%;
        padding-right: 12%;
        margin-left: 20px;
        margin-top: -5px;
        
    }



    .hero-text {
        margin-right: 0; /* Wyłączenie dużego marginesu */
        margin-left: 120px; /* Ustawienie małego marginesu z lewej */
        width: 90%; /* Tekst zajmuje większość szerokości ekranu */
        font-size: 1.2rem; /* Zmniejszenie rozmiaru czcionki */
        text-align: left; /* Wyśrodkowanie tekstu */
        top: 140px;
        transition: all 0.3s ease-in-out; /* Dodanie płynnego przejścia */
    }

    .background-text {
        top: 38%;
        left: 50%;
        transform: translate(-50%);
    }

    .background-text h2 {
        font-size: 3rem; /* Zmniejszenie rozmiaru tekstu na mniejszych ekranach */
    }

    .tekst {
        top: 10%;
        left: 50%;
        transform: translate(-50%);
    }

    .tekst h2 {
        font-size: 3rem; /* Zmniejszenie rozmiaru tekstu na mniejszych ekranach */
    }
}

@media (min-width: 1081px) and (max-width: 1440px) {
    .hero-text {
        margin-right: 0; /* Wyłączenie dużego marginesu */
        margin-left: 180px; /* Ustawienie małego marginesu z lewej */
        width: 90%; /* Tekst zajmuje większość szerokości ekranu */
        font-size: 1.2rem; /* Zmniejszenie rozmiaru czcionki */
        text-align: left; /* Wyśrodkowanie tekstu */
        margin-top: 200px;
        transition: all 0.3s ease-in-out; /* Dodanie płynnego przejścia */
    }

}


/* Zdjeciedolne Section */
.zdjeciedolne {
    position: relative;
    color: #fff;
    overflow: hidden;
    max-height: 800px;
}

.zdjeciedolne img {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
    object-fit: cover;
}



/* Footer */
footer {
    background-color: #e9ecef;
    padding: 20px;
    text-align: center;
}

footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

footer .footer-content img {
    height: 50px;
}

footer address {
    font-style: normal;
    text-align: center;
    font-size: 0.9rem;
}

footer .footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 35px;
}

footer .footer-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

footer .footer-nav ul li a:hover {
    color: #333;
}

/* Ukrycie menu na mobilnych urządzeniach */
/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 15;
    position: relative; /* Utrzymanie stałej pozycji */
}

.hamburger span {
    display: block;
    height: 4px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Animacja hamburgera (przemiana w "X") */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Nawigacja */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    transition: all 0.3s ease-in-out;
}

/* Menu rozwijane na urządzeniach mobilnych */
.nav-links.mobile {
    display: none; /* Domyślnie menu jest ukryte */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-links li a {
    text-decoration: none;
    color: #000000;
    font-size: 22px;
    padding: 10px 20px;
    text-align: center;
}

.nav-links.active {
    display: flex; /* Wyświetlenie menu po kliknięciu hamburgera */
}

/* Responsywność */
@media (max-width: 768px) {
    header nav ul {
        display: none; /* Ukrycie menu na małych ekranach */
    }

    .nav-links {
        display: none; /* Domyślnie ukryta */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Wyświetlanie poniżej headera */
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 9; /* Zapewnienie, że lista nie przesłania logo ani hamburgera */
    }

    .nav-links li a {
        text-decoration: none;
        color: #333;
        font-size: 18px;
        padding: 10px 20px;
        text-align: center;
    }

    .hamburger {
        display: flex; /* Pokazanie hamburgera */
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-right: 0;
        text-align: center;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about img {
        width: 80%;
        margin-bottom: 20px;
    }

    .about-content a {
        margin: 0 auto;
        width: 90%;
    }

    .about-content .learn-more {
        margin: 20 auto;
    }

    .offer img {
        height: auto;
        width: 100%;
        clip-path: none;
    }
}

@media (max-width: 480px) {
    header .logo img {
        height: 60px;
    }

    header nav ul li a {
        font-size: 16px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .about img {
        width: 100%;
    }

    footer address {
        font-size: 0.8rem;
    }

    footer nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Responsywnosc */
@media (max-width: 1200px) {
    header nav ul {
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 3rem;
        margin-right: 20%;
    }

    .about-content a {
        margin: 0 0 10px 50px;
        width: 80%;
    }

    .about-content .learn-more {
        margin: 0 0 10px 50px;
    }

    .about img {
        width: 40%;
    }
}

@media (max-width: 768px) {
    header nav ul {
        display: none; /* Ukrycie menu na małych ekranach */
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hamburger {
        display: flex; /* Pokazanie hamburgera */
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-right: 0;
        text-align: center;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about img {
        width: 80%;
        margin-bottom: 20px;
    }

    .about-content a {
        margin: 0 auto;
        width: 90%;
    }

    .about-content .learn-more {
        margin: 0 auto;
    }

    .offer img {
        height: 100px;
        width: 100%;
        clip-path: none;
    }

    .offer{
        height: 150px;
    }

    .offer h2{
        margin-top: 20px;
    }

    .dis a{
        margin-top: 10px;
    }

    .tekst{
        top: 5%;
    }
}

@media (max-width: 480px) {
    header .logo img {
        height: 40px;
    }

    header nav ul li a {
        font-size: 16px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .about img {
        width: 100%;
    }

    footer address {
        font-size: 0.8rem;
    }

    footer nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* About Us Section */
.about {
    display: flex;
    flex-wrap: wrap; /* Pozwala na zawijanie elementów w przypadku małych ekranów */
    justify-content: space-between;
    gap: 40px;
    padding: 40px 20px;
    max-width: 970px;
    margin: 0 auto; /* Ustawienie sekcji w centrum */
}

.about-content {
    font-size: 1rem;
    text-align: left;
    flex: 1;
    min-width: 300px; /* Zapewnia minimalną szerokość dla każdego elementu */
}

.about-content a {
    font-size: 22px;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.about-content .learn-more {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 18px;
    margin-top: 20px;
    transition: color 0.3s;
}

.about-content .learn-more:hover {
    color: #007BFF;
}

.about-content .learn-more::after {
    content: ' →';
    font-size: 20px;
    margin-left: 8px;
    transition: margin-left 0.3s;
}

.about-content .learn-more:hover::after {
    margin-left: 12px;
}

.photo {
    flex: 1;
    min-width: 300px; /* Zapewnia minimalną szerokość dla każdego elementu */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.photo img {
    width: 100%;
    max-width: 450px; /* Maksymalna szerokość obrazu */
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* GALERIA */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin-top: 40%;
    margin: auto;
    display: block;
    width: 80%;
    width: 1100px;
    height: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

/* Responsywność galerii */ 
@media (max-width: 430px) {
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        padding-top: 370px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.9);
    }

    .modal-content {
        margin-top: 50%;
        margin: auto;
        display: block;
        width: 80%;
        width: 300px;
        height: 200px;
    }

    .next {
        right: 0;
        border-radius: 3px 0 0 3px;
    }
    
    .prev {
        left: 0;
    }
}

@media (min-width:431px) and  (max-width: 768px) {
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        padding-top: 220px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.9);
    }

    .modal-content {
        margin-top: 50%;
        margin: auto;
        display: block;
        width: 80%;
        width: 550px;
        height: 370px;
    }

    .next {
        right: 0;
        border-radius: 3px 0 0 3px;
    }
    
    .prev {
        left: 0;
    }
}

@media (min-width: 769px) and (max-width: 1080px) {
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        padding-top: 150px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.9);
    }

    .modal-content {
        margin-top: 50%;
        margin: auto;
        display: block;
        width: 80%;
        width: 800px;
        height: 600px;
    }
}