@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: "Poppins", 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;
  }
}

.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;
}

/*=======================
    | Main Konten
    =======================*/
header {
  text-align: center;
  margin-bottom: 50px;
}

header h1 {
  font-size: 2rem;
  color: #00ffff;
  margin-bottom: 10px;
  margin-top: 20px;
}

header p {
  font-size: 1.2rem;
  color: #ddd;
  max-width: 700px;
  margin: 0 auto;
}

/* Gambar profil */
figure {
  text-align: center;
  margin-bottom: 30px;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #00ffff;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

/* Konten utama */
main section {
  max-width: 900px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #00ffff;
  border-radius: 16px;
  padding: 25px 30px;
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

main section:hover {
  transform: translateY(-3px);
}

main h2 {
  font-size: 1.8rem;
  color: #00ffff;
  margin-bottom: 12px;
}

main p,
main ul {
  font-size: 1rem;
  color: #eee;
}

main ul {
  list-style: none;
  padding-left: 0;
}

main ul li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

main ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00ffff;
  font-weight: bold;
}

/* Tombol CTA */
.cta-section {
  text-align: center;
  margin-top: 30px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(to right, #00ffff, #00bcd4);
  color: #0f2027;
  padding: 14px 28px;
  margin: 10px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 255, 255, 0.5);
}

.cta-button i {
  margin-right: 8px;
}

/* Figcaption */
figcaption {
  margin-top: 10px;
  font-style: italic;
  color: #ccc;
}

/* Responsif */
@media (max-width: 768px) {
  header h1 {
    font-size: 22px;
    margin-top: 10px;
  }

  header p {
    font-size: 16px;
    margin-bottom: -20px;
  }

  figcaption {
    font-size: 16px;
  }

  .intro h2 {
    font-size: 22px;
  }

  .intro p {
    font-size: 16px;
  }

  .perjalanan h2 {
    font-size: 22px;
  }

  .perjalanan p {
    font-size: 16px;
  }

  .tools h2 {
    font-size: 22px;
  }

  .tools p {
    font-size: 16px;
  }

  .kenapa h2 {
    font-size: 22px;
  }

  .kenapa p {
    font-size: 16px;
  }

  .komitmen h2 {
    font-size: 22px;
  }

  .komitmen p {
    font-size: 16px;
  }

  .cta-section h2 {
    font-size: 22px;
  }

  .cta-section h2 a {
    font-size: 16px;
  }

  main section {
    padding: 20px;
  }

  .cta-button {
    width: 90%;
    font-size: 1rem;
  }
}

/*=====================
    | Styling footer
    =====================*/
footer {
  background: linear-gradient(to right, #002233, #002233);
  color: white;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 15px;
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links span {
  color: white;
  font-weight: bold;
}

p a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: none;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeInOverlay 0.3s ease forwards;
}

.popup-content {
  background: rgba(255, 255, 255, 0.9);
  color: #002233;
  padding: 35px 30px;
  max-width: 520px;
  width: 90%;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  text-align: left;
  animation: slideInPopup 0.4s ease forwards;
  font-family: "Montserrat", sans-serif;
}

.popup-content h2 {
  margin-bottom: 18px;
  font-size: 1.75rem;
  font-weight: 700;
  color: #004aad;
}

.popup-content p {
  margin-bottom: 14px;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #000;
}

/* Animations */
@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInPopup {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
