/*
================================================================================
AEROVIA - Modern B2B UI/UX (Apple-Style Redesign)
================================================================================
*/

:root {
  /* Apple-Style Color Palette */
  --nav-bg: rgba(255, 255, 255, 0.72);
  --bg-main: #fbfbfd;
  --bg-secondary: #f5f5f7;

  /* Text Colors */
  --text-dark: #1d1d1f;
  --text-muted: #86868b;
  --text-light: #f5f5f7;

  /* Accent Colors (Tetap mempertahankan identitas Industrial tapi lebih elegan) */
  --accent-primary: #0066cc; /* Biru khas Apple */
  --accent-industrial: #e8891d; /* Warna asli AEROVIA sebagai aksen kecil */

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* UI/UX Variables */
  --radius-sm: 8px;
  --radius-md: 18px; /* Lebih membulat ala iOS/macOS */
  --radius-lg: 24px;
  --radius-pill: 980px;

  /* Super Soft Shadows */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);

  --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

/* ================== TYPOGRAPHY ================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.03em; /* Rahasia tipografi Apple */
}

/* ================== NAVBAR (GLASSMORPHISM) ================== */
/* Glassmorphism Navbar */
.navbar-aero {
  background-color: var(--nav-bg) !important; /* var(--nav-bg) berisi rgba(255,255,255, 0.72) */
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  transition: var(--transition);
}

.navbar-aero .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark) !important;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.navbar-aero .nav-link:hover,
.navbar-aero .nav-link.active {
  opacity: 1;
}

/* ================== BUTTONS ================== */
.btn-primary,
.btn-aero-primary {
  background-color: var(--text-dark);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border: none;
  transition: var(--transition);
}

.btn-primary:hover,
.btn-aero-primary:hover {
  background-color: #333336;
  transform: scale(1.02);
}

.btn-warning {
  background-color: var(--accent-industrial);
  border: none;
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* ================== BLOG & ARTICLE CARDS ================== */

html,
body {
  overflow-x: hidden;
}
/* ====================================================
   FIX BUGS: KARTU ARTIKEL & EFEK ZOOM GAMBAR
   ==================================================== */

.article-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* FIX BARU: Memaksa layer GPU tanpa membuat gambar menghilang */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  isolation: isolate; /* Mengunci tumpukan layer agar elemen di dalamnya tidak bocor */
}

.article-card:hover {
  /* Pastikan translate3d tetap disematkan saat hover */
  transform: translateY(-8px) scale(1.01) translate3d(0, 0, 0);
  box-shadow: var(--shadow-hover);
}

/* Kunci 1: Bungkus gambar harus memiliki overflow: hidden sendiri */
.article-thumb {
  position: relative;
  overflow: hidden;
  /* Pastikan border atas gambar melengkung mengikuti kartu */
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 1;
}

/* Kunci 2: Gambar hanya difokuskan pada animasi zoom saja */
.hover-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  object-fit: cover;
  height: 220px;
  width: 100%;
  display: block; /* Mencegah munculnya ruang kosong di bawah gambar */
}

.article-card:hover .hover-zoom {
  transform: scale(1.08); /* Gambar membesar dengan normal */
}

.article-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.badge-cat {
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
  align-self: flex-start;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.article-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.article-title a:hover {
  color: var(--accent-primary);
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  display: flex;
  gap: 15px;
}

/* ================== ARTICLE DETAIL TYPOGRAPHY ================== */
/* Khusus untuk halaman detail.php agar nyaman dibaca seperti medium/apple news */
.article-body {
  font-size: 17px;
  line-height: 1.7;
  color: #333336;
}

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 10px;
}

/* ================== SIDEBAR WIDGETS ================== */
.side-widget {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.side-widget h6 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-dark);
  font-weight: 700;
}

/* ================== TAMBAHAN: PILL FILTER KATEGORI (artikel/index.php) ================== */
.pill-filter {
  display: inline-block;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.pill-filter:hover,
.pill-filter.active {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: #fff;
}

/* ================== UTILITIES & SPACING ================== */
.section {
  padding: 80px 0;
}

.bg-tech {
  background-color: var(--bg-secondary);
}

/* Animasi Fade Up yang Halus */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-up {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ================== HERO SECTION (APPLE PRO STYLE) ================== */
.hero-image-bg {
  position: relative;
  /* Ganti URL ini dengan gambar pabrik/WWTP beresolusi tinggi milik Anda */
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Efek parallax ringan */
  padding: 120px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Overlay Gelap dengan Efek Kaca (Glassmorphism) */
.hero-image-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Gradasi gelap elegan ala Apple */
  background: linear-gradient(135deg, rgba(13, 20, 31, 0.85) 0%, rgba(28, 43, 65, 0.75) 100%);
  backdrop-filter: blur(4px); /* Membuat background sedikit blur agar teks fokus */
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

.hero-image-bg .container {
  position: relative;
  z-index: 2; /* Memastikan konten berada di atas overlay */
}

/* ================== COLOR & BUTTON UPGRADES ================== */
/* Tombol Utama (Warna Amber/Oranye AEROVIA yang Elegan) */
.btn-apple-cta {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
  transition: var(--transition);
}

.btn-apple-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.4);
}

/* Teks Gradasi (Untuk memberikan aksen modern pada sub-judul) */
.text-gradient {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Tambahkan sedikit warna pada background halaman agar tidak murni putih/abu */
.bg-tech {
  background: linear-gradient(to bottom, #d6d6d7, #f1f5f9);
}

/* ================== APPLE 3D CARD HOVER EFFECT ================== */
.apple-card-3d {
  background-color: #efefef;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); /* Bayangan awal sangat tipis */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Kurva animasi khas iOS */
  cursor: pointer;
}

.apple-card-3d:hover {
  background-color: #ffffff; /* Berubah menjadi putih bersih saat di-hover */
  transform: translateY(-8px) scale(1.01); /* Efek mengambang 3D */
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08); /* Bayangan dalam & menyebar */
}

/* Interaksi mikro pada Ikon di dalam kartu */
.apple-card-3d i {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.apple-card-3d:hover i {
  transform: scale(1.15) translateY(-2px); /* Ikon ikut membesar dan naik sedikit */
  color: #38bdf8 !important; /* Warna ikon berubah menjadi biru cerah */
}

/* ================== PRODUCT ROW INTERACTIVE ================== */
.product-row {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 20px;
  margin-bottom: 4px;
  background-color: transparent;
  position: relative;
}

.product-row:hover {
  background-color: #ffffff;
  transform: scale(1.02) translateX(5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border-bottom-color: transparent;
  z-index: 10;
}

/* Modifikasi agar nama model berubah warna saat di-hover */
.product-row .model-name {
  transition: color 0.3s ease;
}
.product-row:hover .model-name {
  color: #0066cc; /* Warna biru premium */
}

/* =========================================================
   TAMBAHAN: Merapikan Sidebar Artikel (Apple-style)
   Class ini dipakai di layout/sidebar_artikel.php tapi belum
   ada definisinya di style.css versi Apple-Style Redesign.
   ========================================================= */

/* ---- Form di dalam widget (Cari Artikel & Minta Penawaran) ---- */
.form-aero label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
}
.form-aero label:first-child {
  margin-top: 0;
}
.form-aero .form-control,
.side-widget .input-group .form-control {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 14px;
  font-size: 14px;
  background: #fff;
  transition: var(--transition);
  width: 100%;
}
.form-aero .form-control:focus,
.side-widget .input-group .form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
  outline: none;
}
.side-widget .input-group {
  display: flex;
}
.side-widget .input-group .form-control {
  border-radius: 12px 0 0 12px;
  border-right: none;
}

/* ---- Tombol WhatsApp ---- */
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff !important;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: 16px;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}
.btn-wa:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Widget CTA gelap (Butuh Bantuan Teknis) ---- */
.widget-cta {
  background: linear-gradient(135deg, var(--text-dark) 0%, #33343a 100%);
  color: #fff;
}
.widget-cta h6 {
  color: #fff;
}
.widget-cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  margin-bottom: 0;
}

/* ---- Tombol navy kecil (search button di sidebar) ---- */
.btn-aero-navy {
  background: var(--text-dark);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 0 12px 12px 0;
  transition: var(--transition);
  cursor: pointer;
}
.btn-aero-navy:hover {
  background: #000;
}

/* ---- Artikel Terkait: thumbnail + judul rapi ---- */
.related-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.related-item:last-child {
  margin-bottom: 0;
}
.related-thumb {
  width: 72px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.related-item:hover .related-thumb {
  transform: scale(1.05);
}
.related-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  text-decoration: none;
  display: block;
}
.related-title:hover {
  color: var(--accent-primary);
}
.related-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---- Pastikan gambar featured di dalam konten artikel tidak "meledak" ---- */
.article-body img,
.article-body .featured-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ======================================   HOME PUBLIK   ========================================= */
/*==============================
 Engineering Section
===============================*/

.engineering-section {
  background: radial-gradient(circle at top, #edf4ff 0%, #f8fbff 45%, #ffffff 100%);

  position: relative;

  overflow: hidden;
}

.engineering-section::before {
  content: '';

  position: absolute;

  width: 500px;

  height: 500px;

  background: radial-gradient(circle, #cfe1ff 0%, transparent 70%);

  top: -220px;

  right: -180px;
}

.engineering-wrapper {
  background: #fff;

  border-radius: 35px;

  padding: 70px 50px;

  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);

  position: relative;

  z-index: 2;
}

.engineering-badge {
  display: inline-block;

  background: #edf4ff;

  color: #1d4ed8;

  padding: 10px 22px;

  border-radius: 50px;

  font-size: 13px;

  font-weight: 600;

  letter-spacing: 1px;

  margin-bottom: 20px;
}

.engineering-title {
  font-size: 58px;

  font-weight: 800;

  color: #111827;

  letter-spacing: -2px;
}

.engineering-line {
  width: 90px;

  height: 5px;

  margin: 22px auto;

  border-radius: 50px;

  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.engineering-subtitle {
  max-width: 720px;

  margin: auto;

  font-size: 18px;

  color: #6b7280;

  line-height: 1.9;
}

/*==============================
 CARD
===============================*/

.engineering-card {
  position: relative;

  background: rgba(255, 255, 255, 0.85);

  backdrop-filter: blur(15px);

  border-radius: 28px;

  padding: 45px 35px;

  border: 1px solid rgba(228, 232, 240, 0.8);

  transition: 0.4s;

  overflow: hidden;

  height: 100%;

  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.engineering-card:hover {
  transform: translateY(-12px);

  border-color: #e88c08;

  box-shadow: 0 30px 70px rgba(0, 65, 180, 0.18);
}

.card-number {
  position: absolute;

  top: 15px;

  right: 25px;

  font-size: 72px;

  font-weight: 800;

  color: #eef2ff;

  user-select: none;
}

.icon-box {
  width: 72px;

  height: 72px;

  display: flex;

  justify-content: center;

  align-items: center;

  border-radius: 22px;

  margin-bottom: 30px;

  background: linear-gradient(135deg, #f59e0b, #f97316);

  color: white;

  font-size: 32px;

  box-shadow: 0 18px 30px rgba(29, 78, 216, 0.35);
}

.engineering-card h4 {
  font-weight: 700;

  color: #111827;

  margin-bottom: 18px;
}

.engineering-card p {
  color: #6b7280;

  line-height: 1.9;

  margin: 0;

  font-size: 15px;
}

/*==============================
 RESPONSIVE
===============================*/

@media (max-width: 992px) {
  .engineering-wrapper {
    padding: 45px 30px;
  }

  .engineering-title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .engineering-title {
    font-size: 34px;
  }

  .engineering-subtitle {
    font-size: 16px;
  }

  .engineering-card {
    padding: 35px 25px;
  }
}
.application-section {
  background: #f8fafc;
}

.application-badge {
  display: inline-block;

  background: #e9f2ff;

  color: #1d4ed8;

  padding: 10px 20px;

  border-radius: 40px;

  font-size: 13px;

  font-weight: 600;

  letter-spacing: 1px;

  margin-bottom: 18px;
}

.application-title {
  font-size: 48px;

  font-weight: 800;

  color: #111827;
}

.application-subtitle {
  max-width: 760px;

  margin: auto;

  color: #6b7280;

  font-size: 18px;

  line-height: 1.8;

  margin-top: 20px;
}

.application-card {
  background: #fff;

  border-radius: 22px;

  padding: 40px 30px;

  height: 100%;

  text-align: center;

  transition: 0.35s;

  border: 1px solid #edf2f7;

  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.application-card:hover {
  transform: translateY(-10px);

  border-color: #e88c08;

  box-shadow: 0 20px 50px rgba(29, 78, 216, 0.18);
}

.app-icon {
  width: 80px;
  height: 80px;
  margin: auto;
  border-radius: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  font-size: 34px;
  margin-bottom: 25px;
}

.application-card h5 {
  font-weight: 700;

  margin-bottom: 15px;
}

.application-card p {
  color: #6b7280;

  line-height: 1.8;

  margin-bottom: 0;
}

@media (max-width: 768px) {
  .application-title {
    font-size: 34px;
  }

  .application-subtitle {
    font-size: 16px;
  }
}
/* ======================================   HOME PUBLIK   ========================================= */
