/* ==== Global ==== */
html, body {
  font-family: 'Inter', system-ui, sans-serif;
  scroll-behavior: smooth;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  min-height: 200vh;
  overflow-x: hidden;
  background-color: #e2edee; /* satu kali saja */
}

/* ==== HEADER ==== */
#mainHeader {
  background-color: transparent;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll dan hover */
#mainHeader.scrolled {
  background-color: white !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

#mainHeader:hover {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Container */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigasi Link */

nav.nav-links a {
  position: relative;
  text-decoration: none;
}

nav.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: linear-gradient(to right,#6b0b03, #25221e);
  transition: width 0.3s ease;
}

nav.nav-links a:hover::after {
  width: 100%;
}

/* === Underline untuk halaman aktif === */
nav.nav-links a.active::after {
  width: 100%;
}


/* Desktop only */
@media (min-width: 768px) {
  nav.nav-links {
    display: flex !important;
    gap: 1.5rem;
  }
}

/* ==== Logo Default (Putih) ==== */
.logo {
  width: 250px;
  height: auto;
  transition: filter 0.3s ease, opacity 0.3s ease;
  filter: brightness(0) invert(1); /* Logo putih */
}

/* Logo kembali normal saat scroll dan hover */
#mainHeader.scrolled .logo,
#mainHeader:hover .logo,
.logo:hover {
  filter: none; /* Kembali ke logo asli */
}

/* Tombol Toggle Mobile (Putih default) */
#menuToggle svg {
  color: white;
  transition: color 0.3s ease;
}

/* ==== Default nav (putih sebelum scroll) ==== */
#mainHeader:not(.scrolled) nav.nav-links a {
  color: white;
  transition: color 0.3s ease;
}

/* Hover efek saat belum scroll: putih → merah tua / biru terang */
#mainHeader:not(.scrolled) nav.nav-links a:hover {
  color: #950417; /* Bisa diganti Tailwind blue-300: #93c5fd */
}

/* ==== Saat scroll atau hover header: nav hitam ==== */
#mainHeader.scrolled nav.nav-links a,
#mainHeader:hover nav.nav-links a,
#mainHeader.scrolled #menuToggle svg,
#mainHeader:hover #menuToggle svg {
  color: #1f2937; /* Tailwind gray-800 */
}


/* Hover efek setelah scroll: jadi biru */
#mainHeader.scrolled nav.nav-links a:hover,
#mainHeader:hover nav.nav-links a:hover {
  color: #950417; /* Tailwind blue-600 */
}

/* Responsive header fix untuk mobile */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem 1rem; /* kecilin padding */
  }

  .logo {
    width: 150px; /* kecilin logo biar muat */
  }

  /* Pastikan toggle menu tetap di kanan */
  #menuToggle {
    margin-left: auto;
  }

  /* Sembunyikan nav-links di mobile (diganti mobile menu) */
  nav.nav-links {
    display: none !important;
  }
}


/* === DROPDOWN PRODUK DESKTOP === */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 200px;
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #1f2937;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #f3f4f6;
  color: #950417;
}

/* Tampilkan dropdown desktop saat hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* === HAMBURGER BUTTON === */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle:focus {
  outline: none;
}

.menu-icon {
  width: 24px;
  height: 24px;
  stroke: #333;
  transition: stroke 0.2s ease-in-out;
}

.menu-toggle:hover .menu-icon {
  stroke: #751006;
}

/* Sembunyikan tombol hamburger di layar besar */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none; /* default hidden */
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 8px 16px;
}

.mobile-menu.active {
  display: block; /* muncul saat ada class active */
}

/* Link style */
.mobile-link {
  display: block;
  padding: 8px 0;
  color: #4a4a4a;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.mobile-link:hover {
  color: #751006;
}

/* Submenu Mobile */
.mobile-dropdown-menu {
  display: none;
  padding-left: 12px;
}

.mobile-dropdown.open .mobile-dropdown-menu {
  display: block;
}

/* Pastikan mobile menu hanya berlaku di mobile */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}




 /* ==== HERO SECTION ==== */
.ivac-hero-section {
  background: linear-gradient(to right, #6b0b03, #25221e);
  padding: 6rem 2rem 8rem;
  position: relative;
  overflow: visible;
  z-index: 10;
}

.ivac-hero-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 1 auto;
  gap: 2rem;
  min-height: 200px;
}

.ivac-text-wrapper {
  color: white;
  max-width: 600px;
  padding-top: 3rem;
  padding-left: 2rem;
  padding-right: 1rem;
}

.ivac-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.ivac-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e6e6e6;
  margin-bottom: 2rem;
}

.ivac-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid #ccc;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease all;
  margin-top: 1rem;
}

.ivac-button:hover {
  background-color: white;
  color: #1e1e1c;
}

/* ==== HERO IMAGE ==== */
.ivac-image-wrapper {
  position: absolute;
  bottom: -35px;
  right: 40px;
  z-index: 1000;
  max-width: 50%;
}

.ivac-image-wrapper img {
  width: clamp(280px, 50vw, 850px);
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;

  /* Efek bayangan dan glow */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
              0 0 25px rgba(255, 255, 255, 0.15);

  /* Efek fade bawah lebih halus */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0));

  /* Efek visual lebih vivid */
  filter: brightness(1) contrast(1.15) saturate(1);

  /* Animasi masuk */
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: ivacImageFade 0.9s ease-out forwards;
}

/* ==== ANIMASI Gambar ==== */
@keyframes ivacImageFade {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1024px) {
  .ivac-image-wrapper img {
    width: clamp(240px, 60vw, 650px);
  }
}

@media (max-width: 768px) {
  .ivac-hero-wrapper {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .ivac-text-wrapper {
    padding: 2rem 1rem;
    max-width: 100%;
  }

  .ivac-image-wrapper {
    position: static;
    margin-top: 2rem;
    text-align: center;
    max-width: 100%;
  }

  .ivac-image-wrapper img {
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
  }
}

/* Tombol */
.hero-buttons {
  display: flex;
  gap: 12px;
  animation: none !important;
  flex-wrap: wrap;
  justify-content: center; /* Tengah (default mobile) */
  margin-top: 1.5rem;
}

/* Tombol */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: #000000;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.btn-hero:hover {
  background-color: #751006; /* Warna latar belakang tombol saat hover */
  color: #ffffff; /* Warna teks tombol saat hover */
  transform: translateY(-2px);
}

/* Gambar ikon */
.icon-small {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease; /* Transisi halus */
}

/* Efek hover untuk ikon (mengikuti tombol) */
.btn-hero:hover .icon-small {
  filter: invert(1); /* Ubah ikon menjadi putih saat tombol di-hover */
  transform: scale(1.1); /* Perbesar sedikit saat hover */
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
.hero-buttons {
    justify-content: flex-start; /* Rata kiri */
  }
  .btn-hero {
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  .icon-small {
    width: 26px;
    height: 26px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
 .hero-buttons {
    justify-content: flex-start; /* Rata kiri */
  }
  .btn-hero {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .icon-small {
    width: 30px;
    height: 30px;
  }
}


  

 /* === 🔥 UPGRADE STYLING: Keren, Modern, Eye-catching === */

 .product-categories-section {
    padding: 3rem 1rem;
    background: linear-gradient(to bottom, #e2edee, #fefefe);
    color: #1a1a1a;
    z-index: 1;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
  }
  
  .container {
    max-width: 1300px;
    margin: 0 auto;
  }
  
  .product-title {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;       /* rata kanan-kiri */
    text-justify: inter-word;  /* distribusi spasi antar kata */
    margin-bottom: 1rem;
    color: #4a0000;
  }
  
  
  .product-description {
    text-align: justify;
    font-size: 1.05rem;
    max-width: 850px;
    margin: 0 auto 2rem;
    color: #444;
    line-height: 1.6;
  }
  
  .product-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
  }
  
  .product-subtitle::after {
    content: "";
    width: 60px;
    height: 4px;
    background-color: #6b0b03;
    display: block;
    margin: 0.5rem auto 0;
    border-radius: 4px;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  
  .product-card {
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.4s ease;
    border: 1px solid #eee;
    height: 100%;
    text-align: left;
  }
  
  .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    border-top: 4px solid #6b0b03; /* Warna merah gelap khas tema NSP */
  }
  
  .product-card img {
    width: 100%;
    object-fit: contain;
    height: 160px;
    padding: 0.5rem;
    background: #fafafa;
  }
  
  .card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
  }
  
  .card-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #222;
    text-align: center;
  }
  
  .card-content p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
  }
  
  .discover-btn {
    text-decoration: none;
    font-weight: 600;
    color: #6b0b03;
    border: 2px solid #6b0b03;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    transition: all 0.3s ease;
    display:  block;
    text-align: center;
  }
  
  .discover-btn:hover {
    background-color: #6b0b03;
    color: white;
  }
  
  /* Tablet */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card img {
    height: 140px;
  }
}

/* Extra Small */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}


 /* ==== Section Tanya Jawab Pneumatik ==== */
.section-tanya-jawab {
  background: linear-gradient(to bottom, #ffffff, #e2edee); /* diperbaiki sesuai permintaan */
  padding: 4rem 1.5rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.section-tanya-jawab .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tanya-jawab .section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  background: linear-gradient(to right, #6b0b03, #25221e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.qa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.qa-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #6b0b03;
}

.qa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.qa-question {
  font-size: 1.25rem;
  font-weight: 700;
  color: #6b0b03;
  margin-bottom: 0.75rem;
}

.qa-answer {
  font-size: 1rem;
  color: #374151;
  text-align: justify;
  line-height: 1.7;
}



  
/* Section Brand Styling */
.section-brand {
    background-color: #ffffff;
    padding: 200px;;
    position: relative; /* Tambahkan ini */
    z-index: 0;
  }
  
  .brand-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative; /* Tambahkan ini */
    z-index: 1;
  }
  
  .brand-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
  
    background: linear-gradient(to right, #6b0b03, #25221e); /* Merah tua ke gelap */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  
  
  .brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  
  .brand-logo {
    height: 120px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .brand-logo:hover {
    transform: scale(1.05);
  }
  

  /* Section Brand Styling */
.section-brand {
    background-color: #ffffff;
    padding: 2.5rem 1rem;
  }
  
  .brand-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
  
  .brand-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
  
    background: linear-gradient(to right, #6b0b03, #25221e); /* Merah tua ke gelap */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  
  
  .brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  
  .brand-logo {
    height: 120px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .brand-logo:hover {
    transform: scale(1.05);
  }
  
  /* ==== CTA Section ==== */
.section-cta {
    background: linear-gradient(to right, #6b0b03, #25221e);
    padding: 2.5rem 1rem;
    color: #ede5e5;
    text-align: center;
  }
  
  .cta-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .cta-subtitle {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .cta-button {
    background-color: white;
    color: #080808;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px; /* rounded-full */
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
  }
  
  .cta-button:hover {
    background-color: #6b0b03; /* Tailwind's gray-200 */
    color: #f8f8fa;
  }


  

 /* ==== Footer ==== */
.footer-section {
  background-color: transparent !important;
  color: #050505;
  padding: 3rem 1.5rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* ... lainnya tetap sama */


.footer-column {
  flex: 1 1 300px;
}

.footer-logo {
  width: 200px;
  margin-bottom: 1rem;
}

.footer-cert {
  width: 80px;
  margin-bottom: 1rem;
}

.footer-desc {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000509;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.social-icons {
  display: flex;
  justify-content: flex-start; /* bisa diubah ke center atau flex-end jika ingin ditengah atau kanan */
  align-items: center;
  margin-top: 1rem;
}

.social-icons img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.tokopedia-icon {
  width: 40px;
  height: 40px;
  object-fit: contain; /* menjaga rasio asli tanpa distorsi */
}

.social-icons img:hover {
  transform: scale(1.1);
}

.contact-info {
  display: inline-flex;
  align-items: left;
  gap: 8px;
  margin-bottom: 6px;
}

.inline-icon {
  width: 20px;
  height: 20px;
}


.subscribe-form {
  display: flex;
  flex-direction: column;
  max-width: 250px;
}

.subscribe-form input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.subscribe-form button {
  background: linear-gradient(to right,  #6b0b03, #f9f8f8, #6b0b03);
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.subscribe-form button:hover {
  background: linear-gradient(to right, #6b0b03, #25221e);
  color: rgb(255, 255, 255);
}

/* ==== Default sembunyikan dengan opacity ==== */
#scrollTopBtn,
#floatingChat,
#floatingChatIcon {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none; /* Tidak bisa diklik saat hidden */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Saat muncul */
#scrollTopBtn.show,
#floatingChat.show,
#floatingChatIcon.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Tombol Scroll */
#scrollTopBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6b0b03, #25221e);
  color: white;
  font-size: 1.25rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  animation: float 2.5s ease-in-out infinite;
}

/* Ikon Desktop */
.floating-chat {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 9999;
  width: 220px;
  max-width: 90vw;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.floating-chat:hover {
  transform: scale(1.05);
}

/* Mobile */
.floating-chat-container {
  display: none;
}
@media (max-width: 768px) {
  .floating-chat {
    display: none;
  }
  .floating-chat-container {
    display: block;
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    animation: bounce 2s infinite;
  }
  .floating-chat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

/* Animasi */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}



.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #000a0f;
}

.footer-bottom hr {
  border: none;
  border-top: 1px solid #000; /* Ubah warna garis jadi hitam */
  margin-bottom: 1rem;
}

  
  