* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
}

.navbar { 
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  padding: 20px 20px;
  display: flex;
  justify-content: center;
  transition: background-color 0.5s ease;
  background-color: #ffd700; /* Tambahan: langsung kuning */
}

.navbar-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 60px;
  margin-right: 12px;
}

.navbar-text {
  font-size: 1.4rem;
  color: black; /* Diperbarui dari putih ke hitam */
  font-weight: bold;
}

/* === HAMBURGER === */
.navbar-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: black; /* Diperbarui dari putih ke hitam */
  position: relative;
  z-index: 30;
}

/* === NAV MENU === */
.navbar-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 20;
  display: flex;
}

.navbar-menu.show {
  transform: translateX(0);
}

.navbar-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  z-index: 21;
}

.navbar-menu a {
  font-size: 1.8rem;
  margin: 15px 0;
  color: black;
  text-decoration: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 40px;
  border-radius: 10px;
  width: 100%;
  width: 50%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-content h2{
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.close {
  color: #aaa;
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

.close:hover {
  color: #e74c3c;
}

.kontak-list {
  list-style: none;
  padding-left: 0;
  font-size: 1.4rem;
  color: #333;
}

.kontak-list li {
  margin-top: 12px;
}

.kontak-list a {
  color: #f39c12;
  text-decoration: none;
}

.kontak-list a:hover {
  text-decoration: underline;
}


@media (min-width: 426px) and (max-width: 767px) {
  .navbar-text {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-menu a {
    color: white;
  }

  .navbar.scrolled .navbar-menu a,
  .navbar.scrolled .navbar-text {
    color: white !important;
  }

  .navbar-menu {
    width: 60%;
    padding-top: 70px;
  }

  .navbar-logo img {
    width: 90px;
  }

  .overlay-text {
    font-size: 1.5rem;
  }

  .typing-subtext {
    font-size: 1.1rem;
  }

  /* modal */

  .modal-content {
    width: 95%;          /* Supaya modal hampir memenuhi layar */
    margin: 30% auto;    /* Turunkan posisi modal agar tidak terlalu ke atas */
    padding: 8%;       /* Kurangi padding agar proporsional */
  }

  .modal-content h2 {
    font-size: 1.5rem;   /* Ukuran judul lebih kecil */
    text-align: center;
  }

  .kontak-list {
    font-size: 1.3rem;   /* Ukuran teks lebih kecil */
  }

  .close {
    top: 10px;
    right: 15px;
    font-size: 40px;     /* Ikon close sedikit lebih kecil */
  }
}

@media (min-width: 320px) and (max-width: 425px) {
  .navbar-text {
    display: none;
  }

  .navbar-menu a{
    color: white;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar.scrolled .navbar-menu a,
  .navbar.scrolled .navbar-text {
    color: white !important;
  }

  .navbar-menu {
    width: 60%;
    padding-top: 80px;
  }

  .navbar-logo img {
    width: 60px;
  }

  .navbar-text {
    font-size: 1.8rem;
  }

  .overlay-text h1 {
    font-size: 2.6rem;
  }

  .typing-subtext {
    font-size: 1.4rem;
  }

  /* modal */

 .modal-content {
    width: 95%;          /* Supaya modal hampir memenuhi layar */
    margin: 30% auto;    /* Turunkan posisi modal agar tidak terlalu ke atas */
    padding: 8%;       /* Kurangi padding agar proporsional */
  }

  .modal-content h2 {
    font-size: 1.5rem;   /* Ukuran judul lebih kecil */
    text-align: center;
  }

  .kontak-list {
    font-size: 1.2rem;   /* Ukuran teks lebih kecil */
  }

  .close {
    top: 10px;
    right: 15px;
    font-size: 40px;     /* Ikon close sedikit lebih kecil */
  }

}

@media (min-width: 768px) and (max-width: 1024px) {
  .navbar-menu {
    position: static;
    height: auto;
    width: auto;
    transform: none !important;
    background-color: transparent;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0;
  }

  .navbar-close {
    display: none;
  }

  .navbar.scrolled .navbar-menu a,
  .navbar.scrolled .navbar-text {
    color: black !important;
  }

  .navbar-toggle {
    display: none !important;
  }

  .navbar-menu a {
    margin: 0 15px;
    font-size: 1.4rem;
    color: black;
  }

  

  .navbar.scrolled:hover {
    color: white;
  }

  .navbar-subtext {
    font-size: 1rem;
    border-right: 2px solid white;
    height: 20px;
  }

  /* modal */

  .modal-content {
    width: 90%;          /* Supaya modal hampir memenuhi layar */
    margin: 30% auto;    /* Turunkan posisi modal agar tidak terlalu ke atas */
    padding: 20px;       /* Kurangi padding agar proporsional */
  }

  .modal-content h2 {
    font-size: 2.0rem;   /* Ukuran judul lebih kecil */
    text-align: center;
  }

  .kontak-list {
    font-size: 1.8rem;   /* Ukuran teks lebih kecil */
  }

  .close {
    top: 10px;
    right: 15px;
    font-size: 24px;     /* Ikon close sedikit lebih kecil */
  }

  .kontak-list {
    text-align: center;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .navbar-menu {
    position: static;
    height: auto;
    width: auto;
    transform: none !important;
    background-color: transparent;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0;
  }

  .navbar-close {
    display: none;
  }

  .navbar.scrolled .navbar-menu a,
  .navbar.scrolled .navbar-text {
    color: black !important;
  }

  .navbar-toggle {
    display: none !important;
  }

  .navbar-menu a {
    margin: 0 15px;
    font-size: 1.4rem;
    color: black;
  }

  

  .navbar.scrolled:hover {
    color: white;
  }

  .navbar-subtext {
    font-size: 1rem;
    border-right: 2px solid white;
    height: 20px;
  }

  .modal-content {
    text-align: center;
  }
}

@media (min-width: 1281px) {
  .navbar-menu {
    position: static;
    height: auto;
    width: auto;
    transform: none !important;
    background-color: transparent;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0;
  }

  .navbar-close {
    display: none;
  }

  .navbar.scrolled .navbar-menu a,
  .navbar.scrolled .navbar-text {
    color: black !important;
  }

  .navbar-toggle {
    display: none !important;
  }

  .navbar-menu a {
    margin: 0 15px;
    font-size: 1.4rem;
    color: black;
  }

  

  .navbar.scrolled:hover {
    color: white;
  }

  .navbar-subtext {
    font-size: 1rem;
    border-right: 2px solid white;
    height: 20px;
  }

  .modal-content {
    text-align: center;
  }
}


