@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
    =======================*/
.layanan {
  margin: 30px 0;
  text-align: center;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cards-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: -5px;
  width: 100%;
  max-width: 1100px;
  justify-items: center;
  animation: fadeIn 1s ease forwards;
  margin: 0 auto 27px;
}

@media (min-width: 1024px) {
  .cards-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-container {
    width: 320px;
    max-width: 360px;
  }
}

.card-container {
  position: relative;
  max-width: 450px;
  margin-top: 30px;
  animation: slideUp 0.8s ease forwards;
  opacity: 0;
}

.card-container:nth-child(1) {
  animation-delay: 0.2s;
}
.card-container:nth-child(2) {
  animation-delay: 0.4s;
}
.card-container:nth-child(3) {
  animation-delay: 0.6s;
}

.icon-floating {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85px;
  height: 85px;
  background: #004aad;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.icon-floating i {
  font-size: 2rem;
  color: #fff;
}

.card {
  position: relative;
  background: #162d4e;
  color: black;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  transform: translateY(0);
  height: auto; /* penting */
  overflow: visible;
}

.card::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 40px;
  background: linear-gradient(135deg, #1e3a8a, #4f46e5);
  border-radius: 0 0 50% 50%;
  z-index: 1;
  transition: background 0.3s ease;
}

.card h2 {
  font-size: 1rem;
  margin: -10px 0 10px;
  font-weight: bold;
  position: relative;
  z-index: 2;
  color: white;
  font-family: "Montserrat", sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: -10px;
}

.card p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: white;
  position: relative;
  z-index: 2;
  margin-top: -7px;
}

.card .teknologi {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 7px;
}

.card-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  margin: -25px 0 15px;
  position: relative;
  z-index: 2;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.garis-bawah {
  width: 40%;
  margin: 10px auto;
  height: 1.5px;
  background-color: white;
  border: none;
  border-radius: 10px;
  margin-bottom: 20px;
}

.kiri {
  position: absolute;
  top: 10px;
  height: 15px;
  width: 20%;
  background-color: #3990ff;
  border: none;
  border-radius: 10px;
  z-index: 1;
  left: 25px !important;
}

/* Tambahan untuk bulatan */
.dots {
  position: absolute;
  top: 12px;
  left: 30px;
  width: 17%;
  height: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.dots span {
  width: 10px;
  height: 10px;
  background-color: black;
  border-radius: 50%;
}

.kanan {
  position: absolute;
  top: 10px;
  height: 15px;
  width: 20%;
  background-color: #3990ff;
  border: none;
  border-radius: 10px;
  z-index: 1;
}

.kiri {
  left: -50px;
}

.kanan {
  right: 25px;
}

.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;
}

.hidden {
  display: none;
  color: white;
}

.rotate i {
  transform: rotate(180deg);
}

ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

li {
  color: white;
  text-align: left;
  font-size: 12px;
  margin-top: 5px;
  font-weight: normal;
  font-family: "Poppins", sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 5px;
}

#fitur {
  font-weight: normal;
  font-family: "Poppins", sans-serif;
}

#ket {
  font-weight: normal;
  font-family: "Poppins", sans-serif;
  margin-bottom: 20px;
  text-align: left;
}

.toggle-features i {
  color: white;
  margin-top: 10px;
}

@media (max-width: 768px) {
  body {
    background-image: url("../11223344_assets/bg/wave.svg");
  }

  .layanan {
    margin-bottom: 5px;
  }

  .cards-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card-container {
    width: 90vw;
    max-width: none;
    margin-top: 60px;
  }

  .card {
    width: 100%;
  }

  .card h2 {
    font-size: 16px;
  }

  .icon-floating {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .kiri {
    left: 25px;
  }

  .kanan {
    right: 25px;
  }
}

/*=====================
    | 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;
  }
}
