* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

p {
  font-family: "trasandina", sans-serif;
  font-weight: 300;
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6,
li,
a {
  font-family: "trasandina", sans-serif;
  font-weight: 550;
  font-style: normal;
}

body {
  background-color: #c1c6c8;
}

/* Remove banner styles */
.banner {
  display: none;
}

@keyframes banner-fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.logo-container {
  display: none;
}

/* Zawartość */
.content {
  display: none;
  animation: fade-in 1s ease forwards;
  text-align: center;
  height: auto; /* Adjust height to avoid scrolling */
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Nawigacja */
.nav-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-self: flex-start;
  align-items: center;
  list-style: none;
  text-transform: uppercase;
  position: fixed; /* Make the navbar sticky */
  top: 0;
  overflow-y: auto;
  background-color: #53565a;
  padding: 12px 20px;
  transition: background-color 0.3s ease, padding 0.3s ease; /* Add transition for smooth animation */
  z-index: 1000; /* Ensure the navbar is above other content */
}

.nav-bar.scrolled {
  background-color: #53565a; /* Change background color when scrolled */
}

.nav-bar a {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease-in-out; /* Add transition for smooth animation */
}

.nav-bar a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px; /* Adjust the bottom position to be directly under the text */
  left: 0;
  background-color: #c1c6c8;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.nav-bar a:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

.nav-bar .logo a::before {
  content: none; /* Usunięcie pseudo-elementu ::before dla logo */
}

/* Remove underline effect */
.menu li a::after {
  content: none;
}

.menu {
  display: flex;
}
.menu li {
  padding-left: 30px;
}
.menu li a {
  display: inline-block;
  text-decoration: none;
  color: #c1c6c8;
  text-align: center;
  letter-spacing: 3px;
  transition: 0.15s ease-in-out;
  position: relative;
  text-transform: uppercase;
  transition: transform 0.3s ease;
}

/* Remove underline effect */
.menu li a::after {
  content: none;
}

.menu-logo {
  display: none; /* Domyślnie ukryte */
  text-align: center; /* Wyśrodkowanie logo */
  margin-bottom: 20px;
}

.menu-logo img {
  width: 300px; /* Dostosuj szerokość logo */
  height: auto;
  display: inline-block;
}

@media (max-width: 610px) {
  .menu-logo {
    display: block; /* Pokaż logo w wersji mobilnej */
  }
}

.open-menu,
.close-menu {
  position: absolute;
  color: #c1c6c8;
  cursor: pointer;
  font-size: 1.5rem;
  display: none;
}
.open-menu {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}
.close-menu {
  top: 20px;
  right: 20px;
}
#check {
  display: none;
}
@media (max-width: 610px) {
  .menu {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 100;
    background-color: #53565a;
    transition: all 0.2s ease-in-out;
  }
  .menu li {
    margin-top: 40px;
  }
  .menu li a {
    padding: 10px;
  }
  .open-menu,
  .close-menu {
    display: block;
  }
  #check:checked ~ .menu {
    right: 0;
  }
}

.logo img {
  width: 300px;
  /* Remove hover effect */
}

.logo a {
  text-decoration: none; /* Remove underline effect */
  border-bottom: none; /* Ensure no underline effect */
}

/* Animacja dla nawigacji */
@keyframes navbar-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.container {
  max-width: 1170px;
  margin: auto;
}
.row {
  display: flex;
  flex-wrap: wrap;
}
ul {
  list-style: none;
}
.footer {
  background-color: #53565a;
  padding: 70px 0;
  position: absolute;
  display: flex;
  width: 100%;
  margin-top: 0;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.logos {
  overflow: hidden;
  padding: 60px 0;
  align-items: center;
  background: #53565a;
  white-space: nowrap;
  position: relative;
}

.logos:before,
.logos:after {
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  content: "";
  z-index: 2;
}

.logos:before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #53565a);
}

.logos:after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #53565a);
}

.logos:hover .logos-slide {
  animation-play-state: paused;
}

.logos-slide {
  display: inline-block;
  animation: 70s slide infinite linear;
}

.logos-slide img {
  height: 50px;
  margin: 0 40px;
  transition: transform 0.3s ease-in-out; /* Poprawiona wartość czasu */
}

.logos-slide img:hover {
  transform: scale(1.1);
}

.copyright {
  color: #c1c6c8;
  font-size: 12px;
  text-align: center;
  padding: 20px 0;
  position: absolute;
  width: 100%;
  bottom: 0;
  font-family: "trasandina", sans-serif;
  font-weight: 300;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 1px;
}

.card-container, .card-container-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Adjust the gap between cards */
  justify-content: space-evenly; /* Align cards and text containers */

}

.text-container,
.kontakt-text {
  flex: 1 1 45%; /* Allow text container to take up similar space as cards */
  padding: 20px;
  color: #53565a;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 1px;
  max-width: 800px;
  text-align: left; /* Ensure the text is left-aligned */
}

.text-container.visible,
.kontakt-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-container h2,
.kontakt-text h2 {
  text-transform: uppercase;
  width: 100%;
  text-align: left; /* Ensure the heading is left-aligned */
  font-size: 50px;
}

.text-container p,
.kontakt-text p {
  width: 100%;
  text-align: left; /* Ensure the paragraph is left-aligned */
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 1px;
  max-width: 800px;
  text-align: left; /* Ensure the text is left-aligned */
}

.text-container .button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 0; /* Remove side padding */
  color: #53565a;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 20px; /* Ensure font size is consistent */
  position: relative;
  transition: color 0.3s ease;
  text-align: left; /* Ensure the button is left-aligned */
}

.text-container .button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 10px; /* Add a small gap */
  left: 0;
  background-color: #53565a;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.text-container .button:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

.text-container .button:hover {
  color: #53565a; /* Change text color on hover */
  text-align: left; /* Ensure the button is left-aligned */
}

.section:nth-child(3) .button::before {
  color: #c1c6c8; /* Change text color on hover for buttons in the section with "Våra referenser" */
  background-color: #c1c6c8; 
}

.omoss-container {
  height: 537px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.text-container .button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 10px; /* Add a small gap */
  left: 0;
  background-color: #53565a;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.text-container .button:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

.text-container .button:hover {
  color: #53565a; /* Change text color on hover */
  text-align: left; /* Ensure the button is left-aligned */
}

.section:nth-child(3) .button::before {
  color: #c1c6c8; /* Change text color on hover for buttons in the section with "Våra referenser" */
  background-color: #c1c6c8; 
}

.card {
  width: 20rem; /* Revert width */
  height: 32rem; /* Revert height */
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  color: #c1c6c8;
  box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  margin: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;

  img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.9;
    transition: all 0.2s ease-out;
  }

  h2 {
    position: absolute;
    inset: auto auto 30px 30px;
    margin: 0;
    transition: inset 0.3s 0.3s ease-out;
    text-transform: uppercase;
  }

  p,
  a {
    position: absolute;
    opacity: 0;
    max-width: 80%;
    transition: opacity 0.3s ease-out;
  }

  p {
    inset: auto auto 80px 30px;
    text-align: left;
    margin-top: 5px;
  }

  a {
    inset: auto auto 40px 30px;
    color: inherit;
    text-transform: uppercase;
    text-decoration: none;
  }

  &:hover h2 {
    inset: auto auto 70px 30px;
    transition: inset 0.3s ease-out;
  }

  &:hover p,
  &:hover a {
    opacity: 1;
    transition: opacity 0.5s 0.1s ease-in;
  }

  &:hover img {
    transition: opacity 0.3s ease-in;
    opacity: 1;
    filter: grayscale(100%) sepia(20%) hue-rotate(180deg) saturate(200%)
      brightness(80%);
  }
}

.card a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #c1c6c8;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.card a:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card p {
  max-height: 10rem; /* Adjust the height as needed */
  overflow: hidden;
  text-overflow: ellipsis;
}

.material-symbols-outlined {
  vertical-align: middle;
}

/* Add padding to each section */
/* Global section settings for uniform height */
.section {
  padding: 40px 0; /* Maintain internal padding */
  min-height: 40rem; /* Set a consistent minimum height for all sections */
  display: flex; /* Center content */
  flex-direction: column;
  justify-content: center;
  margin-top: 20px;
  align-items: center;
}

.section:first-of-type {
  margin-top: 102px; /* Adjust the margin to match the space between sections */
}

.omoss,
.kontakt {
  min-height: 32rem; /* Zapewnienie tej samej wysokości */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px; /* Dodanie odstępów */
}

/* Optional adjustments for smaller screens */
@media (max-width: 610px) {
  .section,
  .omoss,
  .kontakt {
    min-height: auto; /* Automatyczna wysokość na węższych ekranach */
    padding: 20px 10px; /* Zmniejszenie odstępów */
  }
}

.section:nth-child(odd) {
  background-color: #53565a;
  color: #c1c6c8;
}

.section:nth-child(even) {
  background-color: #c1c6c8;
  color: #53565a;
}

/* ...existing code... */

.section:nth-child(4) {
  background-color: #c1c6c8; /* Change background color for the fourth section */
  color: #53565a; /* Ensure text is readable on the new background */
}

/* ...existing code... */

.omoss-container {
  display: flex;
  flex-direction: row; /* Change to row to align items horizontally */
  align-items: flex-start; /* Align items to the top */
  padding: 20px;
}

.omoss-text {
  flex: 1 1 45%; /* Allow text container to take up similar space as cards */
  padding: 20px;
  color: #53565a;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 1px;
  max-width: 800px;
  text-align: left; /* Ensure the text is left-aligned */
}

.omoss-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-container h2 {
  text-transform: uppercase;
  width: 100%;
  text-align: left; /* Ensure the heading is left-aligned */
  font-size: 50px;
}

.text-container p {
  width: 100%;
  text-align: left; /* Ensure the paragraph is left-aligned */
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 1px;
  max-width: 800px;
  text-align: left; /* Ensure the text is left-aligned */
}

.omoss-text h2 {
  text-transform: uppercase;
  width: 100%;
  text-align: left; /* Ensure the heading is left-aligned */
  font-size: 50px;
}

.omoss-text p {
  width: 100%;
  text-align: left; /* Ensure the paragraph is left-aligned */
}

.text-container .button,
.omoss-text .button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 0; /* Remove side padding */
  color: #53565a;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 20px; /* Ensure font size is consistent */
  position: relative;
  transition: color 0.3s ease;
  text-align: left; /* Ensure the button is left-aligned */
}

.text-container .button::before,
.omoss-text .button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 10px; /* Add a small gap */
  left: 0;
  background-color: #53565a;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.text-container .button:hover::before,
.omoss-text .button:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

.text-container .button:hover,
.omoss-text .button:hover {
  color: #53565a; /* Change text color on hover */
  text-align: left; /* Ensure the button is left-aligned */
}

/* ...existing code... */

.omoss-squares {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Create a 2x2 grid */
  gap: 20px;
  margin-right: 20px; /* Add margin to the right */
}

.omoss-square {
  width: 25rem; /* Adjust width to match .card */
  height: 10rem; /* Adjust height to match .card */
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  color: #53565a;
  box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  margin: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, color 0.3s ease;
}

.omoss-square.visible {
  opacity: 1;
  transform: translateY(0);
}

.omoss-square .icon {
  color: #53565a;
  border-radius: 50%;
  padding: 15px;
  display: inline-block;
  font-size: 24px;
  position: absolute; /* Position absolute for top left corner */
  top: -10px;
  left: -5px;
  font-family: "trasandina", sans-serif;
  font-weight: 550;
  font-style: normal;
  transition: color 0.3s ease;
}

.omoss-square h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 30px;
  text-transform: uppercase;
  color: #53565a;
  text-align: center; /* Ensure the text is centered */
  transition: color 0.3s ease;
}

.omoss-square p {
  position: absolute;
  opacity: 0;
  max-width: 80%;
  transition: opacity 0.3s ease-out;
  inset: auto auto 20px 30px;
  text-align: left;
  margin-top: 5px;
  color: #53565a;
}

.omoss-square:hover h3 {
  inset: auto auto 230px 30px;
  transition: inset 0.3s ease-out;
}

.omoss-square:hover p {
  opacity: 1;
  transition: opacity 0.5s 0.1s ease-in;
}

.omoss-square:hover {
  box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
}

.omoss-square:hover .icon {
  color: #53565a;
}

.omoss-square:hover h3 {
  color: #53565a;
}

.omoss-square:hover p {
  color: #53565a;
}

/* ...existing code... */

.kontakt-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.kontakt-text,
.kontakt-form {
  max-width: 800px;
  text-align: center;
  color: #c1c6c8;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.kontakt-text.visible,
.kontakt-form.visible {
  opacity: 1;
  transform: translateY(0);
}

.kontakt-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kontakt-form input,
.kontakt-form textarea,
.kontakt-form button {
  padding: 10px;
  border: 1px solid #53565a;
  border-radius: 5px;
}

.kontakt-form button {
  background-color: #53565a;
  color: #c1c6c8;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.kontakt-form button:hover {
  background-color: #c1c6c8;
  color: #53565a;
}

.kontakt {
  background-color: #53565a;
  color: #c1c6c8;
}

.cards {
  transform: scale(0.9);
}

/* ...existing code... */

/* Apply hover effect to all a links except those in .logos-slide and .logo */
a {
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #c1c6c8;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

a:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

a:hover {
  color: #c1c6c8;
}

/* Exclude hover effect for .logos-slide and .logo */
.logos-slide a::before,
.logo a::before {
  content: none;
}

/* ...existing code... */

/* ...existing code... */

.text-container .button,
.omoss-text .button,
.kontakt-text .button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 0; /* Remove side padding */
  color: #53565a;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 20px; /* Ensure font size is consistent */
  position: relative;
  transition: color 0.3s ease;
  text-align: left; /* Ensure the button is left-aligned */
}

.text-container .button::before,
.omoss-text .button::before,
.kontakt-text .button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 10px; /* Add a small gap */
  left: 0;
  background-color: #53565a;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.text-container .button:hover::before,
.omoss-text .button:hover::before,
.kontakt-text .button:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

.text-container .button:hover,
.omoss-text .button:hover,
.kontakt-text .button:hover {
  color: #53565a; /* Change text color on hover */
  text-align: left; /* Ensure the button is left-aligned */
}

/* ...existing code... */

/* ...existing code... */

.kontakt-text .button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 0; /* Remove side padding */
  color: #c1c6c8;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 20px; /* Ensure font size is consistent */
  position: relative;
  transition: color 0.3s ease;
  text-align: left; /* Ensure the button text is left-aligned */
  align-self: flex-start; /* Align the button to the left */
}

.kontakt-text .button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 10px; /* Add a small gap */
  left: 0;
  background-color: #c1c6c8;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.kontakt-text .button:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

.kontakt-text .button:hover {
  color: #c1c6c8; /* Change text color on hover */
  text-align: left; /* Ensure the button text is left-aligned */
}

/* ...existing code... */

/* ...existing code... */

.kontakt-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align items to the left */
  max-width: 800px;
  text-align: left;
  color: #c1c6c8;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.kontakt-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.kontakt-text .button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 0; /* Remove side padding */
  color: #c1c6c8;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 20px; /* Ensure font size is consistent */
  position: relative;
  transition: color 0.3s ease;
  text-align: left; /* Ensure the button is left-aligned */
}

.kontakt-text .button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 10px; /* Add a small gap */
  left: 0;
  background-color: #c1c6c8;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.kontakt-text .button:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

.kontakt-text .button:hover {
  color: #c1c6c8; /* Change text color on hover */
  text-align: left; /* Ensure the button is left-aligned */
}

/* ...existing code... */

/* ...existing code... */

.video-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Ensure the video container takes the full viewport height */
  display: flex;
  align-items: flex-end; /* Align the video to the bottom */
}

#full-width-video {
  width: 100%;
  height: auto;
  z-index: 0; /* Ensure the video is visible */
  position: relative;
  padding-bottom: 40px; /* Add padding to the bottom of the video */
  object-fit: cover; /* Ensure the video covers the screen */
  max-height: 100vh; /* Ensure the video fits within the screen height */
  /*filter: grayscale(100%) sepia(20%) hue-rotate(180deg) saturate(200%) brightness(80%); */
}


/* ...existing code... */
.video-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  width: 600px; /* Increase the width of the logo */
  height: auto; /* Maintain aspect ratio */
}

.video-slogan {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  width: 100%;
  font-size: 30px;
  line-height: 1.6;
  letter-spacing: 1px;
  transition: opacity 1s ease-in-out;
  height: auto; /* Maintain aspect ratio */
  margin-top: 80px;
  color: #c1c6c8;
}
.video-logo.visible {
  opacity: 1;
}

.video-slogan.visible {
  opacity: 1;
}

/* ...existing code... */

.nav-bar a.active::before {
  visibility: visible;
  transform: scaleX(1);
}


.large-card {
  width: 40rem; /* Increase the width */
  height: 40rem; /* Increase the height */
}

/* ...existing code... */

.card-container {
margin-bottom: 30px;
}

/* ...existing code... */

/* ...existing code... */



/* ...existing code... */
