/* Modern Menu Styling */
:root {
  --primary-color: #1a1a1a;
  --accent-color: olive;
  --text-color: #333;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --header-height: 80px;
  --top-bar-height: 40px;
}

/* Base Navigation Container */
.nav-container,
.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Secondary Top Bar */
.top-bar {
  background-color: var(--primary-color);
  color: var(--white);
  height: var(--top-bar-height);
  font-size: 0.85rem;
  font-family: "museo-sans", sans-serif;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.top-bar-right a {
  color: var(--white);
  text-decoration: none;
  margin-left: 20px;
  transition:
    color 0.3s,
    opacity 0.3s;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-right a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
}

.tjing-logo-nav {
  height: 14px;
  width: auto;
  filter: grayscale(1) brightness(2);
  transition: filter 0.3s;
}

.top-bar-right a:hover .tjing-logo-nav {
  filter: none;
}

/* Main Header */
.modern-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  height: var(--header-height);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.modern-header.shrunk {
  height: 60px;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-logo {
  height: 50px;
  width: auto;
  transition: height 0.3s ease;
}

.modern-header.shrunk .nav-logo {
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.brand-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Desktop Navigation */
.desktop-nav .nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text-color);
  transition: background 0.3s;
}

.dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--accent-color);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  left: 0;
  transition: all 0.3s;
}

.hamburger::before {
  top: -8px;
}
.hamburger::after {
  bottom: -8px;
}

.mobile-toggle.active .hamburger {
  background-color: transparent;
}
.mobile-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.mobile-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--white);
  overflow-y: auto;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-menu-overlay.active {
  height: calc(100vh - 60px);
}

.mobile-nav {
  padding: 40px 20px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.mobile-section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
  display: block;
}

.mobile-submenu {
  list-style: none;
  padding-left: 20px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-submenu li a {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
}

.mobile-nav-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 15px 30px;
  border-radius: 5px;
  text-align: center;
  margin-top: 20px;
}

.mobile-social-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.mobile-social-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2px;
  color: var(--text-color);
}

/* Responsiveness */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .top-bar-left {
    display: none;
  }
  .top-bar-container {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .logo-text {
    display: none;
  }
}
