*{ 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body{
    background: url(img/stars-7088.gif);
}

#wrappedall{
    position: relative;
    max-height: 2167px;
    width: 100%;
    height: 100%;
}

#content{
    max-width: 942px;
    max-height: 2167px;
    margin: 50px auto;
    width: 100%;
    height: 100%;
}

/* loading */

body {
  min-height: 100vh;
}

/* Loading Screen */
#loading {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: hideLoader 3s forwards; /* hilang setelah 4 detik */
}

/* Loading Text */
.loading-text span {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  animation: bounce 1s infinite;
}

/* Delay tiap huruf supaya loncat bergantian */
.loading-text span:nth-child(1) { animation-delay: 0s; }
.loading-text span:nth-child(2) { animation-delay: 0.1s; }
.loading-text span:nth-child(3) { animation-delay: 0.2s; }
.loading-text span:nth-child(4) { animation-delay: 0.3s; }
.loading-text span:nth-child(5) { animation-delay: 0.4s; }
.loading-text span:nth-child(6) { animation-delay: 0.5s; }
.loading-text span:nth-child(7) { animation-delay: 0.6s; }

/* Konten Website */
#content {
  opacity: 0;
  animation: showContent 1s forwards;
  animation-delay: 1s; /* muncul setelah loader hilang */
}

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes hideLoader {
  0%, 90% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes showContent {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* navbar fix */


.linka{
    position: fixed;
    right: 0;
    max-width: 248px;
    width: 100%;
}

.navbar-vertical{
    top: -200px;
    opacity: 0; /* awalnya transparan */
    transition: top 0.5s ease, opacity 0.5s ease; /* dropdown + fade-in */
    z-index: 1000;
}

.navbar-vertical.show{
    top: 0; /* Turun ke posisi terlihat */
    opacity: 1; /* Fade-in */
}

.linka img{
    position: fixed;
    right: 90px;
    bottom: 40px;
}

.navbar-verticalk{
    top: -200px;
    opacity: 0; /* awalnya transparan */
    transition: top 0.5s ease, opacity 0.5s ease; /* dropdown + fade-in */
    z-index: 1000;
}

.navbar-verticalk.show{
    top: 0; /* Turun ke posisi terlihat */
    opacity: 1; /* Fade-in */
}

#navbar2 h2{
    margin-bottom: 20px;
    text-align: center;
}

#navbar2 li{
    list-style: none;   
}

#navbar2 a{
    text-decoration: none;
    color: white;
}

#navbar2 a:hover{
    text-decoration: underline;
}

.linki{
    position: fixed;
    text-align: center;
    left: 0;
    max-width: 248px;
    width: 100%;
}

.linki p{
    position: fixed;
    color: white;
    transform: rotate(-90deg);
    left: -35px;
    bottom: 100px;
}

/* NAVBAR */

#navbar{
    position: relative;
    margin: 0 auto;
    max-width: 942px;
    max-height: 84px;
    width: 100%;
    height: 100%;
    background-color: white ;
    padding: 25px 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
}


.navbar-horizontal{
    opacity: 1;
    transition: opacity 0.5s ease; /* Fade effect */
    z-index: 1000;
}

.navbar-horizontal.hide{
    opacity: 0;
    pointer-events: none;
}

#navbar li{
    position: absolute;
    display: flex;
    gap: 20px;
    right: 20px;
    top: 25px;
    list-style: none;
}

#navbar a{
    text-decoration: none;
    color: black;
}

#navbar a:hover{
    text-decoration: underline;
    transform: scale(1.10);
    transition: 0.2s;
}

/* Content */

#bannerb img {
    position: relative;
    display: flex;
    margin: 75px auto;
}

.huruf-o {
  width: 759px;
  height: 217px; /* jangan lupa px */
}

.mata {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent; /* putihnya sudah ada di gambar */
  overflow: hidden;
}

#mata-kiri {
  top: 5px;
  left: 763px;
}

#mata-kanan {
  top: 6px;
  left: 695px;
}

.pupil {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 20px;
  height: 20px;
  background: black;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* kelopak mata untuk kedipan */
.kelopak {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(73, 73, 73); /* warna kelopak, samain dengan background mata */
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.2s ease-in-out;
}

.kedip {
  transform: scaleY(1);
}


/* sec1 */

.sec1{
    text-align: center;
    max-height: 331px;
    max-width: 942px;
    width: 100%;
    height: 100%;
    background-color: white;
    margin: 0 auto 75px;
    border-radius: 15px;
}

.sec1 h1{
    padding: 20px;
    font-size: 48px;
    color: black;
    text-align: center;
}

.sec1 img{
    padding-bottom: 30px;
    padding-top: 10px;
}

/* sec2 */

.sec2{
    position: relative;
    border: 3px solid white;
    max-width: 936px;
    max-height: 500px;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    margin: 0 auto;
}

.sec2 ol{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.isitem{
    list-style: none;
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
}

.isitem li{
    background-color: white;
    width: 394px;
    height: 219px;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
}


#bulets{
    position: absolute;
    left: 40%;
    top: 37%;
}

.sec2 h1{
    position: absolute;
    color: white;   
    left: 42.6%;
    top: 45.8%;
}

/* sec3 */

.sec3{
    margin-top: 75px;
    display: flex;
}

#kiri{
    background-color: white;
    max-width: 293px;
    max-height: 344px;
    width: 100%;
    height: 100%;
    border-right: 2px solid black;
    padding: 20px;
    border-radius: 15px ;
}

#kiri p{
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    font-family: "Poetsen One", sans-serif;
}

#kiri img{
    padding-left: 40px;
}

#kanan{
    background-color: white;
    max-width: 649px;
    max-height: 344px;
    width: 100%;
    height: 100%;
    padding: 30px;
    border-radius: 15px;
}

#kanan img{
    text-align: left;
    padding-bottom: 10px;
}

#kanan p{
    text-align: left;
    padding: 35px 0px;
    font-size: 18px;
}

#kanan a img:hover{
    transform: scale(1.20);
    transition: 0.2s;
}

/* sec4 */

.sec4{
    position: relative;
    margin-top: 75px;
    margin-bottom: 200px;
}

.sec4 img{
    left: -25px;
    position: absolute;
}

h1{
    text-align: left;
    color: white;
    font-family: "Poetsen One", sans-serif;
}

.sec4 p{
    text-align: left;
    color: white;
}

/* footer */

.footer{
    background-color: white;
    width: 100%;
    height: 371px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    text-align: center;
}

#listf p{
    padding-top: 10px;
}

#listf a{
    text-decoration: none;
    color: black;
    padding-top: 30px;
}

#listf a:hover{
    text-decoration: underline;
    transform: scale(1.10);
    transition: 0.2s;
}

#listf a img:hover{
    transform: scale(1.20);
    transition: 0.2s;
}

#listf img{
    padding-top: 50px;
}

#listf li{
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* Animasi masuk bertahap */
#content > *:not(#navbar) {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 3s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}