:root {
  --primary: #1a4b8c;
  --secondary: #6cb2eb;
  --accent: #e63946;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
}

.defense-security {
  padding: 60px 20px;
  font-family: "Arial", sans-serif;
}

.section-header h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: var(--primary);
  margin-bottom: 40px;
}

.health-card img {
  width: 100%;
  height: 300px;
}

.simulator-content img,
.sim-card img {
  width: 100%;
  height: 300px;
}

.simulator-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
}

.sim-card {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  max-width: 380px;
  flex: 1 1 300px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.sim-card:hover {
  transform: translateY(-5px);
}

.sim-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  background: var(--primary);
  color: white;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
}

.white-title {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
}

.sim-card .sub {
  font-size: 14px;
  font-style: italic;
  display: block;
  margin-bottom: 10px;
}

.sim-card p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.red-bg {
  background-color: var(--primary);
  color: white;
}

.red-bg .sim-card {
  background-color: transparent;
  color: white;
  box-shadow: none;
  border: 1px solid #fff;
}

.red-bg .sim-card p,
.red-bg .sim-card .sub {
  color: white;
}

.gray-bg {
  background-color: #f5f5f5;
}

/* Health section */

.health-section {
  padding: 60px 20px;
  font-family: "Arial", sans-serif;
  background-color: #f5f5f5;
}

.section-header h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: var(--primary);
  margin-bottom: 40px;
}

/* .health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
} */

.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom fix */
  gap: 20px;
  padding: 30px;
}

@media (max-width: 900px) {
  .health-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsif */
  }
}

.health-card {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border-top: 5px solid var(--primary);
}

.health-card:hover {
  transform: translateY(-5px);
}

.health-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  background: var(--primary);
  color: white;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
}

.health-card p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.hero-product {
  width: 100%;
  height: 450px;
  background-color: #1a4b8c;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none; /* disables clicks */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #4dabf7;
}
.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  line-height: 1.5;
  color: #e3e3e3;
}

/* Simulator section */

.simulator-section {
  
}

.simulator-row-transport {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 80px;
  background: #f5f5f5;
}

.simulator-card {
  /* background: #d4d4dc; */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
}

.simulator-title {
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  display: inline-block;
  border-radius: 4px;
  font-size: 1.2em;
}

.simulator-content {
  margin-top: 15px;
}

.simulator-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.train-gallery {
  display: flex;
  gap: 10px;
}

.train-gallery img {
  width: 50%;
  border-radius: 6px;
}

.simulator-gallery {
  text-align: center;
  padding: 40px 20px;
  background: #f8f8f8;
}

.simulator-gallery h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primary);
  font-weight: bold;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.simulator-gallery .gallery .item img{
  width: 100%;
  height: 400px;
}

.item {
  display: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

 .item.visible {
    display: block;
  }

.label {
  background: var(--primary);
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 8px 12px;
  font-size: 0.95rem;
}

.item img {
  width: 100%;
  display: block;
}

img{
  transition: all .2s;
}
/* 
img:hover {
  transform: scale(0.92);
  opacity: 0.9;
} */

/* Alur produksi */

.alur-produksi {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 1rem;
    background: white;
    max-width: 1200px;
    margin: auto;
  }

  /* .step {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    width: 220px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  } */

  .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .alur-produksi {
      gap: 1rem;
    }
    .step {
      width: 160px;
      padding: 0.8rem;
    }
    .icon {
      font-size: 1.5rem;
    }
  }


  .process-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.step {
  background: #154a91; /* warna biru */
  color: white;
  padding: 20px;
  border-radius: 16px;
  width: 220px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.step .icon {
  font-size: 28px;
  margin-bottom: 10px;
}

/* Panah antar step */
.step::after {
  content: "➔";
  font-size: 24px;
  color: #154a91;
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
}

/* Hilangkan panah di step terakhir */
.step:last-child::after {
  content: none;
}

  .collaboration-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
  font-family: 'Poppins', sans-serif;
}

.alur-produksis h2, 
.collaboration-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 40px;
}

.collab-grid {
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.collab-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collab-card:hover {
  transform: scale(0.97);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.card-number {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ccc;
}

.collab-card h3 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.collab-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 5px 12px;
  font-size: 0.85rem;
  border-radius: 20px;
  margin: 3px 3px 0 0;
}

.show-more {
  display: inline-block;
  padding: 10px 20px;
  margin: 20px auto;
  background: linear-gradient(135deg, #4facfe 0%, #008cfe 100%);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.show-more:hover {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.show-more:active {
  transform: translateY(1px) scale(0.98);
}

section{
  padding-top: 50px;
}