* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  background-color: #111827;
  color: white;
  overflow-x: hidden;
  transition: 0.3s ease-in-out;
  min-height: 100vh;
}

body.light {
  background-color: rgb(221, 221, 221);
}

header {
  top: 0;
  position: sticky;
  display: flex;
  width: 100%;
  background: linear-gradient(to top, transparent, transparent);
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  backdrop-filter: blur(10px);
  transition: 0.3s ease-in-out;
  z-index: 1000;
  isolation: isolate;
}

header.scrolled {
    transform: translateY(-100%);

}




/* UNTUK SLIDER PADA HOME PAGE */
.z-index {
  z-index: 20;
} 



@keyframes inAnimation {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* ================================================================ */
.loader {
  margin: 50px auto;
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid #0000;
  border-radius: 50%;
  border-color: #ccc #0000;
  animation: l16 1s infinite linear;
}

.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
}

.loader::before {
  border-color: #f03355 #0000;
  animation: inherit;
  animation-duration: 0.5s;
  animation-direction: reverse;
}

.loader::after {
  margin: 8px;
}

@keyframes l16 {
  100% {
    transform: rotate(1turn);
  }
}
/* ================================================================ */




/* ================================================================ */
.loading-dots {
  width: 100px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.loading-dots .dot {
  width: 12px;
  height: 12px;
  background-color: #ecf0f1;
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.loading-dots .dot:nth-of-type(2) {
  animation-delay: -0.2s;
}

.loading-dots .dot:nth-of-type(3) {
  animation-delay: -0.4s;
}
@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.8) translateY(0);
    opacity: 0.8;
  }

  40% {
    transform: scale(1) translateY(-8px);
    opacity: 1;
  }
}
/* ================================================= */


.nav {
  display: flex;
  align-items: center;
}


.judul {
  font-size: 1.5rem;
  font-weight: 700;

  background: linear-gradient(90deg, #293755 0%, #64ffda 25%, #eeecee 60%, #2a59b7 75%, #2a59b7 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientFlow 2.5s linear infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.nav a {
  position: relative;
  font-size: 1.04rem;
  margin: 0 15px;
  padding: 8px 0;
  color: white;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  background: #64ffda;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav a:hover {
  color: #64ffda;
  transform: translateY(-2px);
}

.nav a:hover::after {
  width: 100%;
  left: 0;
  height: 2px;
}

.nav .home::after,
.nav a.active::after {
  width: 100%;
  left: 0;
}

.right-head {
  display: block;
  position: relative;
}

.home {
  border-bottom: 2px solid white;
  transition: border 0.3s ease-in-out;
}

.home:hover {
  border: none;
}


.cari {
  display: flex;
  background-color: #252e45;
  border-radius: 4px;
  margin-right: 20px;
  transition: 0.3s ease-in-out;
}

.cari.cariScroll {
  background-color: #131c2e;
}

.cari a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
}

.cari button {
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
}

.cari img {
  width: 20px;
  height: 20px;
}

.cari input {
  border: none;
  padding: 10px 10px;
  border-radius: 4px;
  color: white;
  background-color: transparent;
}

.cari input::placeholder {
  color: white;
  opacity: 0.8;
}

.cari input:focus {
  outline: none;
}






/* ==================== FOOTER ==================== */
footer {
  background-color: #252e45;
  text-align: center;
  padding: 10px 0px 2px 0px;
  position: relative;
  bottom: 0;
}

.medsos {
  margin: 20px;
  width: 40px;
  display: inline-block;
}

.medsos img {
  width: 30px;
  border-radius: 50%;
  transition: 0.3s;
  filter: invert(100%) brightness(200%);

}

.medsos img:hover {
  background-color: #1b1b1b25;
  transform: scale(1.1);
}

.text-footer {
  margin: 0px auto 1px auto;
  width: 70%;
}

.text-footer h3 {
  color: white;
}



/* ================== SIDE BAR =================== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  color: white;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}


.filter-sidebar{
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(27, 27, 27, 0.25);
  backdrop-filter: blur(3px);
  z-index: 9989;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.filter-sidebar.active {
  right: 0;
}



.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100vh;
  background-color: rgba(27, 27, 27, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: left 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-nav-overlay.active {
  left: 0;
}

.mobile-nav-overlay .nav {
  display: flex !important;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.mobile-nav-overlay .nav a {
  font-size: 1.5rem;
  padding: 15px 0;
  text-align: center;
  border-bottom: none;
  transition: all 0.3s ease;
  display: block !important;
}

.mobile-nav-overlay .nav a:hover {
  color: blueviolet;
  transform: translateY(-5px);
}



.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
}



@media screen and (max-width: 1024px) {

  /* Header Mobile */
  header {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  body::-webkit-scrollbar {
    display: none;
  }

  .judul {
    font-size: 1.5rem;
  }

  header .nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .cari {
    order: 3;
    width: 100%;
    margin: 10px 0 0 0;
  }

  .cari.search {
    display: none;
  }

  .cari input {
    width: 100%;
    padding: 8px 10px;
  }

  .medsos {
    margin: 15px 10px;
    width: 35px;
  }

  .medsos img {
    width: 25px;
    filter: invert(100%) brightness(200%);
  }

  .text-footer {
    width: 90%;
    font-size: 0.8rem;
  }



}

@media screen and (max-width: 768px) {

  /* Header Mobile */
  header {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  body::-webkit-scrollbar {
    display: none;
  }

  .judul {
    font-size: 1.2rem;
  }

  /* Hide desktop navigation on mobile - FIXED */
  header .nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .cari {
    order: 3;
    width: 100%;
    margin: 10px 0 0 0;
  }

  .cari.search {
    display: none;
  }

  .cari input {
    width: 100%;
    padding: 8px 10px;
  }

  /* Footer Mobile */
  .medsos {
    margin: 15px 10px;
    width: 35px;
  }

  .medsos img {
    width: 25px;
    filter: invert(100%) brightness(200%);
  }

  .text-footer {
    width: 90%;
    font-size: 0.8rem;
  }

}

@media screen and (max-width: 480px) {
  .judul {
    font-size: 1rem;
  }

}