/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  padding: 20px 20px;
  display: flex;
  justify-content: center;
  transition: background-color 0.5s ease;
}

.navbar.scrolled {
  background-color: #ffd700; /* Kuning */
}

.navbar.scrolled .navbar-menu a,
.navbar.scrolled .navbar-toggle,
.navbar.scrolled .navbar-text {
  color: black !important;
}

.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: white;
  font-weight: bold;
}

/* === HAMBURGER === */
.navbar-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  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: white;
  text-decoration: none;
}

/* === VIDEO === */
.video-container {
  position: relative;
  height: 100%;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.video-container img {
  width: 100%;
  height: 100vh; /* Tinggi penuh layar */
  object-fit: cover; /* Agar gambar memenuhi area tanpa distorsi */
}

.video-container.hidden {
  opacity: 0.5;
  transform: scale(0.98);
  filter: blur(5px);
  pointer-events: none;
}

#bgVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.overlay-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  text-align: center;
  font-size: 2.5rem;
}

.typing-subtext {
  position: absolute; /* Tetap di bawah h1 */
  top: 100%; /* Posisi tepat di bawah h1 */
  left: 50%;
  transform: translate(-50%, 0); /* Pusatkan secara horizontal */
  font-size: 1.2rem;
  color: white;
  margin-top: 10px; /* Jarak antara h1 dan teks */
  /* height: 1.5rem; Tinggi tetap untuk mencegah tempat kosong */
  overflow: hidden; /* Pastikan teks tidak melampaui area */
}

/* .start-button {
  padding: 10px 20px;
  font-size: 1rem;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;

}

.start-button:hover {
  background-color: #0056b3;
} */

/* wa */

.whatsapp-container {
  position: fixed;
  bottom: 60px; /* Jarak dari bawah layar */
  right: 25px; /* Jarak dari kanan layar */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 1000; /* Pastikan elemen berada di atas */
  opacity: 1;
  transition: opacity 0.3s ease; /* Animasi muncul/hilang */
}

.whatsapp-container.hidden {
  opacity: 0; /* Sembunyikan elemen */
  pointer-events: none; /* Nonaktifkan interaksi */
}

.whatsapp-container p {
  position: relative;
  background-color: #e0f7ea; /* warna hijau muda seperti chat bubble */
  color: #075e54;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px; /* jarak dari logo */
  padding: 8px 12px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: bounceText 2s infinite;
}

.whatsapp-container p::after {
  content: "";
  position: absolute;
  bottom: -8px; /* posisi panah di bawah balon */
  left: 84%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #e0f7ea; /* warna sama dengan background balon */
}

.whatsapp-logo {
  width: 90px; /* Ukuran logo */
  height: 90px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-logo:hover {
  transform: scale(1.1); /* Efek zoom saat hover */
}

@keyframes bounceText {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* tentang_kami */

.tentang_kami {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 4%;
}

.tentang_kami_tulisan {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 20px 20px 20px 5px; /* sudut balon */
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  color: #333;
  line-height: 1.8;
  text-align: justify;
  animation: fadeSlideUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  animation-play-state: paused;
}

/* Ekor balon */
.tentang_kami_tulisan::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: -20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-right-color: #ffffff;
  border-left: 0;
  border-bottom: 0;
}

/* Judul */
.tentang_kami_tulisan h1 {
  font-size: 2.5rem;
  color: #1e3a8a;
  margin-bottom: 20px;
  border-bottom: 2px solid #1e3a8a;
  padding-bottom: 10px;
  text-align: left;
}

/* Penekanan */
.tentang_kami_tulisan strong {
  color: #111;
}

.tentang_kami_tulisan em {
  color: #d97706;
  font-style: normal;
  font-weight: bold;
}

/* Animasi muncul */
@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === CONTENT === */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6vh;
  /* border: 2px solid green; */
  height: auto;
  max-width: 100%;
  /* margin: auto; */
  margin-top: 2%;
}

.content h1 {
  font-size: 2.4rem;
}

.content p {
  font-size: 1.6rem;
  color: #555;
}

.content #pertama_content {
  padding-top: 1vh;
}

.layanan {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding-top: 4vh;
  width: 100%;
  /* border: 2px solid green; */
}

.divisi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#sipil {
  width: 120px;
  height: 120px;
}

/* foto */

.foto {
  width: 100%;
  height: auto;
  margin-top: 14vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* border: 2px solid black; */
}

.foto h1 {
  font-size: 2.4rem;
}

/* our projek */

.foto_projek {
  width: 100%;
  height: auto;
  /* border: 2px solid black; */
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2%;
}

.gambar1 {
  width: 30%;
  height: auto;
  position: relative; /* tambahkan untuk parent positioning */
  margin: 10px 0;
  border-radius: 10px;
  overflow: hidden;
}

.gambar1 img {
  width: 100%;
  height: 300px;
  display: block;
  border-radius: 10px;
}

.tulisan_gambar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: white;
  text-align: center;
  padding: 15px;
  box-sizing: border-box;
}

.tulisan_gambar h1 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-align: start;
  color: whitesmoke;
}

.tulisan_gambar a {
  width: 40%;
  padding: 8px 16px;
  background-color: #ffffffcc;
  color: black;
  border: none;
  border-radius: 5px;
  /* font-weight: bold; */
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tulisan_gambar a:hover {
  background-color: #ffd700;
}

/* === SUBTEXT TYPO === */
.typing-subtext {
  font-size: 1.8rem;
  color: white;
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid white;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  animation: blink-caret 0.7s step-end infinite;
  text-align: center;
}

.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: 30px;
  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;
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

/* footer */

/* === RESPONSIVE === */
@media (min-width: 426px) and (max-width: 767px) {
  .navbar-text {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }

  .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;
  }

  .tentang_kami img {
    display: none;
  }

  .tentang_kami p {
    font-size: 0.9rem;
  }

  .tentang_kami h1 {
    font-size: 1.8rem;
  }

  /* wa */
  .whatsapp-logo {
    width: 60px; /* Ukuran logo */
    height: 60px;
  }

  .whatsapp-container {
    bottom: 20px;
    right: 15px;
    align-items: flex-end;
  }

  .whatsapp-container p::after {
    left: 84%;
  }

  /* content */

  .content {
    text-align: center;
  }

  .content h1 {
    font-size: 1.6rem;
  }

  .content p {
    font-size: 1rem;
    width: 80%;
  }

  .layanan {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .divisi {
    margin-bottom: 20px;
    /* border: 2px solid black; */
    padding: 20px;
  }

  /* foto hasil kerja */

  .foto {
    margin-top: 10%;
  }

  .foto_projek {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .gambar1 {
    width: 90%;
  }
  
  .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: 320px) and (max-width: 425px) {
  .navbar-text {
    display: none;
  }

  .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;
  }

  /* tentang kami */

  .tentang_kami img {
    display: none;
  }

  .tentang_kami p {
    font-size: 0.9rem;
  }

  .tentang_kami h1 {
    font-size: 1.8rem;
  }

  /* wa */
  .whatsapp-logo {
    width: 60px; /* Ukuran logo */
    height: 60px;
  }

  .whatsapp-container {
    bottom: 20px;
    right: 15px;
    align-items: flex-end;
  }

  .whatsapp-container p::after {
    left: 84%;
  }

  /* content */

  .content {
    text-align: center;
  }

  .content h1 {
    font-size: 1.6rem;
  }

  .content p {
    font-size: 1rem;
    width: 80%;
  }

  .layanan {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .divisi {
    margin-bottom: 20px;
    /* border: 2px solid black; */
    padding: 20px;
  }

  /* foto hasil kerja */

  .foto {
    margin-top: 10%;
  }

  .foto_projek {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .gambar1 {
    width: 90%;
  }
  
  .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: white;
  }

  .navbar.scrolled {
    background-color: #ffd700; /* Kuning */
    color: black;
  }

  .navbar.scrolled:hover {
    color: white;
  }

  .navbar-subtext {
    font-size: 1rem;
    border-right: 2px solid white;
    height: 20px;
  }

  /* tentang kami */

  .tentang_kami h1 {
    font-size: 2.4rem;
  }

  .tentang_kami p {
    font-size: 1.4rem;
  }

  .tentang_kami img {
    display: none;
  }

  /* content */

  .layanan {
    /* border: 2px solid green; */
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
    padding-top: 4vh;
  }

  .divisi {
    /* border: 2px solid black; */
    margin-top: 4vh;
  }

  .divisi img {
    width: 80%;
    height: auto;
  }

  /* foto hasil kerja */

  .foto {
    margin-top: 10%;
  }

  .gambar1 {
    width: 45%;
    height: auto;
  }
}

@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: white;
  }

  .navbar.scrolled {
    background-color: #ffd700; /* Kuning */
    color: black;
  }

  .navbar.scrolled:hover {
    color: white;
  }

  .navbar-subtext {
    font-size: 1rem;
    border-right: 2px solid white;
    height: 20px;
  }

  .tentang_kami {
    display: flex;
    flex-direction: row;
    flex: wrap;
    justify-content: center;
    align-items: center;
  }

  .tentang_kami img {
    width: 45%;
    height: auto;
  }

  .tentang_kami_tulisan {
    width: 45%;
  }
}

@media (min-width: 1281px) and (max-width: 1440px) {
  .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: white;
  }

  .navbar.scrolled {
    background-color: #ffd700; /* Kuning */
    color: black;
  }

  .navbar.scrolled:hover {
    color: white;
  }

  .navbar-subtext {
    font-size: 1rem;
    border-right: 2px solid white;
    height: 20px;
  }

  .tentang_kami {
    display: flex;
    flex-direction: row;
    flex: wrap;
    justify-content: center;
    align-items: center;
  }

  .tentang_kami img {
    width: 40%;
    height: auto;
  }

  .tentang_kami_tulisan {
    width: 45%;
  }
}

@media (min-width: 1441px) {
  .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: white;
  }

  .navbar.scrolled {
    background-color: #ffd700; /* Kuning */
    color: black;
  }

  .navbar.scrolled:hover {
    color: white;
  }

  .navbar-subtext {
    font-size: 1rem;
    border-right: 2px solid white;
    height: 20px;
  }

  .tentang_kami {
    display: flex;
    flex-direction: row;
    flex: wrap;
    justify-content: center;
    align-items: center;
  }

  .tentang_kami img {
    width: 40%;
    height: auto;
  }

  .tentang_kami_tulisan {
    width: 45%;
  }
}
