/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Latar belakang halaman */
body {
  font-family: Arial, sans-serif;
  background: url('assets/aset1.png') no-repeat center center fixed;
  background-size: cover;

  min-height: 100vh;

  display: flex;
  flex-direction: column;      /* ⬅️ penting */
  align-items: center;         /* center horizontal */
  
  padding-top: 150px;
  padding-bottom: 10px;       /* ⬅️ ruang footer */

}

/* Kontainer utama */
.home-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;

  max-width: 900px;
  width: 95%;
  text-align: center;


  margin-bottom: 40px; /* ⬅️ jarak ke bawah */

  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}



body.loaded .home-container {
  opacity: 1;
  transform: none;
}

/* Header */
.home-header .logo-esdm {
  width: 120px;
  margin-bottom: 10px;
}
.home-header h1 {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: bold;
}
.home-header p {
  font-size: 18px;
  font-weight: bold;
}

/* Logout */
.logout-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background-color: #ffffff;
    color: #2C6E5B !important;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}
.logout-btn:hover {
    background-color: #2C6E5B;
    color: white !important;
}

/* Back */
.back-btn {
    position: absolute;
    top: 20px;
    right: 120px;
    background-color: #ffffff;
    color: #2C6E5B !important;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}
.back-btn:hover {
    background-color: #2C6E5B;
    color: white !important;
}

/* Link Website PSDMBP di header */
.home-header a {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.home-header a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

/* Lingkaran menu */
.circle-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}

.circle-link {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  border: 1px solid rgba(255,255,255,0.3);
  transition: transform 0.3s, background-color 0.3s;
}
.circle-link:hover {
  background-color: rgba(255,255,255,0.35);
  transform: scale(1.1);
}

/* Kontainer kontak AI */
/* Bagian kontak AI di tengah bawah */
.contact-ai.center {
  margin-top: auto;       /* dorong ke bawah */
  margin-bottom: 10px;    /* jarak ke footer */
  text-align: center;
}

/* Judul kontak */
.contact-ai.center .contact-title {
  color: rgba(255,255,255,0.95);
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 6px;
}

/* Tombol kontak */
.contact-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* Tombol dasar */
.ai-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 8px 14px;
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  backdrop-filter: blur(5px);
  transition: background 0.3s, transform 0.3s;
}

.ai-box:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.ai-icon {
  width: 20px;
  height: 20px;
}

.ai-box.telegram {
  border-left: 4px solid #0088cc;
}
.ai-box.whatsapp {
  border-left: 4px solid #25D366;
}


/* Footer */
footer {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  font-weight: bold;
}

.fixed-footer {
  align-self: flex-end;   /* dorong ke kanan */
  margin: 20px 10px 0px 10px;      /* jarak dari pinggir */
}

/* ====================== HALAMAN REFERENSI ====================== */
.ref-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  max-width: 900px;
  width: 95%;
  text-align: center;
  margin: 80px auto;
}

/* ====================== SECTION ====================== */
.ref-header {
  margin-bottom: 25px;
}

.ref-header .logo-esdm {
  width: 120px;
  margin-bottom: 10px;
}

.ref-section {
  background: rgba(255,255,255,0.15);
  padding: 25px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
}

.ref-header h1 {
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: bold;
}

.ref-header p {
  font-size: 14px;
}

/* ====================== LIST WRAPPER ====================== */
.ref-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ====================== SECTION ====================== */
.ref-section {
  background: rgba(255,255,255,0.15);
  padding: 25px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ====================== JUDUL ====================== */
.ref-section h3 {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

/* ====================== GRID ====================== */
.ref-section ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
}

.ref-section li {
  width: 100%;
}

/* ====================== TOOL BOX ====================== */
.ref-section li a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px;
  min-height: 40px;

  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;

  font-size: 14px;
  font-weight: 500;

  transition: background 0.25s ease, transform 0.25s ease;
}

.ref-section li a:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-3px);
  color: #ffffff;
}

/* Fade-in REFERENSI */
.ref-container {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body.loaded .ref-container {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

}
