/* ---------------------------------------------
   DiPStrategy -- Navigation
   style/nav.css
   Navbar, mega menu, hamburger button
   --------------------------------------------- */

/* --- NAVBAR SCROLLED STATE --- */
nav.scrolled {
  background: rgba(5, 20, 40, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* --- NAVBAR --- */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 72px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
  transition: background 0.3s;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-mark { height: 36px; width: auto; }

.nav-links { display: flex; align-items: stretch; gap: 0; list-style: none; height: 100%; }
.nav-links li { display: flex; align-items: center; position: relative; }

.nav-links a,
.nav-links button.nav-btn {
  font-family: 'Barlow', sans-serif;
  font-weight: 500; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none; background: none; border: none;
  cursor: pointer; padding: 0 20px; height: 100%;
  display: flex; align-items: center;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links button.nav-btn:hover { background: rgba(255,255,255,0.9); color: #111; }
.nav-links button.nav-btn.active { background: rgba(255,255,255,0.9); color: #111; }

/* --- MEGA MENU --- */
.mega-menu {
  position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(255,255,255,0.9);
  z-index: 199; padding: 36px 56px 40px;
  display: none; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.mega-menu.animate { opacity: 1; transform: translateY(0); }

.mega-col {
  flex: 1; padding: 0 32px 0 0;
  border-right: 1px solid rgba(0,0,0,0.08); margin-right: 32px;
}

.mega-col:last-child { border-right: none; margin-right: 0; padding-right: 0; }

.mega-col-cta {
  flex: 0 0 220px; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start; padding-left: 32px;
}

.mega-col-header {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #111; display: block;
}

.mega-col ul { list-style: none; margin-top: 4px; display: flex; flex-direction: column; gap: 0; }

.mega-col ul li a {
  font-family: 'Barlow', sans-serif;
  font-weight: 400; font-size: 14px; color: #444;
  text-decoration: none; padding: 4px 0; display: block;
  letter-spacing: 0; text-transform: none;
  background: none; height: auto;
  transition: color 0.15s, padding-left 0.15s;
}

.mega-col ul li a:hover { color: #093564; padding-left: 6px; background: none; }

.mega-col-industry p {
  font-family: 'Barlow', sans-serif;
  font-weight: 100; font-size: 13px; line-height: 1.6; color: #818181; margin-top: 4px;
}

/* Industries mega menu — 4 kolom + CTA button bawah-tengah */
.mega-menu--industries {
  flex-direction: column;
}

.mega-industries-grid {
  display: flex;
  width: 100%;
}

.mega-industries-footer {
  display: flex;
  justify-content: center;
  padding-top: 28px;
  margin-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.mega-industries-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #093564; background: #DEFF2D;
  border-radius: 999px; padding: 13px 28px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.mega-industries-cta:hover { background: #f0ff50; transform: translateY(-2px); }

/* About Us mega menu — 4 kolom */
.mega-menu--about {
  grid-template-columns: 1fr 1fr 1fr 280px;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.mega-about-prologue {
  padding: 32px 32px;
  border-right: 1px solid rgba(0,0,0,0.08);
  display: flex; align-items: center;
}

.mega-about-prologue p {
  font-family: 'Barlow', sans-serif;
  font-weight: 300; font-size: 14px;
  line-height: 1.8; color: #444;
  font-style: italic;
}

.mega-about-links {
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
  gap: 4px;
  
  border-right: 1px solid rgba(0,0,0,0.08);
}

.mega-about-link {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 8px;
  transition: background 0.15s;
}

.mega-about-link:hover { background: rgba(9,53,100,0.05); }

.mega-about-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #111; display: block;
}

.mega-about-desc {
  font-family: 'Barlow', sans-serif;
  font-weight: 100; font-size: 13px;
  line-height: 1.6; color: #818181;
}

.mega-about-img-wrap {
  overflow: hidden;
}

.mega-about-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}

.mega-menu--about:hover .mega-about-img { transform: scale(1.03); }

.mega-cta-text {
  font-family: 'Barlow', sans-serif; font-weight: 400; font-size: 13px;
  letter-spacing: 0; text-transform: none; color: #333; line-height: 1.55; margin-bottom: 14px;
}

.mega-cta-wa {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #093564;
  font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 500;
  transition: color 0.2s;
}

.mega-cta-wa:hover { color: #25D366; }

.mega-cta-wa svg {
  width: 32px; height: 32px; background: #25D366;
  border-radius: 50%; padding: 6px; flex-shrink: 0;
}

/* --- HAMBURGER BUTTON --- */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
  z-index: 201; position: relative;
}

.hamburger span {
  display: block; width: 22px; height: 2px; background: #fff;
  transition: all 0.3s ease; transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
}
