body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0a0a23;
  color: white;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 97.5%;
  background-color: #12123a; /* pastikan background supaya nggak transparan */
  z-index: 1100; /* lebih tinggi dari nav-menu supaya tetap di atas */
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.logo {
  font-size: 24px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url("assets/image/panel.jpeg") no-repeat center center/cover;
  position: relative;
}

.overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #227aff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

section {
  padding: 50px;
  text-align: center;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: left;
}

.about-image {
  width: 310px;
  height: 410px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgb(0, 34, 146);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.about-image img {
  width: 95%;
  height: auto;
}

.about-text {
  max-width: 600px;
  text-align: justify;
}

.about h2 {
  text-align: left;
}

.skills ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.skills li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  padding: 20px;
  background: #1a1a3a;
  border-radius: 5px;
  text-align: center;
}

.skills li img {
  width: 120px;
  height: 100px;
  margin-bottom: 10px;
}

.certifications,
.services,
.contact {
  text-align: center;
  padding: 50px;
}

.certification-list,
.project-list,
.service-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.certification,
.project,
.service {
  background: #1a1a3a;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.certification img,
.service img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 10px;
}

.project video {
  width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 10px;
  object-fit: cover;
}

.contact-card {
  background: #1a1a3a;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
  width: 350px;
  margin: 0 auto;
}

.social-icons {
  display: flex;
  gap: 25px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  border-radius: 30%;
}

.social-icons img:hover {
  transform: scale(1.2);
}

.floating-logo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

.floating-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.floating-logo:hover {
  transform: scale(1.1);
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsif HP */
@media (max-width: 480px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    background-color: #12123a; /* pastikan background supaya nggak transparan */
    z-index: 1100; /* lebih tinggi dari nav-menu supaya tetap di atas */
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .about-container {
    flex-direction: column;
  }

  .contact-card {
    width: 90%;
  }

  .skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
  }

  .skills li {
    width: calc(100% / 3 - 0); /* Bagi rata 6 item per baris */
    max-width: 80px;
    text-align: center;
    background: #1a1a3a;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 12px; /* Ukuran teks kecil dan seragam */
    white-space: nowrap; /* Hindari teks pindah baris */
    overflow: hidden; /* Sembunyikan jika terlalu panjang */
    text-overflow: ellipsis; /* Tambahkan "..." jika kepanjangan */
  }

  .skills li img {
    width: 100%;
    height: auto;
    max-height: 60px;
    margin-bottom: 5px;
  }

  .floating-logo {
    width: 40px;
    height: 40px;
    bottom: 10px;
    right: 10px;
  }

  .floating-logo img {
    width: 35px;
    height: 35px;
  }

  .contact {
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Tampilkan hamburger */
  .menu-toggle {
    display: flex; /* tampilkan hamburger */
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
  }

  /* Sembunyikan navbar default */
  #nav-menu {
    position: fixed;
    top: 60px; /* posisi bawah header */
    right: 0;
    width: 170px; /* lebar menu */
    height: calc(120vh - 60px); /* tinggi penuh layar minus header */
    background-color: #12123a;
    transform: translateX(100%); /* geser ke kanan sepenuhnya */
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  }

  #nav-menu.active {
    transform: translateX(0); /* muncul kembali ke posisi */
    opacity: 1;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
    height: 100%;
    overflow-y: auto;
  }
}

/* Responsif Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }

  .contact-card {
    width: 80%;
  }

  /* HAPUS ini supaya tetap layout desktop */
  /*
  .certification,
  .project,
  .service {
    width: 48%;
  }
  */

  .floating-logo {
    width: 50px;
    height: 50px;
  }

  .floating-logo img {
    width: 40px;
    height: 40px;
  }
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  #nav-menu {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: #12123a;
    transform: translateY(-200%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  #nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
  }
}

/* Animate hamburger */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Responsif Laptop */
@media (min-width: 769px) and (max-width: 1200px) {
  .about-container {
    flex-direction: row;
  }

  .contact-card {
    width: 70%;
  }

  .certification,
  .project,
  .service {
    width: 30%;
  }

  .project-list,
  .certification-list,
  .service-list {
    gap: 15px;
  }
}

/* Responsif PC Desktop */
@media (min-width: 1201px) {
  .about-container {
    flex-direction: row;
  }

  .contact-card {
    width: 350px;
  }

  .certification,
  .project,
  .service {
    width: 250px;
  }

  .project-list,
  .certification-list,
  .service-list {
    gap: 30px;
  }
}

.certification,
.project,
.service {
  width: 250px;
}

.certification-list,
.project-list,
.service-list {
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
