* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

html,
body {
  overscroll-behavior: none;
  height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
}

/* NAVBAR STYLES */
.navbar {
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  transition: all 0.4s ease;
}

.navbar-container {
  width: 100%;
  max-width: 1280px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: padding 0.4s ease;
}

.navbar.scrolled {
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.nav-logo img {
  width: 120px;
  height: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 999;
  margin-left: auto;
  transition: all 0.3s ease;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: black;
  transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Links - Desktop */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0 auto;
  gap: 0;
  opacity: 1;
  max-height: none;
}

/* === MENU UTAMA === */
.navbar .nav-links > li {
  padding: 10px 20px;
  background-color: orange;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-right: 1px solid white;
  position: relative;
}

.navbar .nav-links > li:last-child {
  border-right: none;
}

.navbar li.gray {
  background-color: #ccc;
  color: black;
}

.navbar .nav-links > li:hover {
  background-color: #ccc;
  color: black;
}

.navbar li a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* === DROPDOWN SUBMENU === */
.navbar .nav-links li.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #eee;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s linear 0.3s;
  z-index: 1000;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar .nav-links li.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s;
}

.navbar .nav-links li.has-dropdown .dropdown li a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  background: #eee;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar .nav-links li.has-dropdown .dropdown li a:hover {
  background: #bbb;
  color: #000;
}

/* Panah di menu yang punya submenu */
.navbar .nav-links li.has-dropdown > a {
  position: relative;
  padding-right: 20px;
}

.navbar .nav-links li.has-dropdown > a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid white;
  transition: border-top-color 0.2s ease;
}

.navbar .nav-links li.has-dropdown:hover > a::after {
  border-top-color: black;
}

/* ===========================
   MOBILE (≤992px) TUNING
   =========================== */
@media (max-width: 992px) {
  /* Tampilkan hamburger */
  .hamburger { display: flex; }

  /* Container link utama */
  .nav-links {
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    opacity: 0; max-height: 0; pointer-events: none;
    transition: all .4s ease;
  }
  .nav-links.open {
    opacity: 1; max-height: 1000px; /* besar sekali */
    pointer-events: auto;
  }

  /* Style setiap item */
  .navbar li {
    width: 100%; text-align: left;
    border-bottom: 1px solid #eee;
    padding: 12px 16px;
    position: relative; /* untuk focus-within */
  }

  /* Parent yang punya dropdown */
  .navbar li.has-dropdown > a {
    display: flex; justify-content: space-between;
    align-items: center;
  }
  .navbar li.has-dropdown > a::after {
    content: '▾'; margin-left: 8px; font-size: .8em;
  }

  /* Override dropdown: dari absolute ke static */
  .navbar .nav-links li.has-dropdown .dropdown {
    position: static;
    margin-top: 8px;          /* muncul di bawah */
    background: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }

  /* Tampilkan submenu saat hover atau focus di mobile */
  .navbar .nav-links li.has-dropdown:focus-within .dropdown,
  .navbar .nav-links li.has-dropdown:hover       .dropdown {
    max-height: 500px;       /* cukup untuk memuat semua item */
  }

  /* Style item dropdown */
  .navbar .nav-links li.has-dropdown .dropdown li {
    border-bottom: 1px solid #ddd;
    padding: 0; margin: 0;
  }
  .navbar .nav-links li.has-dropdown .dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    background: #fff;
    transition: background .2s ease;
  }
  .navbar .nav-links li.has-dropdown .dropdown li:last-child {
    border-bottom: none;
  }
  .navbar .nav-links li.has-dropdown .dropdown li a:hover {
    background: #eee;
  }
}



@media (max-width: 576px) {
  .navbar li {
    font-size: 0.9rem;
  }

  .hamburger .bar {
    background-color: black;
  }
}

/* Animasi fade-in muncul 1 kali */
.navbar.animate {
  opacity: 0;
  transform: translateY(0);
  transition: all 1s ease;
}

.navbar.animate.show {
  opacity: 1;
  transform: translateY(0);
}















/* FOOTER section */
.footer {
  position: relative;
  background: #F8FAFC;
  overflow: hidden;
  padding: 100px 40px 40px;
  font-family: "Segoe UI", sans-serif;
  color: #333;
}
.footer__overlay--left,
.footer__overlay--right {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  opacity: 0.3;
  top: -40px;
}
.footer__overlay--left {
  background: radial-gradient(circle at center, #ff6f91, transparent 70%);
  left: -200px;
}
.footer__overlay--right {
  background: radial-gradient(circle at center, #845ec2, transparent 70%);
  right: -200px;
}
.footer__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background: #F8FAFC;
  border-radius: 12px;
  padding: 40px 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(146, 118, 194, 0.25);
}
.footer__col {
  flex: 1;
  min-width: 240px;
}
.footer__title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 12px;
  font-weight: bold;
  color: #29c96c;
}
.footer__link,
.footer__icon-btn {
  display: block;
  margin-bottom: 8px;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
}
.footer__link:hover,
.footer__icon-btn:hover {
  color: #0073e6;
}
.footer__icon-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.footer__icon-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  text-align: center;
  line-height: 45px;
  box-shadow: 0 8px 24px rgba(146, 118, 194, 0.25);
}
.footer__logos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 50px 0;
  align-items: flex-start; 
}

.footer__logo-img {
  height: 120px;
  width: auto;
  object-fit: contain;
}
.footer__right-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "sales others"
    "partner others";
  gap: 20px;
}

.footer__right-col-group.sales {
  grid-area: sales;
}
.footer__right-col-group.partner {
  grid-area: partner;
}
.footer__right-col-group.others {
  grid-area: others;
}
.footer__right-col-group {
  display: flex;
  flex-direction: column;
}
.footer__bottom {
  text-align: center;
  margin-top: 30px;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: orange;
  padding-top: 20px;
}
/* Responsive */

@media (max-width: 480px) {
  .footer__title {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }
  .footer__link,
  .footer__icon-btn {
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  }
  .footer__bottom {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
  }
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
  }

  .footer__right-columns {
    grid-template-columns: 1fr; 
    grid-template-areas: 
      "sales"
      "partner"
      "others";
  }
}

@media (max-width: 1024px) {
  .footer__inner {
    flex-direction: column;
  }

  .footer__right-columns {
    grid-template-columns: 1fr; 
    grid-template-areas: 
      "sales"
      "partner"
      "others";
  }
}