/* ===== GLOBAL ===== */
:root {
  --red: #d32f2f;
  --blue: #0d6efd;
  --light-bg: #f8f9fa;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: var(--light-bg);
}

h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

/* ===== NAVBAR ===== */
.navbar {
  padding: 0.8rem 1.5rem;
}

.navbar-brand,
.navbar-brand span {
  font-size: 1.1rem;
  color: red !important;
}

.navbar-nav .nav-link {
  margin-left: 12px;
  font-weight: 500;
  color: blue !important;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.custom-navbar.scrolled.versi2 .nav-link.active {
  color: var(--red) !important;
  font-weight: 600;
}

/* Navbar scroll effect */
.custom-navbar {
  transition: all 0.4s ease;
  padding: 15px 0;
}

.custom-navbar.scrolled {
  background: var(--blue) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.custom-navbar.scrolled .nav-link,
.custom-navbar.scrolled .navbar-brand,
.custom-navbar.scrolled .navbar-brand span {
  color: #fff !important;
}

/* Active underline versi 1 */
.custom-navbar.scrolled.versi1 .nav-link.active {
  text-decoration: underline;
}

/* ===== SERVICE CARD ===== */
.service-card {
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ===== FLOW BANNER ===== */
.flow-banner {
  background: url('../img/bg-flow.JPG') no-repeat center center;
  background-size: cover;
  padding: 150px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flow-banner h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

/* ===== SCROLL OFFSET ===== */
html {
  scroll-padding-top: 80px; /* sesuaikan dengan tinggi navbar */
}

/* OUR PRODUCTS background */
.products-bg {
  position: relative;
  background: url('assets/img/bg-products.JPEG') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
}

.products-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); /* overlay gelap */
}

.products-bg .container {
  position: relative;
  z-index: 2;
}

/* INDUSTRIES background */
.industries-bg {
  position: relative;
  background: url('assets/img/bg-industries.JPEG') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
}

.industries-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); /* overlay gelap */
}

.industries-bg .container {
  position: relative;
  z-index: 2;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet landscape & bawah (≤992px) */
@media (max-width: 992px) {
  h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .flow-banner {
    padding: 120px 30px;
  }

  .flow-banner h2 {
    font-size: 2rem;
  }
}

/* Tablet portrait & bawah (≤768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 0.6rem 1rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-nav .nav-link {
    margin-left: 0;
    padding: 0.5rem 0;
    display: block;
    text-align: center;
  }

  .flow-banner {
    padding: 100px 20px;
  }

  .flow-banner h2 {
    font-size: 1.8rem;
  }

  .products-bg,
  .industries-bg {
    background-attachment: scroll; /* fix bug di mobile */
  }
}

/* Smartphone kecil (≤576px) */
@media (max-width: 576px) {
  h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .flow-banner {
    padding: 80px 15px;
  }

  .flow-banner h2 {
    font-size: 1.4rem;
  }

  .service-card {
    margin-bottom: 1.5rem; /* biar ada jarak antar kartu */
  }
}
