/* --- Plik style.css --- */

/* Import czcionki Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

body {
    margin: 0;
    padding: 0;
    /* Zmiana czcionki na Montserrat SemiBold */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background-color: rgb(0, 0, 0); /* Tło body */
    color: rgb(255, 255, 255); /* Tekst body */
}

/* Wielkość LOGO */
.main-text {
    width: 650px;
    height: auto;
}

/* Dla mniejszych ekranów, aby menu nie było zbyt ciasne */
@media (max-width: 1250px) {
    .menu-srodek {
        width: 850px; /* Nieco szerzej dla mniejszych ekranów */
    }
    
    .menu-przycisk {
        width: 170px; /* Przycisk nieco węższy */
    }
}

.sekcja {
    min-height: 100vh;
}

a {
    color: rgb(255, 255, 255); /* Linki białe */
    text-decoration: none;
}

.ayt {
    color: black;
}

.afb {
    color: black;
}

.ayt:hover {
    color: #ff0000;
}

.afb:hover {
    color: #1877F2;
}

.glowna {
    background-color: rgb(0, 0, 0); /* Tło sekcji głównej */
    height: 100vh;
    position: relative;
    z-index: 1; 
    overflow: hidden;
}

.glowna-logo {
    width: 100%;
    text-align: center;
    height: 70vh;
    padding-top: 14vh;
    overflow: hidden;
}

.glowna-przycisk {
    width: auto;
    height: 20vh;
    text-align: center;
    font-size: 20px;
    margin-top: 15px;
}

.glowna-dolacz {
    border: 1px solid rgb(255, 255, 255); /* Obramowanie białe */
    border-radius: 20px;
    color: rgb(255, 255, 255);
    width: 200px;
    text-align: center;
    margin: 0 auto;
    padding: 10px 15px;
}

.glowna-dolacz:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    cursor: pointer;
}

.logo {
    font-size: 78px;
    width: 450px;
    margin: 0vh auto 0 auto;
    padding-top: 0;
    background: rgb(255, 255, 255); /* Tekst biały */
    -webkit-background-clip: text;
    -webkit-text-stroke: 6px transparent;
    color: rgb(255, 255, 255);
    /* Nadpisanie fontu dla logo */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    display: block;
    position: relative;
    z-index: 5;
}

/* Animacje logo pozostają bez zmian */
@-webkit-keyframes logo {
    0% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
    50% { -webkit-transform: translateY(-4px); transform: translateY(-4px); }
    100% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}

@keyframes logo {
    0% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
    50% { -webkit-transform: translateY(-4px); transform: translateY(-4px); }
    100% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}

@-webkit-keyframes logo-float {
    100% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}

@keyframes logo-float {
    100% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}

.logo:hover,
.logo:focus,
.logo:active {
    cursor: pointer;
    -webkit-animation-name: logo-float, logo;
    animation-name: logo-float, logo;
    -webkit-animation-duration: .3s, 1.5s;
    animation-duration: .3s, 1.5s;
    -webkit-animation-delay: 0s, .3s;
    animation-delay: 0s, .3s;
    -webkit-animation-timing-function: ease-out, ease-in-out;
    animation-timing-function: ease-out, ease-in-out;
    -webkit-animation-iteration-count: 1, infinite;
    animation-iteration-count: 1, infinite;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-direction: normal, alternate;
    animation-direction: normal, alternate;
}

/* Przycisk języka - ciemny motyw */
.myButton-dark {
    position: fixed;
    top: 21px;
    right: 2%;
    text-align: center;
    background-color: rgb(0, 0, 0);
    border-radius: 24px;
    display: inline-block;
    cursor: pointer;
    color: rgb(255, 255, 255);
    border: 1px solid rgb(255,255,255);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
}
.myButton-dark:hover {
	background-color: rgb(50, 50, 50);
}

/* Przycisk zmiany motywu - poprawione pozycjonowanie */
.theme-button {
    right: 150px; /* Pozycjonowanie na lewo od przycisku PL/EN */
}

.glowna-przycisk h2 {
    font-size: 16px;
    color: rgb(255, 255, 255);
}

.menu {
    z-index: 9999;
    width: 100%;
    background-color: rgb(255, 255, 255); /* Tło menu białe */
    height: 10vh;
    position: fixed;
    color: rgb(0, 0, 0); /* Tekst menu czarny */
    top: 0;
    left: 0;
}

.menu-srodek {
    width: 1000px; /* ZWIĘKSZONO SZEROKOŚĆ, ABY NIE UCINAŁO */
    margin: 0 auto;
    position: relative;
}

.menu-przycisk {
    float: left;
    width: 200px; /* ZWIĘKSZONO SZEROKOŚĆ PRZYCISKU */
    line-height: 10vh; /* Dopasowane do wysokości menu */
    text-align: center;
    color: rgb(0, 0, 0); /* Tekst czarny */
    white-space: nowrap; /* Utrzymuje tekst w jednej linii */
    font-size: 14px; /* Nieco mniejsza czcionka, by zmieścić więcej */
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    overflow: hidden;
}

.menu-przycisk-social {
    position: fixed;
    top: 0;
    line-height: 10vh;
    text-align: center;
    z-index: 10000;
}

.yt {
    left: 30px; /* Pozycjonowanie ikon */
    font-size: 32px;
}

.yt:hover {
    cursor: pointer;
    color: rgb(255, 0, 0);
}

.fb {
    left: 90px; /* Pozycjonowanie ikon */
    font-size: 32px;
}

.fb:hover {
    cursor: pointer;
    color: rgb(24, 119, 242);
}

.menu-przycisk:hover {
    cursor: pointer;
    color: rgb(100, 100, 100);
    font-weight: bold;
}

.menu-przycisk:before {
    position: absolute;
    z-index: -1;
    left: 0;
    right: 100%;
    bottom: 0;
    background: rgb(0, 0, 0);
    height: 1px;
    -webkit-transition-property: right;
    transition-property: right;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    content: "";
}

.menu-przycisk:hover:before,
.menu-przycisk:focus:before,
.menu-przycisk:active:before {
    right: 0;
}

/* okienko o nas - odwrócone (białe tło) */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;
    border-radius: 10px;
    z-index: 10;
    background-color: rgb(255, 255, 255); /* BIAŁE TŁO */
    border: 1px solid rgb(0, 0, 0); /* CZARNE OBRAMOWANIE */
    width: 500px;
    max-width: 80%;
    color: rgb(0, 0, 0); /* CZARNY TEKST */
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header .title {
    font-size: 1.25rem;
    font-weight: bold;
    color: rgb(0, 0, 0); /* CZARNY TYTUŁ */
}

.modal-header .close-button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    color: rgb(0, 0, 0); /* CZARNY PRZYCISK */
    font-size: 1.25rem;
    font-weight: bold;
}

.modal-body {
    padding: 10px 15px;
    color: rgb(0, 0, 0); /* CZARNY TEKST BODY */
}

#overlay {
    position: fixed;
    opacity: 0;
    transition: 200ms ease-in-out;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5); /* CZARNY OVERLAY */
    pointer-events: none;
}

#overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* SEKCJA PRODUKTY */
.produkty {
    background-color: rgb(0, 0, 0);
}

.produkt {
    box-shadow: 5px 5px 5px 0px rgba(255, 255, 255, 0.3); /* Cień jasny */
    font-size: 90%;
}

.produkt img {
    background-size: 100% 100%;
}

.produkt_1, .produkt_2, .produkt_3, .produkt_4, .produkt_5 {
    width: 15%;
    position: absolute;
    margin: auto;
    top: 105%;
    height: 85vh;
    cursor: pointer;
}
.produkt_1 { left: 2.5%; }
.produkt_2 { left: 22.5%; }
.produkt_3 { left: 42.5%; }
.produkt_4 { left: 62.5%; }
.produkt_5 { left: 82.5%; }

.hoverProdukt {
    transition: all .3s ease;
}

.hoverProdukt:hover {
    background-size: auto 110%;
    opacity: 0.8;
}

/* Obrazy produktów bez zmian, zakładam że są ciemne */
.produkt_1 { background-image: url('../img/1.jpg'); background-size: auto 100%; }
.produkt_2 { background-image: url('../img/2.jpg'); background-size: auto 100%; background-position: center; }
.produkt_3 { background-image: url('../img/3.jpg'); background-size: auto 100%; background-position: center; }
.produkt_4 { background-image: url('../img/4.jpg'); background-size: auto 100%; background-position: center; }
.produkt_5 { background-image: url('../img/5.jpg'); background-size: auto 100%; background-position: center; }

.produkt_h1 {
    top: 0;
    position: fixed;
    width: 100%;
    height: 10vh;
    text-align: center;
    color: rgb(255, 255, 255); /* Tekst biały */
    font-size: 250%;
    background-color: rgb(0, 0, 0); /* Tło czarne */
    z-index: 3;
    width: 59%;
    visibility: hidden;
    right: 0;
    left: 0;
    margin: auto;
    padding-top: 20px;
}

.produkt h1 {
    color: rgb(255, 255, 255);
    opacity: 0;
    background: rgba(0, 0, 0, 0.7); /* Tło napisu ciemne */
    position: absolute;
    width: 100%;
    height: 10%;
    padding-top: 3%;
    bottom: 0;
    margin: auto;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-weight: 100;
}

.produktBtn {
    font-size: 20px;
    font-weight: bold;
    position: fixed;
    background-color: rgb(0, 0, 0);
    right: 0;
    left: 0;
    top: 88%;
    visibility: hidden;
    text-decoration: none;
    z-index: 6;
    margin: auto;
    width: 200px;
    text-align: center;
    padding-top: 12px;
    box-sizing: border-box;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 60px 60px 60px 60px;
    height: 50px;
    cursor: pointer;
    transition: all .2s ease;
    color: white;
}

.produktBtn:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}

.bgc {
    position: fixed;
    width: 0%;
    height: 100%;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3); /* Overlay jasny */
    z-index: 2;
}

.misja {
    background-color: rgb(0, 0, 0);
}

.misjaText {
    text-align: center;
    padding-top: 5%;
    width: 100%;
    color: rgb(255, 255, 255);
    height: 82%;
    background-color: rgb(0, 0, 0);
}

.misjaText i {
    color: rgb(255, 255, 255);
    right: 5%;
    font-size: 400px;
    position: absolute;
    top: 250%;
}

/* SEKCJA REALIZACJE */
.realizacje {
    background-color: rgb(0, 0, 0);
}

.realizacja {
    width: 18%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 1px solid #222;
    float: left;
    margin-right: 1%;
    margin-left: 1%;
    margin-bottom: 1.5%;
}

.realizacja:hover {
    background-color: rgb(255, 255, 255);
}

.realizacja img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* SEKCJA KONTAKT */
.kontakt {
    text-align: center;
    background-color: rgb(0, 0, 0);
    height: 90vh;
    color: rgb(255, 255, 255);
}

.mapa {
    width: 95%;
    margin: auto;
    height: 65vh;
}

.info {
    width: 70%;
    float: left;
    height: 10vh;
}

.info::before {
    background-color: rgb(255, 255, 255);
    width: 3px;
    height: 35%;
    position: absolute;
    margin: auto;
    right: 33%;
    content: "";
    cursor: pointer;
    z-index: 5;
}

.info p span {
    font-weight: bold;
}

.info h1 {
    font-size: 18px;
}

.info p {
    padding-top: 60px;
}

.dane {
    width: 30%;
    float: left;
    height: 10vh;
}

.dane h1 {
    font-size: 18px;
}

.dane h3 {
    text-align: left;
    font-size: 14px;
    font-weight: 100;
}

.dane p {
    width: 50%;
    float: left;
    text-align: center;
}

.stopScroll {
    height: 100%;
    overflow: hidden;
}