#particles-section {
  position: relative;
  width: 100%;
  height: auto; /* ubah dari 500px ke auto */
  overflow: hidden;
}

#particles-js {
  position: absolute;
  inset: 0; /* shorthand utk top,left,right,bottom:0 */
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #888;
  background-image: url('https://akmal.customs.gov.my/vd/img/DSC_26744.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#particles-section .content-overlay {
  position: relative;
  z-index: 1;
  min-height: 500px; /* biar tetap tinggi di desktop */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem; /* ruang sisi */
}

#particles-section h2, 
#particles-section h3 {
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  word-wrap: break-word;
}

#particles-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
  z-index: 0;
}

/* ✅ Responsif untuk telefon */
@media (max-width: 768px) {

  #particles-section .content-overlay {
    min-height: auto; /* auto ikut isi */
    padding: 3rem 1rem;
  }

  #particles-section h2 {
    font-size: 1.25rem !important;
    -webkit-text-stroke: 0.5px black !important; /* nipis */
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.35); /* lebih cerah dari desktop */
  }

  #particles-section h3 {
    font-size: 1rem !important;
    -webkit-text-stroke: 0.5px black !important;
    color: #ffeb3b !important; /* kuning lebih cerah */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.35);
  }

  #particles-section .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  #particles-section .position-relative {
    max-width: 95% !important;
  }

  #particles-section img.img-thumbnail {
    width: 100% !important;
    height: auto !important;
  }

  #particles-section span {
    width: 45px !important;
    height: 45px !important;
  }
}
