/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 15, 26, 0.98);
  padding: 1rem 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.navbar-brand:hover {
  opacity: 0.85;
}

.navbar-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.navbar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-endolum {
  font-family: 'Roboto', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: #ffffff;
}

.brand-academy {
  font-family: 'Roboto', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #8c52ff;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links ul li a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
  display: block;
}

.nav-links ul li a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links ul li a.active {
  color: #ffffff;
  background: rgba(140, 82, 255, 0.1);
}

.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger-menu .bar {
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  transition: 0.3s;
}

.burger-menu.change .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}

.burger-menu.change .bar:nth-child(2) {
  opacity: 0;
}

.burger-menu.change .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}

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

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  color: #a0a0a0;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
  user-select: none;
}

.nav-dropdown-trigger:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown-arrow {
  font-size: 0.625rem;
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(10, 15, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.nav-dropdown-menu a {
  display: block;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta-teams {
  background: rgba(33, 155, 157, 0.15);
  border: 1px solid var(--color-accent-secondary, #219b9d);
  color: #219b9d !important;
  border-radius: 2px;
  font-weight: 600 !important;
}

.nav-cta-teams:hover {
  background: #219b9d !important;
  color: #ffffff !important;
}

@media (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    background: #0a0f1a;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    height: 100vh;
    width: 280px;
    padding-top: 100px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links ul li {
    width: 100%;
  }

  .nav-links ul li a {
    padding: 1.25rem 2rem;
    font-size: 1rem;
    width: 100%;
  }

  .burger-menu {
    display: flex;
  }

  .nav-active {
    right: 0;
  }

  .nav-dropdown-trigger {
    padding: 1.25rem 2rem;
    font-size: 1rem;
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding: 0;
    display: none;
    min-width: 0;
  }

  .nav-dropdown-menu.mobile-open {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 1rem 2rem 1rem 3.5rem;
    font-size: 0.9375rem;
  }

  .nav-dropdown-arrow.rotated {
    transform: rotate(180deg);
  }

  .navbar-text {
    display: none;
  }

  .navbar-logo {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 1rem;
  }

  .nav-links {
    width: 250px;
  }
}
