/*
|--------------------------------------------------------------------------
| File: asset/css/modal.css (Diperbarui)
| Deskripsi: Styling untuk modal "About Me" yang muncul di dalam section.
|--------------------------------------------------------------------------
*/

/* ===== MODAL OVERLAY & POPUP ===== */
.bkw-modal-overlay {
  /* Overlay sekarang menggunakan position: absolute */
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none; /* Tetap tersembunyi secara default */
}

.bkw-modal {
  /* Modal utama, sekarang juga menggunakan position: absolute */
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2100;
  display: none; /* Tetap tersembunyi secara default */
  /* Menggunakan flex untuk menengahkan konten */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ===== MODAL CONTENT ===== */
.bkw-modal-content {
  position: relative;
  background: rgba(10, 10, 20, 0.9);
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  width: 90vw;
  max-width: 900px;
  max-height: 85vh; /* Batasi tinggi agar bisa di-scroll */
  font-size: 1.05rem;
  line-height: 1.7;
  border: 2px solid #ff6b6b;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden; /* Sembunyikan overflow di sini */
  animation: bkw-modal-fadein 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bkw-modal-fadein {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== CLOSE BUTTON (X) ===== */
.bkw-modal-close {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 2rem;
  color: #ff6b6b;
  cursor: pointer;
  font-weight: bold;
  background: none;
  border: none;
  z-index: 2200;
  transition: color 0.2s;
}

.bkw-modal-close:hover {
  color: #fff;
}

/* ===== MODAL BODY/TEXT (AREA SCROLL) ===== */
.bkw-modal-body {
  padding: 2rem;
  overflow-y: auto; /* Aktifkan scroll vertikal jika konten melebihi tinggi */
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.bkw-modal-body b {
  color: #ff6b6b;
  font-weight: 600;
}

/* ===== MODAL AKTIF ===== */
.bkw-modal.active,
.bkw-modal-overlay.active {
  display: flex !important; /* Gunakan flex untuk menampilkan */
  opacity: 1 !important;
  visibility: visible !important;
}

/* ===== SCROLLBAR STYLING ===== */
.bkw-modal-body::-webkit-scrollbar {
  width: 8px;
}
.bkw-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.bkw-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 107, 0.5);
  border-radius: 4px;
}
.bkw-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 107, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .bkw-modal-content {
    width: 95vw;
    font-size: 0.98rem;
  }
  .bkw-modal-body {
    padding: 1.5rem;
  }
  .bkw-modal-close {
    top: 12px;
    right: 15px;
    font-size: 1.8rem;
  }
}