/* Shared hero + animated background styles - used across all pages */

.hero {
  height: 60vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  margin-top: 72px;
}

.hero-small {
  height: 40vh;
}

.animated-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 43%;
}

.wave1 {
  animation: drift 7s infinite linear;
  transform-origin: 50% 48%;
}

.wave2 {
  animation: drift 9s infinite linear;
  opacity: 0.1;
  transform-origin: 49% 52%;
}

.wave3 {
  animation: drift 11s infinite linear;
  transform-origin: 51% 48%;
}

.wave4 {
  animation: drift 13s infinite linear;
  opacity: 0.1;
  transform-origin: 52% 51%;
}

@keyframes drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  z-index: 3;
  position: relative;
  text-align: center;
  color: var(--background-color);
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--background-color);
  text-shadow: 2px 2px 0px var(--accent-color);
  animation: float 6s ease-in-out infinite;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
  color: var(--background-color);
  opacity: 0;
  animation: fadeIn 1s forwards ease-out 0.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave1,
  .wave2,
  .wave3,
  .wave4 {
    animation: none;
  }

  .hero-content h1 {
    animation: none;
  }

  .hero-content p {
    animation: none;
    opacity: 1;
  }
}

@media screen and (min-width: 768px) {
  .hero {
    height: 70vh;
  }

  .hero-small {
    height: 40vh;
  }

  .hero-content {
    padding: 0 2rem;
  }

  .hero-content h1 {
    font-size: 4rem;
  }

  .hero-content p {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .hero-small {
    height: 30vh;
  }

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

  .hero-content p {
    font-size: 1rem;
  }
}
