/*
 * Globals
 */

/* Skip navigation link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #c0a965;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* Custom default button */
#background-video {
    position: absolute; /* Fixed, aby wideo pozostało w tle podczas scrollowania */
    top: 0;
    left: 0;
    width: 100%; /* Ustawienie szerokości na 100% widocznego obszaru przeglądarki */
    height: 100%; /* Ustawienie wysokości na 100% widocznego obszaru przeglądarki */
    object-fit: cover; /* Zabezpieczenie, aby wideo dopasowywało się proporcjonalnie */
    z-index: -2; /* Ustawienie wideo daleko w tle */
}

/* Sekcja z zawartością i przezroczystym tłem */
.cover-container {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 20px;
    min-height: 100vh; /* Zapewnienie, że sekcja z wideo zajmuje całą wysokość ekranu */
}

/* Sekcja z białym tłem */
.section-white {
    z-index: 1; /* Sekcja biała nad wideo */
    background-color: #151715;
    color: black;
    padding: 50px 20px;
    text-align: center;
    width: 100%; /* Zmienione na 100% */
    min-height: 100vh; /* Zapewnienie, że sekcja z białym tłem zajmuje całą wysokość ekranu */
    margin: 0; /* Usunięcie marginesów */
}

/* Styl dla treści */

h1 {
    color: white;
    margin: 70px 0;
}

h1, p {
    z-index: 2; /* Treść musi być nad półprzezroczystym tłem */
}

header {
    text-shadow: 2px 2px 12px black;
    margin-right: 23%;
    margin-left: 23%;
    z-index: 2; /* Header musi być nad wideo */
}

/* Dodanie overflow-x: hidden do body */
body {
    overflow-x: hidden;
    font-family: "Antic Didone", serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 3px; /* Adjust the value as needed */


}


.btn-light,
.btn-light:hover,
.btn-light:focus {
    color: #fff;
    text-shadow: none; /* Prevent inheritance from `body` */
}


/*
 * Base structure
 */

body {
    text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
    box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);
}

::-webkit-scrollbar {
    width: 12px; /* Szerokość scrollbara */
}

::-webkit-scrollbar-track {
    background: #2c2c2c; /* Kolor tła scrollbara */
    border-radius: 6px; /* Zaokrąglone rogi */
}

::-webkit-scrollbar-thumb {
    background-color: #1b1b1b; /* Kolor kciuka scrollbara */
    border-radius: 6px; /* Zaokrąglone rogi kciuka */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #454545; /* Kolor kciuka podczas najechania */
}

html { font-size: 100% !important; }
/*
 * Header
 */

.nav-masthead .nav-link {
    color: #fff;
    border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
    border-bottom-color: #fff;
}

.nav-masthead .nav-link + .nav-link {
    margin-left: 1rem;
}

.nav-masthead .active {
    color: #fff;
    border-bottom-color: white;
}


.icon-box {
    text-align: center;
    padding: 20px;
    color: white; /* Matching font color */
    background-color: #333; /* Background color for the boxes */
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
}

.icon-box i {
    font-size: 30px; /* Icon size reduced */
    margin-bottom: 8px;
    color: #c0a965; /* Icon color */
}

.icon-box h5 {
    font-size: 16px; /* Reduced font size */
    margin: 0;
    color: white; /* Text color */
}

.icon-box p {
    font-size: 12px; /* Reduced font size for descriptions */
    color: white;
}


.contact-container {
    padding: 40px 0;
}

.contact-info i {
    font-size: 24px;
    color: #c0a965;
    margin-right: 10px;
}

.contact-info p {
    margin: 0;
}

.form-control, .btn {
    border: 1px solid #c0a965;
    background-color: #333;
    color: #c0a965;
}

.form-control:focus {
    box-shadow: none;
}

.form-control::placeholder {
    color: white;
}

.btn {
    margin-top: 10px;
}

.footer {
    color: #c0a965;
    font-size: 14px;
    margin-top: 20px;
}

.card {
    background-color: rgb(24 26 27);
    color: white;
    border: 1px solid #333330;
}

.img-container {
    overflow: hidden;

}

.zoom-img {
    cursor: pointer;
    height: 500px;
    max-height: 500px;
    transform: scale(3); /* Początkowe przybliżenie */
    object-fit: cover;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s cubic-bezier(.4,1.7,.7,1.01), box-shadow 0.25s;
    will-change: transform;
}

.zoom-img.visible-zoom {
    animation: zoomOut 15s ease forwards;
}

@keyframes zoomOut {
    from {
        transform: scale(1.2); /* Przybliżenie na początku */
    }
    to {
        transform: scale(1); /* Powolne oddalenie do normalnego rozmiaru */
    }
}

.zoom-img:hover, .zoom-img:focus {
  transform: scale(1.045);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
  z-index: 2;
}

::placeholder {
    color: white;
    opacity: 1; /* Firefox */
}


.row {
    display: -ms-flexbox; /* IE10 */
    display: flex;
    -ms-flex-wrap: wrap; /* IE10 */
    flex-wrap: wrap;
    padding: 0 4px;
}

/* Create four equal columns that sit next to each other */
.column {
    -ms-flex: 25%; /* IE10 */
    flex: 25%;
    max-width: 25%;
    padding: 0 4px;
}

.column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
}

/* Responsive layout - makes a two column layout instead of four columns */
@media screen and (max-width: 800px) {
    .column {
        -ms-flex: 50%;
        flex: 50%;
        max-width: 50%;
    }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .column {
        -ms-flex: 100%;
        flex: 100%;
        max-width: 100%;
    }
}

/* Modal */
.modal {
    display: none; /* Ukryty na początku */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100vw; /* 100% szerokości widoku */
    height: 100vh; /* 100% wysokości widoku */
    overflow: hidden; /* Ukrywa przewijanie */
    background-color: rgba(0, 0, 0, 0.8); /* Przezroczysty czarny */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s; /* Animacja otwierania */
}

.modal img {
    width: 100%; /* 100% szerokości modalu */
    height: 100%; /* 100% wysokości modalu */
    object-fit: contain; /* Dostosowuje obraz do rozmiarów modalu */
}

.close {
    position: absolute;
    top: 20px; /* Przesunięcie w dół */
    right: 35px; /* Przesunięcie w prawo */
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Styl przycisków do przewijania */
button {
    background-color: rgba(255, 255, 255, 0.3); /* Przezroczyste białe tło */
    color: white; /* Biały tekst */
    border: none; /* Bez obramowania */
    border-radius: 5px; /* Zaokrąglone rogi */
    padding: 10px; /* Padding wewnętrzny */
    cursor: pointer; /* Kursor jako wskaźnik */
    font-size: 20px; /* Rozmiar czcionki */
    transition: background-color 0.3s; /* Płynna zmiana koloru tła */
}

button:hover {
    background-color: rgba(255, 255, 255, 0.5); /* Jaśniejsze tło podczas najechania */
}

/* Animacja otwierania modala */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.social-links {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.social-links a {
    margin-bottom: 20px;
}

.social-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 1;
}

/* --- GALERIA --- */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}
.gallery img {
    width: calc(25% - 10px);
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}
.gallery img:hover {
    transform: scale(1.03);
}

/* --- MODAL --- */
#imgModal {
  display: none;
  background: rgba(0,0,0,0.85);
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
.modal-close-btn {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
}
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.modal-prev { left: 32px; }
.modal-next { right: 32px; }
.modal-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 32px #000a;
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
  display: block;
  margin: auto;
}

/* --- MAIL LINK --- */
.mail-link {
  color: #c0a965;
}

/* --- LOGO SVG --- */
.logo-svg-wrap {
  display: flex;
  align-items: center;
}
.logo-svg {
  height: 20px !important;
  width: 20px !important;
  margin-right: 10px;
}

/* --- SCROLL NAV BUTTONS --- */
.scroll-next-section-btn, .scroll-prev-section-btn {
  display: none !important;
}
.scroll-nav-btn {
  position: fixed;
  right: 32px;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 12px #0006;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-nav-btn[hidden] { display: none !important; }
.scroll-nav-btn:hover {
  background: #c0a965;
  color: #232323;
  opacity: 1;
}
#scrollDownBtn { bottom: 32px; }
#scrollUpBtn { bottom: 92px; }

.brand-flex {
  display: flex;
  align-items: center;
}

#kontakt {
  min-height: unset;
}

/* --- CONTACT SECTION CENTERING FOR REALIZACJE + MODERN GRADIENT BG --- */
#kontakt-stopka {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  /* Modern dark gradient background */
  background: linear-gradient(135deg, #18191a 0%, #232526 60%, #18191a 100%);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
  border-radius: 18px;
}
#kontakt-stopka .row {
  width: 100%;
  justify-content: center;
  display: flex;
}
#kontakt-stopka .col-md-6 {
  text-align: center;
}
@media (max-width: 768px) {
  #kontakt-stopka {
    min-height: 220px;
    padding: 20px 0;
    border-radius: 10px;
  }
}

/* --- USUŃ MARGIN-TOP I MARGIN-BOTTOM DLA SEKCJI W WIDOKACH KOLEKCJI, ZASTĄP WIĘKSZYM PADDINGIEM --- */
section {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}
