@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400&display=swap');

:root {
  --main-bg: linear-gradient(60deg, rgba(84,58,183,1) 0%, rgba(0,172,193,1) 100%);
  --btn-color: #01aa8e;
  --btn-hover: #008f79;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Lato', sans-serif;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}

h1 {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 60px;
  color: #ffffff;
  font-family: 'Poppins', 'Lato', sans-serif;
  margin-bottom: 8px; /* jarak antar h1 dan h2 lebih rapat */
}

h2 {
  font-weight: 300;
  letter-spacing: 1px;
  font-size: 22px;
  margin-top: 0; /* hilangkan jarak atas default */
}

.header {
  position: relative;
  text-align: center;
  background: var(--main-bg);
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.inner-header {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.header-content {
  max-width: 420px;
  width: 100%;
}

.lang-switch {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
}

.flag {
  width: 25px;
  height: auto;
  margin-left: 8px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.flag:hover {
  opacity: 1;
}


.search-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

input[type="text"] {
  font-size: 16px;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

input[type="submit"],
.btn {
  background-color: var(--btn-color);
  color: white;
  border: none;
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

input[type="submit"]:hover,
.btn:hover {
  background-color: var(--btn-hover);
}

#output {
  margin-top: 20px;
  color: white;
}

#speakBtn {
  cursor: pointer;
  background: #0078d7;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  margin-top: 12px;
  transition: 0.3s;
}

#speakBtn:hover {
  background: #005fa3;
}

#infolink {
  margin-top: 10px;
}

#infolink a {
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

#infolink a:hover {
  text-decoration: underline;
}

.footer {
  text-align: center;
  margin-top: 40px;
  padding: 10px 0;
  font-size: 14px;
  color: #c0c0c0;
}

.footer span {
  color: #c0c0c0;
  font-weight: 400;
}


.waves {
  width: 100%;
  height: 120px;
  min-height: 80px;
}

.content {
  background-color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 13px;
  color: #333;
}

/* Waves animation */
.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
  0% { transform: translate3d(-90px,0,0); }
  100% { transform: translate3d(85px,0,0); }
}

/* Responsif untuk HP */
@media (max-width: 480px) {
  h1 {
    font-size: 38px; /* masih besar di HP */
    margin-bottom: 4px;
  }

  h2 {
    font-size: 16px;
  }

  .inner-header {
    height: 60vh; /* sedikit lebih kecil agar pas di layar HP */
  }

  input[type="text"] {
    height: 42px;
    font-size: 15px;
  }
}
