/* Navigation Dropdown Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&display=swap');

* {
  box-sizing: border-box;
}

.navbar-dropdown-container {
  position: fixed;
  z-index: 1000;
}

/* Hamburger Button */
.hamburger-btn {
  position: fixed;
  top: 10px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: #0a1929;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: background 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hamburger-btn:hover {
  background: #1a2332;
}

.hamburger-btn:focus {
  outline: 2px solid #00e5ff;
  outline-offset: 2px;
}

.hamburger-btn .line {
  display: block;
  width: 30px;
  height: 3px;
  background: #00e5ff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active .line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Dropdown Menu */
.dropdown-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: rgba(10, 25, 41, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.dropdown-menu.open {
  transform: translateX(0);
}

/* Menu Header */
.menu-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 20px 90px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.menu-header .logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00e5ff 0%, #00a8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

/* Menu List */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-list > li > a,
.menu-list > li > button {
  display: block;
  width: 100%;
  padding: 16px 20px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-left: 4px solid transparent;
  min-height: 48px;
}

.menu-list > li > a:hover,
.menu-list > li > button:hover {
  background: rgba(0, 229, 255, 0.1);
  padding-left: 24px;
}

.menu-list > li > a:focus,
.menu-list > li > button:focus {
  outline: 2px solid #00e5ff;
  outline-offset: -2px;
}

.menu-list > li > a.active {
  border-left-color: #00e5ff;
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
}

/* Submenu Toggle */
.submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu-toggle .arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.has-submenu.open .submenu-toggle .arrow {
  transform: rotate(180deg);
}

/* Submenu */
.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.3);
}

.has-submenu.open .submenu {
  max-height: 500px;
}

.submenu li a {
  display: block;
  padding: 12px 20px 12px 40px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.submenu li a:hover {
  background: rgba(0, 229, 255, 0.08);
  color: #00e5ff;
  padding-left: 44px;
}

.submenu li a:focus {
  outline: 2px solid #00e5ff;
  outline-offset: -2px;
}

.submenu li a.active {
  border-left-color: #00e5ff;
  background: rgba(0, 229, 255, 0.1);
  color: #00e5ff;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

/* Scrollbar Styling */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.3);
  border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .dropdown-menu {
    width: 100%;
    max-width: 320px;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Smooth page transitions */
.page-transition {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-transition.loaded {
  opacity: 1;
}
