@import url("https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap");

body,
html {
  background-color: rgb(37, 37, 37);
  font-family: "Inconsolata", monospace;
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
  color: #fff;
  height: 100vh;
}

a {
  text-decoration: none;
  font-style: normal;
  color: inherit;
  transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
  transform: scale(1.05); /* Легке збільшення кнопки */
  color: var(--color-prime);
}
h2 {
  font-size: 40px;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  padding: 0;
  margin: 0;
}
h3 {
  font-size: 30px;
}
.container {
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
  padding: 20px;
  z-index: 2;
  position: relative;
  height: auto;
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  display: none;
}

#cookie-banner p {
  margin: 0;
  font-size: 16px;
}

#cookie-banner button {
  background-color: #00fff6;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  font-size: 16px;
}

#cookie-banner button.decline {
  background-color: #ff00f2;
}

#cookie-banner button:hover {
  opacity: 0.8;
}

/* header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 70px;
}

.menu nav {
  display: flex;
  gap: 20px;
}

/* hero */

.hero {
  position: relative;
  width: 100%;
  height: 100%; /* Висота на весь екран */
  display: flex;
  justify-content: flex-end; /* Відео буде справа */
  background-color: rgb(37, 37, 37);
  color: #fff;
}

.hero-text {
  padding: 100px 0 50px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-text h1 {
  font-size: 65px;
}
.background-video {
  position: absolute;
  width: 75%;
  height: 100%;
  object-fit: cover; /* Забезпечує, щоб відео покривало 75% екрану */
  filter: brightness(0.7); /* Трохи затемнити відео */
}

/* Плавний перехід до темного сірого */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 1; /* Розміщує затемнення поверх відео */
}
.reviews {
  max-width: 400px;
  width: 100%;
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
}
.reviews img {
  border-radius: 10px;
  width: 70px;
}

.reviews-num img {
  width: 20px;
}

.reviews-num,
.reviews-text {
  display: flex;
  justify-content: center;
  align-items: center;
}
.button a {
  display: flex;
  align-items: center;
  gap: 10px;
  border: solid 1px #fff;
  padding: 10px;
  border-radius: 8px;
  transition: box-shadow 0.5s ease-in-out;
}

.button a:hover {
  box-shadow: 0 0 20px #00fff6; /* Кольорова тінь при ховері */
}
.button img {
  width: 30px;
}
.button {
  display: flex;
  gap: 20px;
}

/* about-container */

.about-container {
  min-width: 400px;
  align-content: center;
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-text {
  min-width: 400px;
  width: 80%;
  text-align: center;
}

.about-items {
  display: flex;
  gap: 20px;
  margin: 100px 0;
}

.about-item {
  background-color: #ff00f2;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 246, 0); /* Спочатку тінь прозора */
  transition: box-shadow 0.5s ease-in-out; /* Плавний перехід */
}

/* Стиль для зміни тіні при ховері */
.about-item:hover {
  box-shadow: 0 0 20px #00fff6; /* Кольорова тінь при ховері */
}

/* features */
.features-container {
  text-align: center;
  margin-bottom: 50px;
}

.features-item {
  position: relative;
  padding: 20px;
  background-color: #00fff6;
  border-radius: 10px;
  flex: 1;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 255, 246, 0);
  transition: box-shadow 0.5s ease-in-out;
}
.features-item:hover {
  box-shadow: 0 0 20px #00fff6; /* Кольорова тінь при ховері */
}

.large-number {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 110px;
  color: rgba(255, 255, 246, 0.5);
  z-index: 1; /* щоб цифра була на фоні */
  font-weight: 900;
}
.features-items-one,
.features-items-two {
  display: flex;
  gap: 20px;
}

/* galery */

.carousel {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.carousel-item {
  width: 33%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.modal {
  display: none; /* Спочатку модальне вікно приховане */
  position: fixed;
  z-index: 1;
  padding-top: 100px; /* Відступ для центрованого вікна */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Темний фон */
  overflow: auto;
  text-align: center;
}

.modal-content {
  margin: auto;
  width: 80%;
  max-width: 600px;
  transition: transform 0.3s ease-in-out;
}

.close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: white;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #f1f1f1;
  text-decoration: none;
  cursor: pointer;
}

.carousel img {
  width: 33%;
}

/* trailer */

.trailer {
  margin-top: 100px;
  background-image: url("./img/4.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 200px 0;
}
.trailer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Чорний колір з півпрозорістю */
  z-index: 1;
}

/* trailer */
.container-trailer {
  text-align: center;
}

button {
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 246, 0);
  transition: box-shadow 0.5s ease-in-out;
}

button:hover {
  background-color: #555;
  box-shadow: 0 0 20px #00fff6; /* Кольорова тінь при ховері */
}

/* Стиль для фону, який затемняє все поза відео */
.video-overlay {
  display: none; /* Спочатку приховано */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Затемнений фон */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Залишити поверх інших елементів */
}

/* Контейнер відео */
.video-container {
  position: relative;
  background-color: black;
  padding: 20px;
  border-radius: 10px;
}

iframe {
  border-radius: 10px;
}

/* При натисканні на відео не закривати його */
.video-container iframe {
  width: 854px;
  height: 480px;
}

/* pey-container */
.pey-container {
  text-align: center;
}

.pey-container-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
}

/* trailer-but */
.trailer-but {
  padding: 10px;
  font-size: 20px;
  border: solid 1px #fff;
  background-color: transparent;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 30px;
}

/* footer */
.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

/*scroll */
/* Стилізуємо скролбар для всіх елементів на сторінці */
::-webkit-scrollbar {
  width: 12px; /* Ширина скролбару */
  height: 12px; /* Висота скролбару (для горизонтального скролбару) */
}

/* Стилізуємо фонову частину скролбару */
::-webkit-scrollbar-track {
  background-color: #2f2f2f; /* Темно-сірий колір фону скролбару */
  border-radius: 10px; /* Закруглені кути */
}

/* Стилізуємо саму ручку скролбару */
::-webkit-scrollbar-thumb {
  background-color: #555555; /* Темно-сірий колір для скролбару */
  border-radius: 10px; /* Закруглені кути */
  border: 3px solid #2f2f2f; /* Темно-сірий колір для кордону навколо ручки */
}

/* Стилізуємо скролбар при ховері */
::-webkit-scrollbar-thumb:hover {
  background-color: #888888; /* Трохи світліший темно-сірий при ховері */
}

@media (max-width: 768px) {
  .header {
    min-width: 300px;
    width: 90%;
  }
  body {
    font-size: 14px;
  }

  .hero-text {
    padding: 20px 0;
  }

  .container {
    min-width: 300px;
    width: 100%;
  }

  .about-items {
    flex-direction: column;
    gap: 20px;
  }

  .about-item {
    min-width: 300px;
    width: 90%;
  }

  .features-items-one,
  .features-items-two {
    flex-direction: column;
    gap: 0;
  }

  .features-item {
    min-width: 300px;
    width: 80%;
  }

  .features-container,
  .about-text,
  .about-container,
  .container-trailer,
  .pey-container,
  .pey-container-button {
    min-width: 300px;
    width: 90%;
  }

  h2 {
    font-size: 22px;
  }

  .carousel {
    display: none;
  }

  .header .menu {
    display: none;
  }

  .footer {
    flex-direction: column;
    font-size: 13px;
  }

  .burger-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
  }

  .burger-bar {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 5px;
  }

  /* Стилі для мобільної версії */
  .menu nav {
    display: none; /* Сховати меню по замовчуванню на мобільних */
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: 60px; /* Відстань від верху */
    right: 20px;
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
  }

  .burger-icon {
    display: flex; /* Показати бургер-іконку на мобільних */
  }

  .menu.open nav {
    display: flex; /* Показати меню, коли воно відкрито */
  }
}
