body {
  margin: 0;
  font-family: 'Comfortaa', 'Quicksand', 'Poppins', sans-serif;
  color: red;
  text-align: center;
  background-image: url('fon.png');
  background-color: #000;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}
h1, h2, h3, p {
  animation: pulse-glow 4s ease-in-out infinite;
  text-shadow: 0 0 4px red, 0 0 8px #ff4444, 0 0 12px #ff4444;
}

@keyframes pulse-glow {
  0% {
    text-shadow: 0 0 4px red, 0 0 8px #ff4444, 0 0 12px #ff4444;
  }
  50% {
    text-shadow: 0 0 8px red, 0 0 16px #ff4444, 0 0 24px #ff4444;
  }
  100% {
    text-shadow: 0 0 4px red, 0 0 8px #ff4444, 0 0 12px #ff4444;
  }
}
.stage {
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
}

.logo-fullscreen {
  width: 100vw;
  height: 100vh;
  background-image: url('nix-logo-final.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  animation: logo-fadein 2s ease-out forwards, logo-fadeout 2s ease-out 2s forwards;
}


@keyframes logo-fadein {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logo-fadeout {
  to {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* Привітання */
.greeting {
  font-size: 2.5rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 2s ease;
}

.greeting.zoom-in {
  opacity: 1;
  transform: scale(1.7);
}

@keyframes greeting-fadein {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes greeting-fadeout {
  from {
    opacity: 1;
    transform: scale(1.4);
  }
  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

.greeting.fadein {
  animation: greeting-fadein 2s ease-out forwards;
}

.greeting.fadeout {
  animation: greeting-fadeout 2s ease-out forwards;
}

/* Слайди */
.slide {
  font-size: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  margin: 20px 0;
}

.slide.visible {
  opacity: 1;
  transform: translateY(0);
}

.language-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Arial', sans-serif;
  color: #fff;
  font-size: 14px;
}

.language-selector select {
  background-color: #111;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
}

.language-selector label {
  margin-right: 8px;
}
.slide {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
}
.slide.visible {
  opacity: 1;
}
.slide.fadeout {
  opacity: 0 !important;
  transition: opacity 2s cubic-bezier(.4,0,.2,1);
}

#stage4 {
  display: none;
  opacity: 1;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: black;
  color: white;
  font-size: 2.5em;
  text-align: center;
  padding: 40px;
  font-family: 'Poppins', sans-serif;
}
#stage4.show {
  display: flex;
}
#stage4.fadeout {
  opacity: 0 !important;
  transition: opacity 2s cubic-bezier(.4,0,.2,1);
}

.pre-truth-message {
  opacity: 0;
  animation: showText 2s forwards;
}
@keyframes showText {
  from { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: scale(1);}
}
#intro-video {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
  text-align: center;
}
#intro-video.show {
  display: flex !important;
  animation: fadeIn 1.5s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98);}
  to   { opacity: 1; transform: scale(1);}
}

