/* ============================================
   TITANS NAV - Dropdown & Mobile Accordion
   Shared across all pages
   ============================================ */

/* --- Desktop Dropdown --- */
#mainNav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

#mainNav .nav-logo {
  width: 40px;
  height: auto;
  transition: transform 0.3s ease;
}

#mainNav .nav-logo:hover {
  transform: scale(1.1) rotate(5deg);
}

#mainNav .nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

#mainNav .nav-link {
  color: #A2AAAD;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#mainNav .nav-link:hover { color: #FFFFFF; }
#mainNav .nav-link.active { color: #4B92DB; }

.nav-dropdown {
  position: relative;
}

.nav-dd-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 10, 16, 0.96);
  border: 1px solid rgba(75, 146, 219, 0.3);
  border-radius: 6px;
  padding: 6px 0;
  min-width: 190px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.nav-dropdown:hover .nav-dd-menu,
.nav-dropdown.open .nav-dd-menu {
  display: block;
}

.nav-dd-menu a {
  display: block;
  padding: 8px 18px;
  color: #A2AAAD;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s, background 0.2s;
}

.nav-dd-menu a:hover {
  color: #FFFFFF;
  background: rgba(75, 146, 219, 0.15);
}

.nav-dd-menu a.active {
  color: #4B92DB;
}

/* --- Hamburger --- */
#mainNav .titans-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

#mainNav .titans-hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #A2AAAD;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#mainNav .titans-hamburger:hover span { background: #fff; }

#mainNav .titans-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
#mainNav .titans-hamburger.active span:nth-child(2) { opacity: 0; }
#mainNav .titans-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Mobile Menu Overlay --- */
.titans-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 10, 16, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  padding-top: 80px;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.titans-mobile-menu.active { display: flex; }

.titans-mobile-menu-inner {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 20px 40px;
}

.titans-mobile-menu-inner > a {
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(75, 146, 219, 0.15);
  transition: color 0.2s;
}

.titans-mobile-menu-inner > a:hover,
.titans-mobile-menu-inner > a.active { color: #4B92DB; }

/* --- Mobile Accordion --- */
.mob-group {
  border-bottom: 1px solid rgba(75, 146, 219, 0.15);
}

.mob-group-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #FFFFFF;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
  text-align: left;
}

.mob-group-toggle:hover { color: #4B92DB; }
.mob-group.active-group > .mob-group-toggle { color: #4B92DB; }

.mob-arrow {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  color: #A2AAAD;
}

.mob-group.open .mob-arrow {
  transform: rotate(180deg);
}

.mob-group-items {
  display: none;
  flex-direction: column;
  padding: 0 0 8px 16px;
}

.mob-group.open .mob-group-items {
  display: flex;
}

.mob-group-items a {
  color: #A2AAAD;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 0;
  transition: color 0.2s;
}

.mob-group-items a:hover { color: #FFFFFF; }
.mob-group-items a.active { color: #4B92DB; }

/* --- Responsive --- */
@media (max-width: 900px) {
  #mainNav .nav-links { display: none; }
  #mainNav .titans-hamburger { display: flex; }
}
