/* --- UTILITY & SETUP --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.bg-light {
  background-color: #f8fafc;
}

.text-center {
  text-align: center;
}

.divider {
  height: 4px;
  width: 60px;
  background-color: #2B5490;
  margin: 15px 0 25px 0;
}

/* --- 1. HERO SECTION --- */
.detail-hero {
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.top-badge {
  background: #11CAA0;
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
  display: inline-block;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 18px;
  opacity: 0.9;
}

/* --- 2. OVERVIEW --- */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge-subtitle {
  color: #2B5490;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.overview-text h2 {
  font-size: 36px;
  color: #1e293b;
}

.overview-text p {
  color: #64748b;
  line-height: 1.8;
  font-size: 16px;
}

.feature-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 25px;
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.feature-box i {
  color: #2B5490;
  font-size: 18px;
}

.feature-box span {
  font-weight: 600;
  font-size: 14px;
  color: #334155;
}

.overview-image-wrapper {
  position: relative;
}

.main-img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.floating-experience {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #2B5490;
  color: white;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-number {
  font-size: 35px;
  font-weight: 800;
}

.exp-text {
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

/* --- 3. BLUEPRINT --- */
.sketch-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 40px; 
  margin-top: 40px; 
}

.sketch-item { 
  text-align: center; 
}

.sketch-img-wrapper {
  background: white;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.sketch-item:hover .sketch-img-wrapper {
  transform: translateY(-8px);
  border-color: #2B5490;
}

.sketch-img { 
  width: 100%; 
  border-radius: 6px; 
  display: block;
}

.sketch-title { 
  color: #1e293b; 
  font-size: 18px; 
  font-weight: 700; 
  margin: 0;
  letter-spacing: 0.5px;
}

/* --- 4. GALLERY CARDS WITH DESCRIPTION --- */
.popup-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(43,84,144,0.15);
}

.gallery-card-top {
  position: relative;
  height: 230px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 84, 144, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: 0.3s;
}

.project-card:hover .gallery-card-top img {
  transform: scale(1.1);
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay i {
  font-size: 30px;
  margin-bottom: 10px;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 18px;
  color: #2B5490;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 15px;
}

.project-tag {
  font-size: 12px;
  font-weight: 700;
  color: #11CAA0;
  background: #e8fbf7;
  padding: 4px 10px;
  border-radius: 4px;
}

/* --- 5. LIGHTBOX MODAL --- */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  text-align: center;
}

.modal-content img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 50px;
  cursor: pointer;
}

.modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

.modal-btn:hover {
  background: #2B5490;
}

.prev-modal {
  left: -60px;
}

.next-modal {
  right: -60px;
}

.modal-counter {
  color: white;
  margin-top: 15px;
  font-size: 16px;
  letter-spacing: 2px;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- PENYESUAIAN JARAK HEADER --- */
.section-header {
  margin-bottom: 50px; /* Memberikan jarak visual antara teks dan foto */
}

.section-header p {
  margin-top: 10px;
  color: #64748b;
}

/* Mencegah efek card overlay keluar dari batas kontainer */
.gallery-card-top {
  position: relative;
  height: 230px;
  overflow: hidden; 
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .overview-grid,
  .sketch-grid {
    grid-template-columns: 1fr;
  }
  
  .prev-modal {
    left: 10px;
  }
  
  .next-modal {
    right: 10px;
  }
}

/* --- 6. GALLERY FILTER BUTTONS --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  background-color: transparent;
  border: 2px solid #2B5490;
  color: #2B5490;
  border-radius: 30px; /* Penyesuaian bentuk tombol menjadi lonjong (pill shape) */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #2B5490;
  color: white;
  box-shadow: 0 5px 15px rgba(43, 84, 144, 0.2);
}

/* Efek animasi kemunculan kartu setelah difilter */
.project-card {
  animation: zoomIn 0.4s ease;
}


/*=========================
   Tank & Vessel
==========================*/

/* --- 7. TANK SLIDER --- */
.tank-slider-section {
  margin-top: 20px;
  margin-bottom: 60px;
}

.slider-wrapper {
  position: relative;
  max-width: 850px; /* Pembatasan lebar maksimum untuk menjaga tata letak tetap di tengah */
  margin: 0 auto;
  overflow: hidden;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide-item {
  min-width: 100%; /* Penyesuaian dimensi slide agar memenuhi ukuran kontainer */
  box-sizing: border-box;
}

.slide-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.slide-content {
  padding: 35px 40px;
  text-align: center;
}

.slide-content h3 {
  color: #2B5490;
  font-size: 26px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.slide-content h3 i {
  color: #11CAA0;
}

.slide-content p {
  color: #64748b;
  line-height: 1.8;
  font-size: 16px;
  margin: 0;
}

/* Navigasi Panah Kiri Kanan */
.slide-btn {
  position: absolute;
  top: 225px; /* Penempatan posisi tombol tepat di tengah vertikal gambar */
  transform: translateY(-50%);
  background: rgba(43, 84, 144, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-btn:hover {
  background: #11CAA0;
  transform: translateY(-50%) scale(1.1);
}

.prev-slide {
  left: 20px;
}

.next-slide {
  right: 20px;
}

/* Titik-titik Navigasi (Dots) */
.slider-dots {
  text-align: center;
  margin-top: 25px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #cbd5e1;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #2B5490;
  width: 30px; /* Indikator dot yang aktif berbentuk lebih panjang (oval) */
  border-radius: 10px;
}

@media (max-width: 768px) {
  .slide-item img {
    height: 300px;
  }
  
  .slide-content {
    padding: 20px;
  }
  
  .slide-btn {
    width: 40px;
    height: 40px;
    top: 150px;
  }
}

/* ==========================================
   MODAL GALLERY (PENGATURAN FOTO & VIDEO)
========================================== */
.modal-content {
  text-align: center;
}

#modalImage, 
#modalVideo {
  margin: 0 auto;
  display: block;
  max-height: 80vh;
  max-width: 100%;
  border-radius: 8px;
}