@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- Header Base --- */

.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent; 
  backdrop-filter: none;
  padding: 14px 0;
  transition: all 0.4s ease; 
}


.navbar-header.scrolled {
  background: rgba(12, 12, 14, 0.9); 
  backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(232, 168, 23, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}


.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Navigation Links --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-item {
  position: relative;
  text-decoration: none;
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
}

.nav-icon {
  font-size: 13px;
  color: #fff;
  transition: color 0.25s ease;
}

/* Hover & Active Indicator Animation */
.nav-item::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #E8A817, #f59e0b);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px #E8A817;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  color: #E8A817;
}

.nav-item:hover::before,
.nav-item.active::before {
  transform: translateX(-50%) scaleX(1);
}

/* --- Dropdown General Styling --- */
.dropdown {
  position: relative;
}

.arrow-icon, .arrow-icon-sub {
  font-size: 11px;
  color: #E8A817;
  transition: transform 0.3s ease;
}

.dropdown:hover > .dropdown-btn .arrow-icon {
  transform: rotate(180deg);
}

/* --- Level 1 Dropdown (Sub Pages) --- */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -106px;
  min-width: 309px;
  background: rgba(18, 18, 22, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 168, 23, 0.3);
  border-radius: 14px;
  padding: 8px;
  list-style: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(232, 168, 23, 0.1);
  
  /* Smooth Fade & Slide Animation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}



.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-menu li {
  position: relative;
  margin-bottom: 3px;
}

.dropdown-menu li:last-child {
  margin-bottom: 0;
}

.dropdown-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.dropdown-menu li a i {
  margin-right: 8px;
  color: #E8A817;
}

.dropdown-menu li a:hover {
  background: rgba(232, 168, 23, 0.12);
  color: #ffffff;
  transform: translateX(5px);
}

/* --- Level 2 Dropdown (Super Sub Pages) --- */
.sub-dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 271px;
  background: rgba(18, 18, 22, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 168, 23, 0.3);
  border-radius: 14px;
  padding: 8px;
  list-style: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(232, 168, 23, 0.1);
  
  /* Smooth Hover Animation */
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.has-sub:hover > .sub-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.has-sub:hover > a .arrow-icon-sub {
  transform: translateX(3px);
  color: #ffffff;
}

/* --- CTA Button --- */
.btn-cta {
  text-decoration: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

/* --- Mobile Styling --- */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(14, 14, 18, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(232, 168, 23, 0.2);
  }

  .nav-links.active {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
  }

  .dropdown-menu, .sub-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 5px;
    display: none; /* Controlled via JS Accordion */
  }

  .dropdown.open > .dropdown-menu,
  .has-sub.open > .sub-dropdown-menu {
    display: block;
  }

  .dropdown-menu li a:hover {
    transform: none;
  }
}

/* Invisible Bridge Trick */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px; 
  left: 0;
  width: 100%;
  height: 15px; 
  background: transparent;
}


.sub-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -15px; 
  width: 15px;
  height: 100%;
  background: transparent;
}