@font-face {
  font-family: 'Mochica';
  src: url('Mochica.otf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

body {
  font-family: 'Nosifer', sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Tło wideo */
#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Pasek u góry z lekkim rozmyciem */
.top-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 6;
}

/* Dostosowanie wysokości na urządzeniach mobilnych */
@media (max-width: 768px) {
  .top-blur {
    height: 10vh;
    backdrop-filter: blur(8px);
  }
}

@media (max-width: 480px) {
  .top-blur {
    height: 12vh;
    backdrop-filter: blur(6px);
  }
}

/* Nawigacja */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 10;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a, .sign-in {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  padding: 8px 12px;
  border: 2px solid rgba(169, 169, 169, 0.4);
  border-radius: 5px;
  background-color: rgba(169, 169, 169, 0.2);
  display: inline-block;
  transition: transform 0.3s ease, border-width 0.3s ease;
}

nav ul li a:hover, .sign-in:hover {
  transform: scale(1.1);
  border-width: 3px;
}

/* Dostosowanie nawigacji dla urządzeń mobilnych */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 10px 20px;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav ul li {
    margin: 10px 0;
  }
}

/* Kontener po prawej stronie */
.right-side-content {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 5;
}

.right-side-content img {
  width: 80%;
  max-width: 400px;
  display: block;
  margin: 0 auto 10px auto;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Dostosowanie kontenera obrazka dla urządzeń mobilnych */
@media (max-width: 768px) {
  .right-side-content {
    position: relative;
    top: auto;
    transform: none;
    margin-top: 20px;
    padding: 0 20px;
  }
  .right-side-content img {
    width: 100%;
    max-width: none;
  }
}

/* Animowany tekst */
.animated-text {
  font-family: 'Mochica', sans-serif;
  text-align: center;
  font-size: 1em;
  line-height: 1.5;
  margin: 0;
  padding: 5px;
  color: white;
}

.animated-text span {
  opacity: 0;
  display: inline-block;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dodatkowe dostosowania responsywne */
@media (max-width: 480px) {
  nav ul li a, .sign-in {
    font-size: 1em;
    padding: 6px 10px;
  }
  .animated-text {
    font-size: 0.9em;
  }
}
