body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Rubik', sans-serif;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  animation: bgFade 15s infinite;
  z-index: 1;
}

@keyframes bgFade {
  0% { background-image: url('image1.jpg'); opacity: 1; }
  33% { background-image: url('image2.jpg'); opacity: 1; }
  66% { background-image: url('image3.jpg'); opacity: 1; }
  100% { background-image: url('image1.jpg'); opacity: 1; }
}

.overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo {
  height: 40px;
}

.hero-text {
  position: absolute;
  bottom: 60px;
  left: 30px;
  right: 30px;
  max-width: 50%;
  z-index: 3;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 1s ease-in-out 1.2s forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.headline {
  font-size: 5rem;
  font-weight: 700;
  line-height: 65px;
  letter-spacing: -0.05em;
}

.subline {
  font-size: 2rem;
  font-weight: 400;
  margin-top: 10px;
letter-spacing: -0.05em;
line-height: 28px;
  
}

.contact-text a,
.contact-text-mobile a {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero-text {
    max-width: 100%;
    bottom: 80px;
  }

  .headline {
    font-size: 3.5rem;
    line-height: 0.9;
    text-align: left;
  }

  .subline {
    font-size: 1rem;
    line-height: 1;
    text-align: left;
  }

  .logo {
    display: block;
    margin: 0 auto;
  }

  .contact-text {
    display: none;
  }

  .contact-text-mobile {
    text-align: left;
  }
}
