/* =============== GLOBAL STYLE =============== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

@font-face {
  font-family: "forresten";
  src: url(../font/Forresten.otf);
}

.container-utama {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;

  /* sembunyikan scrollbar tapi tetap bisa scroll */
  scrollbar-width: none;      /* untuk Firefox */
  -ms-overflow-style: none;   /* untuk IE dan Edge lama */
}

.container-utama::-webkit-scrollbar {
  display: none; /* untuk Chrome, Safari, Opera */
}

section {
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* =============== SLIDE 1 =============== */
.container-1 {
  background-color: #fff;
  width: 100%;
  height: auto;
  
}

.navbar {
  width: 100%;
  height: 5vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 3%;
  padding-top: 2%;
  z-index: 3;
}

.logo {
  width: 4vw;
  height: 4vw;
  background-color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;

}

.logo-nav {
  width: 90%;
  height: 90%;
}

.conten {
  width: 100%;
  display: flex;
  flex-direction: row;
}
.main_left{
    width: 7%;
    height: 100%;
    padding-top: 1%;
    padding-left: 1%;
    gap: 20%;
    justify-content: center;
    align-items: center;
}

.vector-left{
    margin-top: 50%;
    justify-content: center;
    align-items: center;
}

.main_middle {
  position: relative;
  width: 90%;
  height: 45vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../img/svg/Subtract.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center;
  z-index: 0;
}

.nav2 {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5vw;
  transform: translateY(3vw)
  translateX(-10.5vw);
  z-index: 2;
}

.nav2 a {
  position: relative; /* penting agar z-index berfungsi */
  text-decoration: none;
  color: #000;
  font-size: 1.2vw;
  font-weight: bold;
  transition: color 0.3s ease;
  padding: 0.4vw 0.9vw; /* memberi ruang agar highlight tidak menempel */
  z-index: 2;
}

a[aria-current="page"] {
  color: #fff;            /* warna putih agar kontras dengan rectangle hitam */
  font-weight: bold;
  z-index: 3;             /* pastikan di atas rectangle */
}

.nav2:hover a[aria-current="page"] {
  color: #000;
}

.nav2 a[aria-current="page"]:hover {
  color: #fff;
}

.nav2 a:hover {
  color: #fff;
  z-index: 2;
}

.nav-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 6vw; /* bisa disesuaikan supaya pas dengan teks */
  height: 2.4vw;
  background-color: #000;
  border-radius: 50vw; /* ini yang bikin oval, ujung lembut */
  z-index: 1;
  transition: transform 0.4s ease, width 0.3s ease, background-color 0.3s ease;

}

.button-ganti {
  background-color: #000;
  border-radius: 50vw;
  width: 3vw;
  height: 3vw;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
}

.logo-bahasa {
  width: 2vw;
  height: 2vh;
}

.text-bahasa {
  color: #fff;
  font-size: 0.8vw;
}

.union-bg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title {
  font-family: "forresten";
  text-align: start;
  justify-content: flex-start;
  color: #fff;
  transform: translateY(100%)
                translateX(-23%);
}

.title h1 {
  font-size: 4vw;
  margin: 0;
}

.irm-title {
  color: red;
}

.isi-middle {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  margin-top: 2%;
}

.middle-left {
  width: 35%;
  font-size: 1.2vw;
  transform: 
  translateX(10%)
  translateY(15%);
}

.middle-right img {
  width: 45vw;
  transform: 
  translateY(-12%)
  translateX(-0.5%);
  border-radius: 0 0 5vw 0;
}

.button-down {
  position: absolute;
  width: 25vw;
  height: 3vw;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0.2vw solid #000;
  border-radius: 20vw;
  transform: 
  translateX(-23vw)
  translateY(20.5vw);
}

.union-button {
  width: 100%;
  background: none;
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1vw;
  transition: 0.3s;
}

.union-button h2{
    font-family: "forresten";
    width: 90%;
    font-size: 1.5vw;
}

.fa-angles-down{
    width: 10%;
    justify-content: center;
    align-items: center;
}

.button-down:hover{
  border: 0.2vw solid #b70100;
}

.union-button:hover {
  color: #b70100;
}

.main_right{
    width: 7%;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
    margin-top: 8%;
    z-index: 2;
}

.vector-right{
  transform: 
  translateY(35%)
}

.vector-left, .vector-right {
  width: 5vw;
}
/* =============== SOCIAL MEDIA =============== */
.social-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
  transform: translateX(-80vw);
}

.social-btn {
  width: 3vw;
  height: 3vw;
  border-radius: 50vw;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.2vw;
  transition: 0.3s ease;
  text-decoration: none;
}

.social-btn:hover {
  background-color: #b70100;
  transform: scale(1.1);
}



/* ===================== ANIMASI MASUK (fix posisi akhir) ===================== */

/* Semua animasi dimulai dari posisi RELATIF terhadap transform aslinya */
.animate-left {
  opacity: 0;
  animation: slideLeftFix 0.8s ease forwards;
}
@keyframes slideLeftFix {
  0% {
    opacity: 0;
    transform: 
    translateX(-100vw)
    translateY(10vw);
  }
  100% {
    opacity: 1;
    transform: translate(-10.5vw, 10vw);
  }
}

/* 2. Paragraf dari bawah ke atas */
.animate-up {
  opacity: 0;
  animation: slideUpFix 0.8s ease forwards;
}
@keyframes slideUpFix {
  0% {
    opacity: 0;
    transform: translateY(50vw)
  }
  100% {
    opacity: 1;
    transform: 
    translateY(5vw)
    translateX(3vw);
  }
}

/* 3. Garuda dari bawah ke atas diagonal */
.animate-diagonal {
  opacity: 0;
  animation: diagonalInFix 0.8s ease forwards;
}
@keyframes diagonalInFix {
  0% {
    opacity: 0;
    transform: translate(10vw, -5.4vw);
  }
  100% {
    opacity: 1;
    transform: translate(-0.3vw, -5.4vw);
  }
}

/* 4. Navbar dari kanan ke kiri */
.animate-nav {
  opacity: 0;
  animation: navSlideFix 0.6s ease forwards;
}
@keyframes navSlideFix {
  0% {
    opacity: 0;
    transform: translate(100vw, 3vw);
  }
  100% {
    opacity: 1;
    transform: translate(-11vw, 3vw);
  }
}

/* 5. Social media dari atas ke bawah */
.animate-social {
  opacity: 0;
  animation: socialDownFix 0.6s ease forwards;
}
@keyframes socialDownFix {
  0% {
    opacity: 0;
    transform: translate(0, -100vw);
  }
  100% {
    opacity: 1;
    transform: translate(-6vw,0);
  }
}

/* 6. Tombol scroll down dari kanan ke kiri */
.animate-button {
  opacity: 0;
  animation: buttonInFix 0.8s ease forwards;
}
@keyframes buttonInFix {
  0% {
    opacity: 0;
    transform: translate(-100vw, 20vw);
  }
  100% {
    opacity: 1;
    transform: translate(-23vw,20.5vw);
  }
}

/* 7. Vector kiri & kanan */
.animate-vector-left {
  opacity: 0;
  animation: vectorLeftFix 1s ease forwards;
}
@keyframes vectorLeftFix {
  0% {
    opacity: 0;
    transform: translateY(100vw);
  }
  100% {
    opacity: 1;
    transform: translate(0);
  }
}

.animate-vector-right {
  opacity: 0;
  animation: vectorRightFix 1s ease forwards;
}
@keyframes vectorRightFix {
  0% {
    opacity: 0;
    transform: translateY(-100vw);
  }
  100% {
    opacity: 1;
    transform: translateY(6vw);
  }
}

/* =============== SLIDE 2 =============== */
.container-2 {
  background-color: #fff;
  color: #000;
  width: 100%;
  height: auto;
  margin-top: 7vw;
}

.navbar2 {
  width: 100%;
  height: 5vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 3%;
  padding-top: 1%;
  z-index: 3;
}

.logo {
  width: 4vw;
  height: 4vw;
  background-color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;

}

.logo-nav {
  width: 90%;
  height: 90%;
}

.nav3 {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5vw;
  transform: translateX(-5vw);
}

.nav3 a {
  position: relative; /* penting agar z-index berfungsi */
  text-decoration: none;
  color: #000;
  font-size: 1.2vw;
  font-weight: bold;
  transition: color 0.3s ease;
  padding: 0.4vw 0.9vw; /* memberi ruang agar highlight tidak menempel */
  z-index: 2;
}

a[aria-current="page"] {
  color: #fff;            /* warna putih agar kontras dengan rectangle hitam */
  font-weight: bold;
  z-index: 3;             /* pastikan di atas rectangle */
}

.nav3:hover a[aria-current="page"] {
  color: #000;
}

.nav3 a[aria-current="page"]:hover {
  color: #fff;
}

.nav3 a:hover {
  color: #fff;
  z-index: 2;
}

.nav-highlight2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 6vw; /* bisa disesuaikan supaya pas dengan teks */
  height: 2.4vw;
  background-color: #000;
  border-radius: 50vw; /* ini yang bikin oval, ujung lembut */
  z-index: 1;
  transition: transform 0.4s ease, width 0.3s ease, background-color 0.3s ease;

}

.button-ganti {
  background-color: #000;
  border-radius: 50vw;
  width: 3vw;
  height: 3vw;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
}

.logo-bahasa {
  width: 2vw;
  height: 2vh;
}

.text-bahasa {
  color: #fff;
  font-size: 0.8vw;
}

.conten-2 {
  position: relative; /* agar anak absolute tetap mengacu ke container ini */
  min-height: fit-content; /* biar container menyesuaikan isi */

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0%;
}

.left-2 {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
}

.bg-sudirman {
  position: relative;;
  width: 25vw;
  height: 25vw;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.patung-sudirman{
  position: absolute; /* penting supaya z-index berlaku */
  top: 0;
  left: 0;
  width: 30.6vw;
  z-index: 2;
  transform: 
  translateY(-15vw)
  translateX(-1vw);
  clip-path: inset(0% 0% 20% 0%);

}

.img-sudirman {
  position: relative; /* penting supaya berada di atas */
  width: 80vw;
  height: 80vw;
  z-index: 1;
}

.img-sudirman {
  width: 100%; /* mengikuti lebar container */
  height: auto; 
  object-fit: contain; /* penting agar tidak keluar dari container */
}

.caption {
  font-size: 1.2vw;
  color: #333;
  font-weight: bold;
  text-align: end;
  transform: translate(-10vw, 2vw);
  z-index: 3;
}

.caption a{
  text-decoration: none;
  color: #333;
}

.caption a:hover{
  color: #b70100;
  transform: scale(1.1);
}

.title-s2{
  width: 60vw;
  transform: translate(0, -3vw);
}

.right-2 {
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-2 h1 {
  font-family: "forresten";
  font-size: 3.5vw;
  margin: 0;
}

.right-2 h2 {
  font-size: 1.8vw;
  margin: 0.5em 0;
  color: #b70100;
}

.desc-box {
  position: relative;
  color: #fff;
  padding: 2%;
  border-radius: 10px;
  font-size: 1.1vw;
  line-height: 1.6em;
  width: 60%;
  height: 20vw;
  transform: translate(3vw, 0);
}

.bg-s2 {
  position: absolute;      /* agar bisa tumpang tindih isi-s2 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;              /* berada di bawah isi-s2 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bg-solid{
  width: 40vw;
  height: 15vw;
}

.solid {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bg-line{
  width: 40vw;
  height: 15vw;
  margin-top: -3vw;
}
.line{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Container isi */
.isi-s2 {
  position: relative;      /* berada di atas bg-s2 */
  z-index: 2;              /* agar teks selalu di atas */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 33vw;
  height: 30vw;
  text-align: center;
  transform: translate(-2vw, -2vw);
}


.text-top{
  font-size: 1vw;
  text-align: start;
}

.text-bottom {
  color: #000;
  font-size: 1vw;
  text-align: start;
  text-justify: top;
}
.arrow-decoration{
  display: flex;
  flex-direction: row;
  gap: 15vw;
  width: 100%;
  height: 8vw;
}

.arrow-line-top {
  display: flex;
  justify-content: center;
  gap: 1vw;
  color: #fff;
  font-size: 2vw;
  margin: 1em 0;
  transform: translate(3vw, 1vw);
}

.arrow-line-bottom {
  display: flex;
  justify-content: center;
  gap: 1vw;
  color: #b70100;
  font-size: 2vw;
  margin: 1em 0;
  transform: translate(0, 3vw);
}


.button-up {
  width: 5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-7vw, -6vw);
  z-index: 3;
}
.button-up .union-button{
  display: flex;
  flex-direction: column;
}

.button-up .union-button h2{
  font-size: 0.8vw;
}

.button-up .union-button {
  font-size: 1vw;
  color: #000;
}

/* ===================== ANIMASI MASUK SLIDE 2 ===================== */

/* 1. Navbar dari kanan ke kiri (garis kuning) */
.animate-nav2 {
  opacity: 0;
  animation: nav2SlideFix 0.8s ease forwards;
}
@keyframes nav2SlideFix {
  0% {
    opacity: 0;
    transform: translateX(100vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 2. Title dari kanan ke kiri (garis merah) */
.animate-title-s2 {
  opacity: 0;
  animation: titleS2SlideFix 0.8s ease forwards;
}
@keyframes titleS2SlideFix {
  0% {
    opacity: 0;
    transform: translateX(100vw, 3vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0,3vw);
  }
}

/* 3. BG Solid dari kanan ke kiri (garis hijau) */
.animate-bg-solid {
  opacity: 0;
  animation: bgSolidIn 0.9s ease forwards;
}
@keyframes bgSolidIn {
  0% {
    opacity: 0;
    transform: translateX(100vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 4. BG Line dari kiri ke kanan (garis biru) */
.animate-bg-line {
  opacity: 0;
  animation: bgLineIn 0.9s ease forwards;
}
@keyframes bgLineIn {
  0% {
    opacity: 0;
    transform: translateX(-100vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 5. Text & Arrow: Fade In */
.animate-fade {
  opacity: 0;
  animation: fadeInS2 2.5s ease forwards;
}
@keyframes fadeInS2 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 6. Caption dari kanan ke kiri (garis oranye) */
.animate-caption {
  opacity: 0;
  animation: captionIn 0.9s ease forwards;
}
@keyframes captionIn {
  0% {
    opacity: 0;
    transform: translate(-100vw, 2vw);
  }
  100% {
    opacity: 1;
    transform: translate(-10vw, 2vw);
  }
}

/* 7. Patung Sudirman dari bawah ke atas (garis ungu) */
.animate-sudirman {
  opacity: 0;
  animation: sudirmanUp 0.9s ease forwards;
}
@keyframes sudirmanUp {
  0% {
    opacity: 0;
    transform: translateY(100vw);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 8. Button Scroll Up dari atas ke bawah (garis abu) */
.animate-button-up {
  opacity: 0;
  animation: buttonUpFix 0.9s ease forwards;
}
@keyframes buttonUpFix {
  0% {
    opacity: 0;
    transform: translate(-7vw, -100vw);
  }
  100% {
    opacity: 1;
    transform: translate(-7vw, -6vw);
  }
}

/* Hover efek untuk tombol scroll up */
.button-up:hover {
  transform: scale(1.1);
}
.button-up:hover i,
.button-up:hover h2 {
  color: red;
  transition: color 0.3s ease;
}


/* ===========================
   MOBILE BREAKPOINT ≤ 800px
   =========================== */
@media (max-width: 800px) {

  /* ===== 1. Matikan SNAP SCROLL ===== */
  .container-utama {
    scroll-snap-type: none !important;
  }

  .container-1,
  .container-2{
    width: 100%;
    gap: 2vw;
  }

  .conten{
    padding: 3vw;
    	-webkit-animation: shadow-inset-tb 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: shadow-inset-tb 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  }

  @-webkit-keyframes shadow-inset-tb {
  0% {
    -webkit-box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0), inset 0 0 0 0 rgba(0, 0, 0, 0);
            box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0), inset 0 0 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    -webkit-box-shadow: inset 0 -6px 14px -6px rgba(0, 0, 0, 0.5), inset 0 6px 14px -6px rgba(0, 0, 0, 0.5);
            box-shadow: inset 0 -6px 14px -6px rgba(0, 0, 0, 0.5), inset 0 6px 14px -6px rgba(0, 0, 0, 0.5);
  }
}
@keyframes shadow-inset-tb {
  0% {
    -webkit-box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0), inset 0 0 0 0 rgba(0, 0, 0, 0);
            box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0), inset 0 0 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    -webkit-box-shadow: inset 0 -6px 14px -6px rgba(0, 0, 0, 0.5), inset 0 6px 14px -6px rgba(0, 0, 0, 0.5);
            box-shadow: inset 0 -6px 14px -6px rgba(0, 0, 0, 0.5), inset 0 6px 14px -6px rgba(0, 0, 0, 0.5);
  }
}

.container-2{
  height: 50%;
} 

  section {
    scroll-snap-align: none !important;
  }
  .conten{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 50%;
  }

  .navbar{
    position: relative;
    width: 100%;
    height: auto;
    gap: 1vw;
    flex-direction: column;
    justify-content: center;
    transform: translate(0, 0);
    padding: 0;
    margin: 0;
    padding: 2vw;
  z-index: 0;
  }

.nav2{
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  transform: translate(0, 0);
}

/* 4. Navbar dari kanan ke kiri */
.animate-nav {
  opacity: 0;
  animation: navSlideFix 0.6s ease forwards;
}
@keyframes navSlideFix {
  0% {
    opacity: 0;
    transform: translate(100vw, 0vw);
  }
  100% {
    opacity: 1;
    transform: translate(0vw, 0vw);
  }
}

.main_middle{
  width: 100%;
}
  .main_right{
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    transform: translate(8vw, 0);
    padding-bottom: 3vw;
  }
  .social-media{
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
  }
  /* 3. Garuda dari bawah ke atas diagonal */
  .animate-diagonal {
    opacity: 0;
    animation: diagonalInFix 0.8s ease forwards;
  }
  @keyframes diagonalInFix {
    0% {
      opacity: 0;
      transform: translate(10vw, -5.4vw);
    }
    100% {
      opacity: 1;
      transform: translate(-2.3vw, -5.4vw);
    }
  }

  .social-btn{
    width: 5vw;
    height: 5vw;
  }
  .navbar2, .main_left, .vector-right, .button-down, .button-up{
    display: none;
  }
}
