@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Pacifico&display=swap");

@import url("https://cdn-uicons.flaticon.com/2.6.0/uicons-solid-chubby/css/uicons-solid-chubby.css");

@import url("https://cdn-uicons.flaticon.com/2.6.0/uicons-solid-rounded/css/uicons-solid-rounded.css");

@import url("https://cdn-uicons.flaticon.com/2.6.0/uicons-bold-rounded/css/uicons-bold-rounded.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-image: url("../11223344_assets/bg/wave_desktop.svg");
  background-repeat: repeat-y;
  background-size: cover;
  background-position: top center;
  padding-top: 70px;
}

nav {
  background: linear-gradient(to right, #002233, #002233);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  height: 100%; /* Menjaga navbar tetap tinggi */
}

.logo {
  color: white;
  font-size: 19px;
  font-weight: bold;
  text-decoration: none;
  z-index: 20;
}

.sub-logo {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #aaa;
  margin-top: 2px;
  letter-spacing: 1px;
  font-family: "Pacifico", cursive;
  font-style: italic;
  margin-top: -5px;
  margin-left: 10px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
}

.menu-toggle .bar {
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.menu-toggle .bar:nth-child(1) {
  top: 5px;
}

.menu-toggle .bar:nth-child(2) {
  top: 13px;
}

.menu-toggle .bar:nth-child(3) {
  top: 21px;
}

/* Ketika aktif, ubah ikon jadi X */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg);
  top: 13px;
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg);
  top: 13px;
}

.menu {
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.4s ease-in-out;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu.active {
  transform: translateY(0);
  opacity: 1;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  margin-left: 20px;
}

.menu a:hover {
  color: #0066ff;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  outline: none;
}

@media (min-width: 769px) {
  .menu {
    display: flex !important;
    transform: none;
    opacity: 1;
    position: static;
    height: auto;
    background: none;
    padding: 0;
    gap: 0;
  }
}

@media (max-width: 768px) {
  body {
    background-image: url("../11223344_assets/bg/wave.svg");
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 35px;
  }

  /* menu aktif hanya di mobile */
  .menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: linear-gradient(135deg, #002233, #0066ff);
    padding-top: 50px;
    padding-left: 10px;
    gap: 20px;
    z-index: 15;
  }

  .menu a {
    font-size: 18px !important;
  }

  .menu.active {
    display: flex;
  }
}

/*=======================
    | Styling Ganti Bahasa
    =======================*/
.language-switcher-mobile {
  display: flex;
  gap: 5px;
  padding-left: 20px;
}

.language-switcher-mobile button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: white;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
}

.language-switcher-mobile button:hover {
  color: #ff0000;
}

/* Tampilan untuk mobile */
@media (max-width: 768px) {
  .language-switcher-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 40px;
    font-size: 18px;
    margin-left: -25px;
  }

  .language-switcher-mobile button {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    margin-top: -80px;
  }

  .language-switcher-mobile button:hover {
    color: red;
  }
}

/*=======================
    | Styling Card
    =======================*/
.wave-wrapper {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.wave-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  background-image: url("../11223344_assets/bg/wave_desktop.svg");
  background-size: cover;
  background-position: center;
  color: white;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: normal;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  font-family: "Poppins", sans-serif;
}

.hero .btn {
  background: white;
  color: #008793;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background: #f0f0f0;
}

/* Hilangkan efek background bawaan saat klik/tap */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  outline: none;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
  background-color: transparent;
}

@media (max-width: 768px) {
  body {
    background-image: url("../11223344_assets/bg/wave.svg");
  }

  .slider-text {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 50;
  }

  .slider-container p {
    font-size: 10px;
  }

  .hero {
    background-image: url("../11223344_assets/bg/wave.svg");
  }
}

/*====================================
  | Slider
  ====================================*/
.slider-container {
  position: relative;
  width: 320px;
  height: 70px;
  background: linear-gradient(135deg, #002f4b, #0066ff);
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s;
  margin: 0 auto;
  display: block;
}

.slider-container:hover {
  box-shadow: 0 0 25px rgba(100, 181, 246, 0.4);
}

.progress-bar {
  position: absolute;
  height: 100%;
  width: 0;
  background: linear-gradient(120deg, #0066ff, #64b5f6, #2196f3);
  background-size: 200% 200%;
  animation: shimmer 2s infinite linear;
  border-radius: 35px;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.dragger {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 5px;
  left: 5px;
  background-color: #000;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  user-select: none;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.dragger::after {
  content: "›";
  font-size: 30px;
  animation: pulse 1.5s infinite;
}

.dragger.dragging {
  background: linear-gradient(to right, #0066ff, #64b5f6);
  transform: scale(1.05);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.slider-container p {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #bbb;
  font-size: 11px;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}
