.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 180px;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  z-index: 3; /* Ensure the content appears above the stars */
  padding: 0 20px;
}

.hero-left h1 {
  text-align: center;
  padding-top: 80px;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 15px;
  color: #000000;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4),
    0 0 25px rgba(255, 255, 255, 0.2);
}

.hero-left p {
  font-size: 1rem;
  margin: 0 0 20px;
  line-height: 1.5;
  color: #858585;
  text-align: center;
}

.highlight {
  color: #ffd700; /* Жовтий (золотистий) */
}

.hero-right img {
  width: 100%;
  max-width: 350px;
  margin: 20px 0;
}

/* Планшети та більші пристрої */
@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero-left {
    max-width: 50%;
  }

  .hero-left h1 {
    font-size: 2.5rem;
  }

  .hero-left p {
    font-size: 1.2rem;
  }

  .hero-right img {
    max-width: 450px;
    margin: 0;
  }
}

/* Десктопи та більші екрани */
@media (min-width: 1440px) {
  .hero {
    padding: 50px;
  }

  .hero-left h1 {
    font-size: 3rem;
  }

  .hero-left p {
    font-size: 1.4rem;
  }

  .hero-right img {
    max-width: 500px;
  }
}

.hero-right img {
  animation: floatUp 5s ease-in-out infinite;
  transform: translateY(20px); /* Starting position */
}

/* Define the keyframes for the animation */
@keyframes floatUp {
  0% {
    transform: translateY(20px); /* Start slightly lower */
  }
  50% {
    transform: translateY(-20px); /* Move slightly higher */
  }
  100% {
    transform: translateY(20px); /* Return to the original position */
  }
}
