/* public/assets/css/style.css */
:root {
  /* Brand Colors PT Pesona Adi Batara */
  --pab-blue-primary: #135ef9; /* Biru Tua */
  --pab-blue-light: #3f83fe; /* Biru Muda */
  --pab-red-accent: #fd0102; /* Merah */

  /* Neutral Colors */
  --pab-white: #ffffff;
  --pab-dark: #1e293b;
  --pab-gray: #f1f5f9;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--pab-gray);
  color: var(--pab-dark);
}

/* --- Navbar Floating Style (Ala BTN) --- */

/* Wrapper luar untuk mengatur posisi melayang */
.header-floating-wrapper {
  z-index: 1030; /* Pastikan di atas slider */
  transition: all 0.3s ease;
}

/* Kotak Kapsul Putih */
.navbar-rounded-box {
  background-color: rgba(255, 255, 255, 0.95); /* Putih transparan */
  backdrop-filter: blur(10px); /* Efek blur modern */
  border-radius: 50px; /* Sudut membulat (Kapsul) */
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Bayangan halus */
}

/* Link Navigasi (Teks Gelap karena background putih) */
.navbar-rounded-box .nav-link {
  color: var(--pab-dark) !important;
  font-weight: 500;
  margin-left: 5px;
  padding: 0.5rem 1rem !important;
  border-radius: 20px;
  transition: all 0.3s;
}

/* Efek saat mouse sorot menu */
.navbar-rounded-box .nav-link:hover,
.navbar-rounded-box .nav-link.active {
  color: var(--pab-blue-primary) !important; /* Jadi Biru PAB */
  background-color: rgba(19, 94, 249, 0.05); /* Background biru pudar */
  transform: translateY(0);
}

/* --- Logo Adjustment --- */
.navbar-brand img {
  height: 40px; /* Tinggi fix header BTN */
  width: auto;
  transition: transform 0.3s;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* --- Buttons --- */
.btn-pab-primary {
  background-color: var(--pab-blue-primary);
  color: white;
  border: none; /* Hilangkan border default */
}

/* Khusus tombol login bulat di header */
.btn-pab-primary.rounded-pill {
  font-weight: 600;
}

.btn-pab-primary:hover {
  background-color: var(--pab-blue-light);
  color: white;
}

.btn-pab-cta {
  background-color: var(--pab-red-accent);
  color: white;
  font-weight: bold;
  border-radius: 50px;
  padding: 8px 25px;
}

.btn-pab-cta:hover {
  background-color: #d00000;
  color: white;
}

/* --- [UPDATE] Hero Slider Styles (Full Screen Fix) --- */
.hero-slider {
  width: 100%;
  height: 100vh !important; /* REVISI: Full Layar 1 Halaman */
  position: relative;
  margin-top: 0 !important; /* Paksa nempel atas */
}

.swiper-slide {
  background-color: #000;
  overflow: hidden;
}

/* Background Image dengan Zoom Effect */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 5s ease;
}

.swiper-slide-active .slide-bg {
  transform: scale(1.1);
}

/* Gradient Overlay BTN Style */
.overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(19, 94, 249, 0.9) 0%,
    rgba(19, 94, 249, 0.6) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
}

/* --- [BARU] Navigation & Pagination Fixes --- */

/* Memperbaiki Tombol Next/Prev yang tidak bisa diklik */
.swiper-button-next,
.swiper-button-prev {
  color: var(--pab-white) !important;
  z-index: 50 !important; /* Lapisan paling atas supaya bisa diklik */
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1); /* Sedikit background */
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.2rem;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--pab-blue-primary);
  transform: scale(1.1);
}

/* Pagination Auto-Hide */
.swiper-pagination {
  opacity: 0; /* Default: Tersembunyi */
  transition:
    opacity 0.4s ease,
    bottom 0.3s ease;
  z-index: 50 !important;
  bottom: 20px !important;
}

/* Muncul HANYA saat mouse masuk ke area slider */
.hero-slider:hover .swiper-pagination {
  opacity: 1;
  bottom: 40px !important;
}

/* Styling Titik Pagination */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: white;
  opacity: 0.5;
  margin: 0 6px !important;
  transition: all 0.3s;
}

.swiper-pagination-bullet-active {
  background: var(--pab-red-accent);
  opacity: 1;
  width: 30px; /* Titik aktif memanjang */
  border-radius: 10px;
}

/* --- News Card Hover Effects --- */
.group-hover:hover .card-img-top {
  transform: scale(1.1);
}

.transition-transform {
  transition: transform 0.5s ease;
}

.object-fit-cover {
  object-fit: cover;
}

.grayscale-hover {
  transition: all 0.3s;
}
.grayscale-hover:hover {
  opacity: 1 !important;
}

/* Transisi halus untuk semua perubahan */
.transition-all,
.navbar-rounded-box {
  transition: all 0.4s ease-in-out;
}

/* Saat Sticky Active (Scroll Down) */
.sticky-active {
  margin-top: 0 !important;
}

.sticky-active .navbar-rounded-box {
  border-radius: 0 0 20px 20px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* SAAT STICKY AKTIF: Tombol jadi Bulat (Icon Only) */
.sticky-active .header-actions .btn-morph {
  padding: 8px 12px !important;
  border-radius: 50% !important;
  width: 42px; /* Lebar fix */
  height: 42px; /* Tinggi fix */
  justify-content: center;
}

.sticky-active .header-actions .btn-morph i {
  font-size: 1.1rem;
}

.sticky-active .header-actions .btn-morph .btn-text {
  max-width: 0;
  opacity: 0;
  margin-left: 0 !important;
}

/* Penyesuaian Sticky Wrapper */
.sticky-active .navbar-rounded-box {
  border-radius: 0 0 25px 25px;
  padding: 0.5rem 1rem;
}

/* SERVICE CARDS */
.hover-top {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-top:hover {
  transform: translateY(-10px); /* Kartu naik ke atas saat di-hover */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

/* Warna-warni background icon */
.bg-blue-light {
  background-color: #e3f2fd;
}
.bg-green-light {
  background-color: #e8f5e9;
}
.bg-orange-light {
  background-color: #fff3e0;
}
.bg-purple-light {
  background-color: #f3e5f5;
}

/* Saat hover kartu, icon ikut membesar dikit */
.hover-top:hover .icon-circle {
  transform: scale(1.1);
}

/* Helper Colors (Sama seperti di Homepage) */
.bg-blue-light {
  background-color: #e3f2fd;
}
.bg-green-light {
  background-color: #e8f5e9;
}
.bg-orange-light {
  background-color: #fff3e0;
}
.bg-purple-light {
  background-color: #f3e5f5;
}

/* --- FOOTER MODERN STYLES --- */

/* Link di Footer */
.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7); /* Putih agak transparan */
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--pab-white);
  padding-left: 5px; /* Efek geser kanan dikit saat hover */
}

/* Social Media Icons (Bulat) */
.social-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none !important;
}

.social-icon:hover {
  background-color: var(
    --pab-blue-primary
  ) !important; /* Jadi biru saat hover */
  color: white !important;
  transform: translateY(-3px); /* Naik dikit */
}

/* Spacing Text */
.ls-1 {
  letter-spacing: 1px;
}

/* Footer tagline badge (logo + tagline) */
.footer-tagline-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #ffffff, #f3f4ff);
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(148, 163, 184, 0.4);
  position: relative;
  overflow: hidden;
  animation: footerTaglineFloat 4s ease-in-out infinite;
}

.footer-tagline-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.1)
  );
  transform: translateX(-120%);
  animation: footerTaglineShine 5s ease-in-out infinite;
}

.footer-tagline-logo {
  height: 55px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.35));
}

.footer-tagline-text {
  position: relative;
  z-index: 1;
  color: #0f172a;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes footerTaglineFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes footerTaglineShine {
  0% {
    transform: translateX(-120%);
  }
  60% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

/* --- CONTACT POPUP HOVER EFFECT --- */

.contact-hover-wrapper {
  padding-bottom: 0; /* Area aman */
}

/* Kotak Popup-nya */
.contact-popup-menu {
  position: absolute;
  top: 120%; /* Muncul sedikit di bawah tombol */
  right: 0;
  width: 220px;
  background: rgba(255, 255, 255, 0.6); /* Transparan (Glass Effect) */
  backdrop-filter: blur(15px); /* Efek Blur Kaca yang Mewah */
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);

  /* Animasi Awal (Tersembunyi) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
}

/* Saat Wrapper di-Hover, Popup Muncul */
.contact-hover-wrapper:hover .contact-popup-menu {
  opacity: 1;
  visibility: visible;
  top: 110%; /* Naik sedikit ke posisi ideal */
  transform: translateY(0);
}

/* Efek Tombol di dalam Popup */
.hover-scale {
  transition: transform 0.2s;
  background: rgba(255, 255, 255, 0.8) !important; /* Putih agak transparan */
}

.hover-scale:hover {
  transform: scale(1.05); /* Membesar dikit pas dipilih */
  background: #fff !important;
}

/* Panah kecil di background popup (biar seolah nyambung) */
.contact-popup-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 30px;
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  transform: rotate(45deg);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- ORGANIZATIONAL CHART STYLES ---
   NOTE: These styles have been moved to about.css for better organization.
   See: public/assets/css/about.css
*/

/* --- PARTNER LOGO SECTION --- */
.partner-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  transition: all 0.3s ease;
}

.partner-logo {
  max-height: 60px;
  width: auto;
  filter: grayscale(0%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

/* Efek Hover */
.partner-box:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* FIX: Dropdown Item Active State */
.dropdown-item.active,
.dropdown-item:active {
  color: var(--pab-blue-primary) !important; /* Pakai warna biru utama */
  background-color: transparent !important; /* Hapus background biru bawaan */
  font-weight: 600; /* Opsional: Tebalkan biar beda */
}

/* Pastikan saat di-hover juga aman (biasanya abu-abu muda) */
.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--pab-blue-primary);
  background-color: var(--pab-gray);
}
