/* ========== Global Style ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  /* cegah scroll kanan */
  font-family: 'Poppins', sans-serif;
}


section {
  height: 80vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== Container ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Header & Navbar ========== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.771), rgba(0, 0, 0, 0));
  position: fixed;  /* Ganti sticky jadi fixed */
  top: 0;
  z-index: 1000;  /* Supaya selalu di atas */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.sticky {
background: #980e0e;
/* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.588); */
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.15); */
  border-bottom: 1px solid rgb(55, 55, 55);
}
header.sticky nav a{
color: #ffffff; 
}

header.sticky .icon-btn{
color: #ffffff;
}

header.sticky .search-box button {
  color: #ffffff;  /* Ganti warna teks & icon biar kontras di bg putih */;
}

header.sticky .search-box input {
  border-bottom: 1px solid #ffffff;
  color: #ffffff;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}


header img {
  height: 70px;
}

.no-hac{
  display: flex;
  justify-content: end;
  align-items: center;
  margin-bottom: 20px;
}

nav a {
  margin-left: 30px;
  font-weight: 500;
  color: #ffffff;
  transition: 0.3s;
}

nav a:hover {
  color: rgb(196, 193, 193);
  /* ganti dengan warna utama Hacom kalau ada */
}

.item {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-top: 10px;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 8px;
  padding-bottom: 5px;
  /* position: relative; */
}

.search-box button {
  background: none;
  border: none;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
  /* margin-top: 5px; */
}

.search-box input {
  border: none;
  border-bottom: 1px solid transparent;
  padding: 5px 10px;
  font-size: 14px;
  outline: none;
  width: 0;
  opacity: 0;
  background: transparent;
  color: #ffffff;
  transition: width 0.3s ease, opacity 0.3s ease, border-bottom 0.3s ease;
}

.search-box.active input {
  width: 150px;
  /* Muncul ke kiri */
  opacity: 1;
  border-bottom: 1px solid #ffffff;
  margin-right: 10px;
  /* Jarak antara input dan icon */
}

.search-box input::placeholder {
  color: #d8d8d8;
  font-style: italic;
}


/* Icon Buttons */
.icon-btn {
  font-size: 20px;
  color: #ffffff;
  transition: color 0.3s ease;

}

.icon-btn:hover {
  color: rgb(196, 193, 193);
  /* Warna merah Hacom */
}


/* ========== Hero Section ========== */


.hero {
  position: relative;
  height: 500px;
  width: 100%;
  overflow: hidden;

}

.image-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
    z-index: 1;
    color: #fff;
        margin-left: 100px;
        margin-top: 250px;
        margin-bottom: 40px;
      }
      
      .hero-content h1 {
        font-size: 40px;
        line-height: 40px;
      }
      
      .hero-content p {
        font-size: 18px;
        margin-top: 20px;
        max-width: 700px;
        height: auto;
      }

/* Hamburger Button Style */
.hamburger {
  display: none;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
  z-index: 200;
}
.nv i {
  display: none;
}


/* tablet Styles */
@media (max-width: 1080px) {

  /* Tampilkan Hamburger di Mobile */
  .hamburger {
    display: block;
    margin-right: 20px;
  }

  header {
    padding: 15px 1px;
  }
  header img {
      height: 50px;
    }


  .logo {
    order: 1;
    /* Logo di kiri */
  }

  .header-icons {
    order: 2;
    /* Hamburger + Cart + Profile di kanan */
  }

  /* Sembunyikan Menu di Mobile */
    nav {
      display: none;
      flex-direction: column;
      align-items: start;
      width: 100%;
      height: 100vh;
      background: #000000d9;
      padding: 80px 30px;
      gap: 40px;
      position: absolute;
      top: 0; /* di bawah header */
      left: 0;
      z-index: 150;
    }

  /* Tampilkan saat aktif */
  nav.show {
    display: flex;
  }

    nav a {
    margin: 10px 0;
    padding-bottom: 10px;
  }
  .nv{
    border-bottom: 1px solid rgba(255, 255, 255, 0.282);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nv i {
    display: inline;
    margin-right: 8px; /* atau sesuai selera */
    vertical-align: middle; /* biar sejajar teks */
  }

  .item {
    /* flex-direction: column; */
    align-items: flex-start;
    padding: 10px 0;
  }

  .hero-content {
    padding: 0;
  }



  #about {
    height: auto;
  }

  .about {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 10px;
  }

  .about-img img {
    width: 500px;
  }

  .about-img {
    background-color: transparent;
    box-shadow: none;
    padding-top: 0;
    padding-bottom: 0;
  }

  .about-top {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .vision-mission {
    flex-direction: column;
    align-items: center;
  }

  .about-gallery img {
    max-width: 100%;
  }


  .new-product {
    height: auto;
  }
}

/* Animasi Ikon Hamburger jadi Close */
.hamburger.open i::before {
  content: "\f00d";
  /* fa-times (ikon close) */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: rgb(0, 0, 0);
}

.layanan-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f9f9f9;
  height: auto;
}

.layanan-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #b90000;
}

.layanan-subtitle {
  font-size: 16px;
  color: #444;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
  text-align: center;
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Jadi 2 kolom */
  gap: 30px;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .layanan-grid {
    grid-template-columns: 1fr;
  }
}

.layanan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 25px 35px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #333;
}

.layanan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.layanan-card img {
  width: 150px;
  height: 150px;
  margin-bottom: 15px;
}

.layanan-icon {
  font-size: 150px;
  margin-bottom: 15px;
}

.layanan-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #111;
}

.layanan-card p {
  font-size: 14px;
  color: #555;
  text-align: justify;
}

.layanan-cta {
  text-align: center;
  margin-top: 50px;
}

.cta-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: #333;
}


.cta-button {
  display: inline-block;
  background-color: red;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  gap: 10px;
  display: inline-flex;
  align-items: center;
}

.cta-button:hover {
  background-color: rgb(220, 0, 0);
}

.cta-button i {
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(5px);
  /* Ikon geser saat hover */
}


/* FOOTER */
.footer {
  background-color: #ededed;
  color: #333;
  padding: 30px 20px 10px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  gap: 20px;
  justify-content: center;

}

.footer-conten {
  margin-right: 60px;
}
.footer-about {
  flex: 1 1 300px;
  max-width: 350px;
}

.footer-about img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-about p {
  margin-top: 10px;
  line-height: 1.8;
  color: #555;
  font-weight: 400;
}

.social-icons a {
  margin-right: 15px;
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #b90000; /* warna merah Hacom */
}

.footer-product {
  display: flex;
  gap: 80px;
}

.footer-links {
  flex: 1 1 150px;
}

.footer-links h4 {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  color: #111;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #b90000;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  margin-top: 40px;
  border-top: 1px solid #ddd;
  font-size: 13px;
  color: #777;
}

@media (max-width: 950px) {
  .footer-container {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-conten {
    flex: 1 1 50%;
    margin-right: 20px;
  }

  .footer-product {
    flex: 1 1 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-links {
    flex: 1 1 45%; /* Jadi 2 kolom per baris */
    min-width: 150px;
  }
}

@media (max-width: 760px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-conten {
    margin-right: 0;
    margin-bottom: 30px;
    width: 100%;
  }

  .footer-product {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    width: 100%;
  }

  .footer-links {
    flex: 1 1 45%; /* Bagi dua di layar sedang */
  }
}

@media (max-width: 480px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-conten {
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
  }

  .footer-product {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-between;
    width: 100%;
  }

  .footer-links {
    flex: 1 1 20%; /* Bagi dua di layar sedang */
  }

  .footer-bottom {
    font-size: 10px;
  }
}

@media(max-width: 765px) {
  .hero-content {
    margin-left: 20px;
  }

  .hero-content h1 {
    font-size: 30px;
    line-height: 40px;
  }

  .hero-content p {
    font-size: 15px;
    margin-top: 5px;
  }

  .about-img img {
    width: 300px;
  }
}
