/* /css/nav-footer.css - Universal Header Navbar & Footer Styles for HashGANG */

html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  margin: 0;
  box-sizing: border-box;
}

/* Container fallback */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* =========================
   HEADER NAVBAR
========================= */
header.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(8, 2, 20, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 10000;
  padding: 16px 0;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  filter: drop-shadow(0 0 10px rgba(153, 17, 238, 0.6));
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: rotate(6deg) scale(1.06);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #e0c3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-menu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex;
  align-items: center;
}

.nav-link {
  color: #a098b5;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Solutions Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-btn {
  color: #a098b5;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: all 0.25s ease;
}

.dropdown-btn:hover,
.nav-dropdown.open .dropdown-btn,
.nav-dropdown:hover .dropdown-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-card {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 300px;
  background: #140728;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(153, 17, 238, 0.25);
  z-index: 10005;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
}

.nav-dropdown.open .dropdown-card,
.nav-dropdown:hover .dropdown-card {
  display: flex;
  animation: dropFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.item-text-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.item-text-sub {
  font-size: 11px;
  color: #a098b5;
}

.hot-tag {
  background: linear-gradient(90deg, #ff007f, #7928ca);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  color: #fff;
}

/* Nav CTA Button */
.nav-btn-cta {
  background: linear-gradient(135deg, #ff007f 0%, #7928ca 100%);
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 10px 22px !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 20px rgba(255, 0, 127, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
}

.nav-btn-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 30px rgba(255, 0, 127, 0.7);
  background: linear-gradient(135deg, #7928ca 0%, #ff007f 100%);
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* =========================
   MOBILE BACKDROP OVERLAY
========================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================
   FOOTER
========================= */
footer.footer {
  background: #05010d;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 60px 0 30px;
  color: #ffffff;
  font-family: inherit;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: #a098b5;
  font-size: 14px;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 18px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #a098b5;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ff007f;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  color: #a098b5;
  font-size: 13px;
}

/* =========================
   RESPONSIVE DESIGN (<= 992px)
========================= */
@media (max-width: 992px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    visibility: hidden;
    width: 300px;
    height: 100vh;
    background: #0f0422;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 40px;
    gap: 16px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    z-index: 10008;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-menu li {
    display: block;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    box-sizing: border-box;
  }

  .nav-btn-cta {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-card {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-dropdown.open .dropdown-card {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
