@import url('https://fonts.googleapis.com/css2?family=Playfair:wght@300;400;600;700&family=Raleway:wght@400;700&display=swap');

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url('../../img/photo/hero-bg.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: fadeInHero 1.2s ease-out;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(1, 68, 33, 0.85),
    rgba(102, 128, 102, 0.75),
    rgba(255, 255, 255, 0.1)
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1300px;
  flex-wrap: wrap;
  animation: slideUp 1.2s ease-out;
}

.hero__text {
  max-width: 600px;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  order: 1;
}

.hero__text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeIn 1.5s ease-in;
}

.hero__highlight {
  background: linear-gradient(90deg, #014421, #ceeece);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__text p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #ddd;
  font-weight: 300;
  animation: fadeIn 1.8s ease-in;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeIn 2s ease-in;
}

.hero__btn {
  padding: 0.9rem 1.8rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

.hero__btn--primary {
  background: linear-gradient(90deg, #014421, #668066);
  color: #fff;
}

.hero__btn--outline {
  border: 2px solid #014421;
  color: #014421;
  background: transparent;
}

.hero__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(1, 68, 33, 0.4);
}

.hero__btn--outline:hover {
  background: rgba(1, 68, 33, 0.3);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(1, 68, 33, 0.4);
}

.hero__socials {
  display: flex;
  gap: 1rem;
  animation: fadeIn 2.2s ease-in;
}

.hero__socials a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 0;
  border: none;
}

.hero__socials a:hover {
  background: linear-gradient(90deg, #014421, #668066);
  transform: scale(1.1);
}

.hero__image {
  position: relative;
  width: 40%;
  display: flex;
  justify-content: flex-end;
  order: 2;
  animation: fadeIn 2s ease-in;
}

.hero__image img {
  width: 100%;
  max-width: 1080px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(0);
  transition: transform 0.2s ease-out;
}

/* Responsive */

@media (max-width: 992px) {
  .hero__content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero__text {
    order: 1;
  }

  .hero__image {
    order: 2;
    width: 70%;
    margin-top: 2.5rem;
  }

  .hero__text h1 {
    font-size: 2.5rem;
  }

  .hero__text p {
    font-size: 1rem;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__socials {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    position: relative;
    height: auto;
    padding: 8rem 0 4rem 0;
    overflow: hidden;
    background: none !important;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to bottom,
        rgba(1, 68, 33, 0.85),
        rgba(102, 128, 102, 0.7),
        rgba(255, 255, 255, 0.1)
      ),
      url('https://kreativstudioweide.de/assets/img/photo/hero-phone.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
  }

  .hero__text h1 {
    font-size: 2rem;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero__image {
    width: 100%;
  }
}

/* Animations */

@keyframes fadeInHero {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
