/* ==================== Footer ==================== */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


/* ==================== Footer Redesign (Antigravity Style) ==================== */
.ag-footer {
  position: relative;
  background: #ffffff;
  color: #111111;
  padding: 80px 0 30px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
  border-top: 1px solid #eaeaea;
  z-index: 1;
}

/* --- Elegant Multi-Layer Aurora System --- */
.ag-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Orb 1: Biru brand — kiri, besar dan dominan */
.ag-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(47, 79, 210, 0.42) 0%,
    rgba(47, 79, 210, 0.2) 35%,
    rgba(47, 79, 210, 0.05) 60%,
    transparent 80%
  );
  filter: blur(50px);
  top: 5%;
  left: -8%;
  animation: orbFlow1 12s ease-in-out infinite alternate;
}

/* Orb 2: Cyan cerah — kanan atas */
.ag-orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(
    circle,
    rgba(50, 200, 255, 0.4) 0%,
    rgba(50, 200, 255, 0.16) 40%,
    rgba(50, 200, 255, 0.04) 60%,
    transparent 80%
  );
  filter: blur(45px);
  top: -12%;
  right: 0%;
  animation: orbFlow2 14s ease-in-out infinite alternate;
}

/* Orb 3: Violet/ungu — tengah bawah */
.ag-orb-3 {
  width: 800px;
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(110, 90, 255, 0.3) 0%,
    rgba(110, 90, 255, 0.12) 40%,
    rgba(110, 90, 255, 0.03) 60%,
    transparent 80%
  );
  filter: blur(55px);
  bottom: -18%;
  left: 15%;
  animation: orbFlow3 16s ease-in-out infinite alternate;
}

/* Orb 4: Putih-biru terang — highlight tengah */
.ag-orb-4 {
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(200, 225, 255, 0.5) 0%,
    rgba(200, 225, 255, 0.2) 35%,
    rgba(200, 225, 255, 0.05) 60%,
    transparent 80%
  );
  filter: blur(40px);
  top: 30%;
  left: 28%;
  animation: orbFlow4 10s ease-in-out infinite alternate;
}

@keyframes orbFlow1 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%  { transform: translate(80px, -50px) scale(1.1) rotate(2deg); }
  50%  { transform: translate(30px, 60px) scale(0.95) rotate(-1deg); }
  75%  { transform: translate(-60px, 20px) scale(1.08) rotate(1deg); }
  100% { transform: translate(-30px, -40px) scale(1) rotate(-2deg); }
}

@keyframes orbFlow2 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%  { transform: translate(-100px, 70px) scale(1.12) rotate(-2deg); }
  50%  { transform: translate(-40px, -30px) scale(0.96) rotate(1deg); }
  75%  { transform: translate(60px, 50px) scale(1.06) rotate(-1deg); }
  100% { transform: translate(30px, -60px) scale(1) rotate(2deg); }
}

@keyframes orbFlow3 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%  { transform: translate(90px, -40px) scale(1.08) rotate(1deg); }
  50%  { transform: translate(-50px, 30px) scale(1.12) rotate(-2deg); }
  75%  { transform: translate(40px, 60px) scale(0.95) rotate(1deg); }
  100% { transform: translate(-70px, -20px) scale(1.04) rotate(-1deg); }
}

@keyframes orbFlow4 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%  { transform: translate(-60px, -40px) scale(1.1) rotate(-1deg); }
  50%  { transform: translate(50px, 30px) scale(0.94) rotate(2deg); }
  75%  { transform: translate(20px, -50px) scale(1.08) rotate(-2deg); }
  100% { transform: translate(-40px, 40px) scale(1) rotate(1deg); }
}
/* ------------------------------------------- */

.ag-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2; /* Agar teks dan link berada di depan cahaya */
}

.ag-footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.ag-footer-headline {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111111;
  min-height: 80px; /* Cegah layout shift saat teks berganti */
}

.ag-cta-text {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.ag-footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 140px;
  padding-right: 4vw;
}

.ag-link-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ag-link-column a {
  color: #111111;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.ag-link-column a:hover {
  opacity: 0.5;
}

.ag-footer-middle {
  width: 100%;
  overflow: visible; /* Hapus hidden agar 'g' tidak terpotong */
  text-align: center;
  margin-bottom: 20px;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 2; /* Teks raksasa di atas lampu cahayanya */
}

.ag-giant-text {
  font-size: 22vw;
  line-height: 1.05; /* Penambahan spasi tinggi bawah baris agar ekor g aman */
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #111111;
  margin: 0;
  white-space: nowrap;
  display: inline-block;
  padding-bottom: 2vw; /* Tambahan rongga spasi agar tak termakan margin */
}

.brand-digi {
  color: #6A6F73;
}

.brand-code {
  color: #2F4FD2;
}

.ag-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.ag-footer-logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #666;
  display: flex;
  align-items: center;
}

.ag-footer-legal {
  display: flex;
  gap: 24px;
  align-items: center;
}

.ag-footer-legal span,
.ag-footer-legal a {
  color: #666666;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.ag-footer-legal a:hover {
  color: #111111;
}

/* ==================== Responsive Footer ==================== */
@media (max-width: 1024px) {
  .ag-footer-links {
    gap: 60px;
    padding-right: 0;
  }
  .ag-giant-text {
    font-size: 20vw;
  }
}

@media (max-width: 768px) {
  .ag-footer {
    padding: 60px 0 30px;
  }

  .ag-container {
    padding: 0 24px;
  }

  .ag-footer-top {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
    text-align: center;
  }

  .ag-footer-headline {
    font-size: 26px;
    min-height: auto;
  }

  .ag-footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    padding: 0;
    flex-wrap: wrap;
  }

  .ag-link-column {
    align-items: center;
    min-width: 120px;
  }

  .ag-giant-text {
    font-size: 24vw;
    padding-bottom: 4vw;
  }

  .ag-footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .ag-footer-legal {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .ag-footer-links {
    flex-direction: column;
    gap: 24px;
  }
  
  .ag-footer-headline {
    font-size: 22px;
  }
  
  .ag-giant-text {
    font-size: 28vw;
  }
}

/*MODAL STYLES ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* Latar belakang gelap */
  backdrop-filter: blur(4px);
  /* Efek blur modern */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #fff;
  width: 90%;
  max-width: 600px;
  /* Lebar maksimal modal */
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  /* Agar tidak melebihi tinggi layar */
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

/* Header Modal */
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: #000;
}

/* Body Modal (Area Teks Panjang) */
.modal-body {
  padding: 24px;
  overflow-y: auto;
  /* KUNCI: Scrollbar muncul jika teks panjang */
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}

.modal-body p {
  margin-bottom: 16px;
}

.modal-body strong {
  color: #000;
  display: block;
  margin-bottom: 8px;
}

/* Kustomisasi Scrollbar agar rapi */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-bottom-right-radius: 16px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Footer Modal */
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e5e5;
  text-align: right;
  background: #fafafa;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.btn-agree {
  background: #2f4fd2;
  /* Warna sesuai tema kamu */
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-close-modal {
  background: transparent;
  color: #666;
  border: 1px solid #ccc;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  background: #f0f0f0;
  /* Efek hover abu-abu muda */
  color: #000;
  border-color: #999;
}

.btn-agree:hover {
  background: #1a1a1a;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 480px) {
  .logo-text {
    font-size: 18px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .nav-actions .btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}