.header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 8%;
  gap: 2rem;
  overflow: hidden;
  background: url("../../assets/headerbg.png") no-repeat center;
  min-height: 95vh;
}
.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.content h1 {
  font-size: 8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--y-secondary);
  line-height: 1.2;
  font-family: var(--y-font-alt);
}

.content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 500px;
  font-weight: 600;
}

.btn-primary {
  display: inline-block;
  margin: 0 auto;
  justify-content: center;
  align-self: center;
  background: var(--y-secondary);
  font-family: var(--y-font-alt);
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  padding: 0.3rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--y-main);
  transform: translateY(-3px);
}

.image-wrapper {
  display: flex;
  justify-content: center;
}

.image-wrapper img {
  max-width: 100%;
  width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  animation: float 4s ease-in-out infinite;
}

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

@media (max-width: 992px) {
  .header {
    padding: 3rem 5%;
    gap: 1.5rem;
  }

  .content h1 {
    font-size: 6rem;
  }

  .content p {
    font-size: 1.1rem;
  }

  .image-wrapper img {
    width: 350px;
  }
}

@media (max-width: 820px) {
  .header {
    grid-template-columns: 1fr;
    text-align: center;
    height: auto;
    padding: 0;
    margin: 0;
  }

  .image-wrapper {
    order: 1;
    width: 100%;
    height: 50vh;
    margin: 0;
  }

  .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    animation: none;
  }

  .content {
    order: 2;
    padding: 2rem 1rem;
    text-align: start;
  }

  .content h1 {
    font-size: clamp(2.5rem, 12vw, 5.5rem);
    line-height: 1.1;
  }

  .content p {
    margin: 0 auto 1.5rem;
    font-size: clamp(1rem, 4vw, 1.6rem);
    max-width: 100%;
  }

  .btn-primary {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    padding: 0.5rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .content {
    padding: 1.5rem 0.75rem;
  }

  .content h1 {
    font-size: clamp(2rem, 10vw, 4rem);
    margin-bottom: 1rem;
  }

  .content p {
    font-size: clamp(0.9rem, 3.5vw, 1.4rem);
    margin-bottom: 1rem;
  }

  .btn-primary {
    font-size: clamp(1rem, 4vw, 1.5rem);
    padding: 0.4rem 1.2rem;
    width: auto;
    max-width: 90%;
  }
}
