/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.hero-img {
  width: 304px;
  height: 150px;
  object-fit: cover;
}

/* ===== SPACER ===== */
.spacer {
  height: 50vh;
}

/* ===== SECTION GAMBAR ===== */
.section-images {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.image-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

/* ukuran default desktop */
.img {
  height: auto;
  max-height: 150px;
  width: auto;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

/* posisi awal desktop */
.left {
  transform: translateX(100px);
}
.right {
  transform: translateX(-100px);
}
.center {
  transform: scale(0);
  opacity: 0;
}

/* animasi masuk */
.section-images.active .left,
.section-images.active .right {
  transform: translateX(0);
}

.section-images.active .center {
  transform: scale(1);
  opacity: 1;
}

/* teks bawah gambar */
.text-below {
  margin-top: 30px;
  opacity: 0;
  transform: translateY(50px);
  transition: 0.6s ease;
  font-size: 52px;
  font-weight: 400;
  text-align: center;
}

.section-images.show-text .text-below {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION TEKS ===== */
.section-text {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  text-align: center;
}

/* Judul */
.title {
  font-size: 42px;
  font-family: 'Cormorant', serif;
  font-weight: 700;
  opacity: 0;
  transform: translateY(50px);
  transition: 0.6s ease;
  margin: 0;
}

/* Deskripsi */
.description {
  font-size: 20px;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(50px);
  transition: 0.6s ease;
}

.section-text.show-title .title {
  opacity: 1;
  transform: translateY(0);
}

.section-text.show-desc .description {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================== */
/* ================= MOBILE VERSION ==================== */
/* ===================================================== */

@media (max-width: 768px) {

  /* HERO */
  .hero-img {
    width: 50%;
    max-width: 250px;
    height: auto;
  }

  /* SPACER */
  .spacer {
    height: 5vh;
  }

  /* ===== SECTION GAMBAR (SAMA KAYA DESKTOP) ===== */
  .image-wrapper {
    flex-direction: row;       /* tetap horizontal */
    gap: 8px;                  /* lebih rapat */
    justify-content: center;
  }

  /* HANYA perkecil ukuran gambar */
  .img {
    max-height: 90px; /* tinggi sesuai desktop mini */
    width: auto;       /* pertahankan rasio */
  }

  /* teks bawah */
  .text-below {
    font-size: clamp(18px, 6vw, 32px);
    margin-top: 20px;
  }

  /* SECTION TEKS */
  .section-text {
    padding: 0 15px;
  }

  .title {
    font-size: clamp(24px, 7vw, 28px);
  }

  .description {
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.5;
  }
}

/* EXTRA SMALL DEVICE */
@media (max-width: 430px) {
  .img {
    max-height: 50px;
    width: auto;
  }
}


/* EXTRA SMALL DEVICE */
@media (max-width: 360px) {
  .img {
    max-height: 45px;
    width: auto;
  }
}
