/* ==========================================================================
   ZIGZAG SECTIONS - ALL SECTIONS BLUE-WHITE PATTERN
   Full width sections with alternating backgrounds
   ========================================================================== */

/* ==========================================================================
   1. BASE ZIGZAG STRUCTURE
   ========================================================================== */

.zigzag-section {
  width: 100%;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

/* Background Colors */
.zigzag-section.bg-blue {
  background: linear-gradient(135deg, #0554c6 0%, #0442a0 100%);
  color: white;
  position: relative;
}

.zigzag-section.bg-white {
  background: #ffffff;
  color: #1f2937;
  position: relative;
}

/* Subtle Divider Between Sections */
.zigzag-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.05) 50%,
      transparent 100%);
  z-index: 1;
}

.zigzag-section.bg-blue::before {
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 100%);
}

/* Inner Container */
.zigzag-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   2. SECTION HEADERS
   ========================================================================== */

.zigzag-section .section-title,
.zigzag-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.zigzag-section .section-title h2,
.zigzag-section .section-header h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.zigzag-section .section-title p,
.zigzag-section .section-header p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
}

.zigzag-section.bg-blue .section-title h2 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zigzag-section.bg-blue .section-title p {
  color: rgba(255, 255, 255, 0.95);
}

.zigzag-section.bg-white .section-title h2 {
  color: #1f2937;
}

.zigzag-section.bg-white .section-title p {
  color: #6b7280;
}

/* ==========================================================================
   3. SERVICES SECTION - MODERN OVERLAY DESIGN
   ========================================================================== */
/* Container Utama */
.services-modern {
  padding: 60px 0 80px 0 !important;
  position: relative;
}

/* Gradasi di bagian bawah section */
.services-modern::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(5, 84, 198, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Grid System: Mobile 2 Kolom, Desktop 3 Kolom */
.services-grid-modern {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Agar item ke-5 di baris terakhir otomatis di tengah */
  gap: 15px;
  /* Gap lebih rapat untuk mobile */
  margin-top: 40px;
}

/* Base Card Styling */
.service-card-modern {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 200px;
  /* Tinggi ideal untuk mobile 2 kolom */
  flex: 0 1 calc(50% - 15px);
  /* Paksa 2 kolom di mobile */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: block;
}

/* Media Query untuk Desktop */
@media (min-width: 1024px) {
  .services-grid-modern {
    gap: 20px;
  }

  .service-card-modern {
    flex: 0 1 calc(33.333% - 20px);
    /* 3 kolom di desktop */
    height: 280px;
    /* Tinggi kembali ke 280px */
  }
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.service-image-overlay {
  width: 100%;
  height: 100%;
}

.service-image-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mencegah gambar penyet */
  transition: transform 0.5s ease;
}

.service-card-modern:hover img {
  transform: scale(1.1);
}

/* Gradasi Default (Hitam ke Transparan) */
.service-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      transparent 100%);
  transition: all 0.3s ease;
}

/* Gradasi Saat Hover (Berubah jadi Biru Dino) */
.service-card-modern:hover .service-gradient-overlay {
  background: linear-gradient(to top,
      rgba(5, 84, 198, 0.9) 0%,
      rgba(4, 66, 160, 0.6) 50%,
      transparent 100%);
}

.service-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  /* Lebih kecil di mobile */
  color: white;
  z-index: 2;
}

.service-text-overlay h3 {
  font-size: 16px;
  /* Ukuran pas untuk mobile 2 kolom */
  font-weight: 700;
  margin: 0;
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .service-text-overlay {
    padding: 25px;
  }

  .service-text-overlay h3 {
    font-size: 22px;
  }
}

.service-card-modern:hover h3 {
  transform: translateX(5px);
}

/* ==========================================================================
   4. WHY US & STEPS SECTION
   ========================================================================== */

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.why-item {
  text-align: center;
  padding: 30px;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.bg-blue .why-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.why-item i {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
  color: #ffd54f;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

/* ==========================================================================
   5. FLEET SECTION (ARMADA) - HERO LAYOUT WITH DYNAMIC BACKGROUND
   ========================================================================== */

.fleet-hero-section {
  padding: 60px 0 !important;
  position: relative;
  overflow: hidden;
}

.fleet-dynamic-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

.fleet-dynamic-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(5, 84, 198, 0.75) 0%,
      rgba(4, 66, 160, 0.7) 100%);
}

.fleet-dynamic-bg.active {
  opacity: 1;
}

/* Hero Fleet Card */
.fleet-hero-card {
  position: relative;
  width: 100%;
  height: 50%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
}

.fleet-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fleet-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 50px;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.5) 70%,
      transparent 100%);
  color: white;
}

.fleet-hero-content h3 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 18px;
}

.fleet-hero-specs {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.fleet-hero-specs span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.fleet-hero-specs i {
  color: #ffd54f;
}

/* Grid Compact Desktop */
.fleet-grid-compact {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.fleet-card-compact {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  flex: 0 1 280px;
}

.fleet-card-compact:hover,
.fleet-card-compact.active {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.fleet-card-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.fleet-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.fleet-card-compact:hover img {
  transform: scale(1.1);
}

.fleet-card-content {
  padding: 18px;
}

.fleet-card-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

/* ==========================================================================
   6. PROMO SECTION - MODERN CARD DESIGN
   ========================================================================== */

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}

/* Promo Card Base */
.promo-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Promo Image Container */
.promo-img {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.promo-card:hover .promo-img {
  transform: scale(1.05);
}

/* Promo Badge */
.promo-img .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ff3d00 0%, #ff6f00 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 61, 0, 0.4);
  animation: pulse-badge 2s infinite;
  z-index: 2;
}

@keyframes pulse-badge {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Promo Content */
.promo-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-content h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s ease;
}

.promo-content p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* Link Promo Button */
.link-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 8px;
  position: relative;
}

.link-promo::after {
  content: "→";
  font-size: 18px;
  transition: transform 0.3s ease;
}

.link-promo:hover::after {
  transform: translateX(5px);
}

/* Blue Background Styling */
.zigzag-section.bg-blue .promo-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.zigzag-section.bg-blue .promo-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: #ffd54f;
}

.zigzag-section.bg-blue .promo-content h3 {
  color: white;
}

.zigzag-section.bg-blue .promo-card:hover .promo-content h3 {
  color: #ffd54f;
}

.zigzag-section.bg-blue .promo-content p {
  color: rgba(255, 255, 255, 0.9);
}

.zigzag-section.bg-blue .link-promo {
  color: #ffd54f;
}

/* White Background Styling */
.zigzag-section.bg-white .promo-card {
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.zigzag-section.bg-white .promo-card:hover {
  border-color: #0554c6;
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(5, 84, 198, 0.15);
}

.zigzag-section.bg-white .promo-content h3 {
  color: #1f2937;
}

.zigzag-section.bg-white .promo-card:hover .promo-content h3 {
  color: #0554c6;
}

.zigzag-section.bg-white .promo-content p {
  color: #6b7280;
}

.zigzag-section.bg-white .link-promo {
  color: #0554c6;
}

/* ==========================================================================
   7. FAQ SECTION
   ========================================================================== */

.faq-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 20px;
  transition: all 0.3s ease;
}

.zigzag-section.bg-white .faq-item {
  background: white;
  border-color: #e5e7eb;
  color: #1f2937;
}

/* FAQ Toggle Mechanism */
.faq-toggle {
  display: none;
}

.faq-header {
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
}

.faq-header i {
  transition: transform 0.3s ease;
  font-size: 14px;
  opacity: 0.7;
}

.faq-body {
  display: none;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.95;
}

.zigzag-section.bg-white .faq-body {
  border-top-color: #e5e7eb;
  color: #6b7280;
}

.faq-toggle:checked~.faq-body {
  display: block;
}

.faq-toggle:checked~.faq-header i {
  transform: rotate(180deg);
}

/* ==========================================================================
   FIXED RESPONSIVE - MOBILE SCROLL & ADJUSTMENTS
   ========================================================================== */

@media (max-width: 992px) {
  .services-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .zigzag-section {
    padding: 60px 0;
  }

  .zigzag-inner {
    overflow: visible !important;
  }

  /* Armada Horizontal Scroll Fix */
  .fleet-grid-compact {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 15px;
    margin-left: -5%;
    margin-right: -5%;
    padding: 0 5% 20px 5%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .fleet-grid-compact::-webkit-scrollbar {
    display: none;
  }

  .fleet-card-compact {
    flex: 0 0 280px;
    scroll-snap-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .fleet-hero-card {
    height: 300px;
    border-radius: 16px;
  }

  .fleet-hero-content {
    padding: 25px 20px;
  }

  .fleet-hero-content h3 {
    font-size: 28px;
  }

  .services-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .service-card-modern {
    height: 220px;
  }
}

@media (max-width: 576px) {
  .zigzag-inner {
    padding: 0 20px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .fleet-grid-compact {
    justify-content: flex-start;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 12px;
  }

  .fleet-card-compact {
    flex: 0 0 260px;
  }

  .fleet-hero-card {
    height: 280px;
  }

  .fleet-hero-specs {
    flex-direction: column;
    gap: 8px;
  }

  .promo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .promo-img {
    height: 200px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}