html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}


.section {
  height: 100vh;           /* pełny ekran */
  scroll-snap-align: start; /* zatrzymuj się na początku sekcji */
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* usuń padding top i bottom lub daj minimalne */
  padding: 2rem;           /* np. lekki padding */
  display: flex;           /* ułatwia wycentrowanie treści */
  flex-direction: column;
  justify-content: center; /* wyśrodkuj pionowo */
  align-items: center;     /* wyśrodkuj poziomo */
}

.overlay {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.85);
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: brightness(0.5);
  z-index: 0;

  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- GALERIA ---------- */

.gallery-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.gallery-container {
  overflow-x: auto;
  white-space: nowrap;
  padding: 1rem 3rem; /* miejsce na strzałki po bokach */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE i Edge */
  position: relative;
}

.gallery-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.gallery-track {
  display: inline-flex;
  gap: 1rem;
  min-width: max-content;
}

.gallery-track img {
  max-height: 200px;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-track img:hover {
  transform: scale(1.05);
}

/* STRZAŁKI */

.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 20;
  font-size: 1.5rem;
  border-radius: 0.25rem;
  user-select: none;
  transition: background-color 0.3s ease;
}

.arrow-btn.left-0 {
  left: 0.5rem;
}

.arrow-btn.right-0 {
  right: 0.5rem;
}

.arrow-btn:hover {
  background-color: rgba(255, 255, 255, 0.85);
}


.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.input-field,
.textarea-field,
.input-file {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.input-field:focus,
.textarea-field:focus {
  outline: none;
  border-color: #2563eb; /* Tailwind blue-600 */
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.input-file {
  padding: 0.3rem 1rem;
  font-size: 0.9rem;
}

.submit-btn {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background-color: #1e40af; /* darker blue */
}


.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 1rem;
  color: white;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


@media (max-width: 768px) {
  html, body {
    margin: 0;
    overflow-x: hidden;
  }

  .section {
    margin: 0;

    height: auto;
    padding: 2rem 1rem 2rem 1rem; /* top, right, bottom, left */
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  .overlay {
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 0;
  }

  .gallery-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: auto;
  }

  .gallery-track {
    gap: 0.5rem;
  }

  .gallery-track img {
    max-height: 150px;
  }

  .arrow-btn {
    display: none; /* strzałki chowamy na mobilkach */
  }

  #kontakt,
  #moznosci,
  section:not(#work):not(:first-child) {

  }

  .contact-form {
    padding: 0 1rem;
  }

  .input-field,
  .textarea-field,
  .input-file {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }

  .submit-btn {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .hero-content {
    padding: 1.5rem;
  }
}
