/* ========== 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;
}

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;
}

/* Sticky Active Class */
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;
}

/* Tetap pakai style existing-mu di bagian lainnya */


.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: 5px;
  padding: 10px 0;
  margin-top: 10px;
} */

/* Search Box */


.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: 700px;
  width: 100%;
  overflow: hidden;
  
}

.hero video {
  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: 10vh;
  margin-top: 500px;
  margin-bottom: 40px;
}

.hero-content h1 {
  font-size: 40px;
  line-height: 40px;
}

.hero-content p{
  font-size: 15px;
  margin-top: 5px;
}

.hero-content button {
  padding: 15px 20px;
  border-radius: 25px;
  margin-top: 10px;
  background-color: rgba(183, 8, 8, 0);
  color: white;
  border: 1px solid rgb(255, 255, 255);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease, gap 0.3s ease;  /* Ini bikin smooth */
}

.hero-content button:hover {
  background-color: rgb(226, 226, 226);
  border: 1px solid rgb(226, 226, 226);
  color: black;
  gap: 20px;  /* Jarak antar icon & teks nambah smooth */
}

/* 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: 10px 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: 300px ;
  }



  .new-product{
      height: auto;
  }

  .features{
    height: auto;
  }
}



@media(max-width: 765px){
  .hero-content{
      margin-left: 30px;
  }

  .hero-content h1 {
      font-size: 30px;
      line-height: 40px;
    }
  
    .hero-content p{
      font-size: 15px;
      margin-top: 5px;
    }
}

/* 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);
}


/* responsif header+hero */





/* section about */
.about{
  display: flex;
  gap: 50px;
  margin: 80px 40px 30px 20px;
  align-items: center;
  /* width: 100%; */
  height: auto;
}

.about-img img{
  max-width: 400px;
}

.about-text{
  line-height: 1.5;
  padding: 0;
  margin: 0;
}

.about-text h1{
  font-size: 40px
}
.about-text h3{
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}
.about-text p{
  text-align: justify;
}

.about-text button{
  padding: 15px 20px;
  border-radius: 25px;
  margin-top: 20px;
  background-color: rgba(255, 255, 255, 0);
  color: rgb(0, 0, 0);
  border: 1px solid rgb(0, 0, 0);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease, gap 0.3s ease;  /* Ini bikin smooth */
}

.about-text button:hover{
  background-color: rgb(0, 0, 0);
  border: 1px solid rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  gap: 20px;  /* Jarak antar icon & teks nambah smooth */
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --primary-color: #b90000;
  --bg-dark: #1f1f1f;
  --white: #ffffff;
  --gray: #cccccc;
}

.new-product {
  padding: 20px 20px;
  text-align: center;
  background: #f6f6f6;
  height: 80vh auto;
}

.np-judul {
  font-size: 36px;
  color: #000000;
  /* margin-bottom: 80px; */
  padding-top: 20px;
  font-weight: 600;
}
.np-subjudul {
  font-size: 20px;
  color: #000000;
  margin-bottom: 80px;
  font-weight: 300;
}

.shape-item {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  justify-content: center;
}

.shape {
  width: 300px;
  height: 250px;
  background-color: #ffffff;
  border-radius: 20px;
  overflow: visible;
  padding: 2rem 1rem;
  margin-top: 20px;
  position: relative;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.shape__img-wrapper {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.shape__img {
  width: 200px;
  transition: transform 0.5s ease;
  filter: drop-shadow(5px 10px 15px rgba(0,0,0,0.3));
}

.shape__data {
  margin-top: 140px;
  padding: 0 10px;
  transition: transform 0.5s ease;
}

.shape__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  transition: transform 0.5s ease;
}

.shape__description {
  font-size: 0.85rem;
  color: black;
  margin-bottom: 15px;
  line-height: 1.5;
}

.shape__button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.4s ease;
}

.shape__button:hover {
  box-shadow: 0 12px 30px rgba(185,0,0,0.3);
}

/* Hover efek lengkap */
.shape:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 18px 45px rgba(0,0,0,0.2);
}

.shape:hover .shape__img {
  transform: translateY(-30px) rotate(0deg);
}

.shape:hover .shape__data {
  transform: translateY(-10px);
}

.shape:hover .shape__title {
  transform: translateX(0px);
}

.shape:hover .shape__price {
  transform: translateX(0px);
}

.shape:hover .shape__description,
.shape:hover .shape__button {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}




.features {
  /* display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px; */
  padding: 50px 20px;
  background: #f6f6f6;
  /* flex-wrap: wrap; */
  height: auto;
}

.feature-item{
  display: flex;
  /*flex-wrap: wrap;*/
  gap: 30px;
  justify-content: center;
}

.feature-card {
  background: transparent;
  border-radius: 15px;
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.05); */
  padding: 30px 20px;
  text-align: center;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
} */

.feature-icon {
  background: #eaf2ff;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color:#b90000;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #555;
}


@media(max-width: 400px) {
 .features {
  padding: 25px 10px;
}

.feature-item{
  gap: 10px;
}

.feature-card {
  border-radius: 15px;
  padding: 20px 10px;
  width: 100%;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 12px;
  font-size: 20px;
}

.feature-card h3 {
  font-size: 10px;
}

.feature-card p {
  display: none !important;
}
}

@media(max-width: 300px) {
  .feature-item{
  gap: 2px;
}
}

/* 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) {
    .np-judul {
  font-size: 20px;
  padding-bottom:20px;

}
.np-subjudul {
  font-size: 14px;

}

  .about-text h1{
  font-size: 30px
}
.about-text h3{
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 500;
}
.about-text p{
    font-size:15px;
}

.footer-container {
  flex-direction: column;
  align-items: flex-start;
}

.footer-content {
  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;
}
}
