.wrapper,
.content {
  position: relative;
  width: 100%;
  z-index: 1;
}
                                                                                                        
.content {
  overflow-x: hidden;
}

.content .section {
  width: 100%;
  height: 100vh;
}

.content .section.hero {
  background-image: url('/asset/img/hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-size: 120% auto; /* zoom 10% */
  background-position: top; /* pastikan tetap di tengah */
}

.image-container.clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 250%;
  height: 100vh;
  z-index: 5;
  pointer-events: none;
  object-position: top top;
  overflow: hidden;
}

.image-container.clouds img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: animate 10s linear infinite;
}
@keyframes animate
{
  0%
  {
    opacity: 0;
    transform: scale(1);
  }
  25%,75%
  {
    opacity: 1;
  }
  100%
  {
    transform: scale(3);
  }
}

.hero-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  opacity: 0; /* nanti GSAP fade-in */
  transform: translateY(-20px);
  transition: none; /* GSAP yang handle animasinya */
}

.hero-navbar .logo img {
  height: 50px;   /* atur sesuai kebutuhan */
  width: auto;
  display: block;
}

.image-container {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  perspective: 500px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Overlay gradient */
.image-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  z-index: 1;
}

.section.hero h1 {
  position: absolute;
  top: 30%;
  left: 10%;
  width: auto; /* biar nggak full lebar */
  text-align: left; /* teks rata kanan */
  font-size: 70px;
  font-family: "Manrope", sans-serif;
  color: #fff;
  z-index: 10;
}

.section.hero p {
  position: absolute;
  top: 57%;
  left: 10%;
  width: 40%; /* biar tidak terlalu mepet */
  line-height: 1.6;
  text-align: justify;
  font-size: 1.2rem;
  color: #fff;
}

.section.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35); /* ubah nilai opacity sesuai selera, misal 0.3 - 0.6 */
  z-index: 1;
}

/* Pastikan teks di atas overlay */
.section.hero h1,
.section.hero p {
  z-index: 2;
}


.text-left {
  position: fixed;
  transform: translateY(-50%);
  top: 25vw;
  text-align: left;
  left: 8vw;
  z-index: 20;
  font-size: 2.5vw;
  font-family: 'Manrope', serif;
  color: white;
  white-space: nowrap;
  pointer-events: none;
}

.text-right {
  right: 6vw;
  top: 40vw;
  text-align: right;
  position: fixed;
  transform: translateY(-50%);
  z-index: 20;
  font-size: 2.5vw;
  font-family: 'Manrope', serif;
  color: white;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 375px) {

  .section.hero h1 {
    font-size: clamp(26px, 8vw, 32px);
    top: 28%;
    left: 6%;
    width: 88%;
  }

  .section.hero p {
    font-size: 0.9rem;
    top: 48%;
    left: 6%;
    width: 88%;
    line-height: 1.5;
  }

  .hero-navbar .logo img {
    height: 38px;
  }

  .image-container.clouds {
    width: 300%;
  }

  .text-left,
  .text-right {
    display: none;
  }
}

@media (min-width: 376px) and (max-width: 480px) {

  .section.hero h1 {
    font-size: clamp(32px, 7vw, 40px);
    top: 28%;
    left: 8%;
    width: 84%;
  }

  .section.hero p {
    font-size: 1rem;
    top: 50%;
    left: 8%;
    width: 84%;
  }

  .hero-navbar .logo img {
    height: 42px;
  }

  .image-container.clouds {
    width: 280%;
  }

  .text-left,
  .text-right {
    display: none;
  }
}

@media (min-width: 481px) and (max-width: 767px) {

  .section.hero h1 {
    font-size: clamp(38px, 6vw, 48px);
    top: 30%;
    left: 8%;
    width: 80%;
  }

  .section.hero p {
    font-size: 1.05rem;
    top: 52%;
    left: 8%;
    width: 70%;
  }

  .image-container.clouds {
    width: 260%;
  }

  .text-left,
  .text-right {
    display: none;
  }
}

