.navbar-container {
  display: flex;
  padding: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  letter-spacing: 0.05em;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: #ffffff;
}

.navbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-login {
  background: transparent;
  color: #ffffff;
  border: none;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-register {
  background: #4fd1c5;
  color: #0a1f1c;
  border: none;
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-register:hover {
  background: #5ee7da;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 1.5rem;
  height: 0.15rem;
  background-color: #ffffff;
  border-radius: 0.1rem;
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(0.5rem) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-0.5rem) rotate(-45deg);
}

@media (max-width: 1024px) {
  .navbar-menu {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.menu-divider {
  display: none;
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
    position: relative;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
    width: 100%;
  }

  .menu-divider {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 1rem;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .navbar-logo {
    flex: 1;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0.5rem;
    right: 0.5rem;
    width: calc(100% - 1rem);
    max-height: 0;
    background: rgba(10, 31, 28, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar-menu.active {
    max-height: 500px;
    padding: 0.5rem 0;
    overflow-y: auto;
    opacity: 1;
  }

  .nav-link {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    margin: 0.125rem 0.5rem;
    width: calc(100% - 1rem);
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (min-width: 769px) and (max-width: 1040px) {
  .navbar-container {
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
    position: relative;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
    width: 100%;
  }

  .menu-divider {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 1rem;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .navbar-logo {
    flex: 1;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0.5rem;
    right: 0.5rem;
    width: calc(100% - 1rem);
    max-height: 0;
    background: rgba(10, 31, 28, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar-menu.active {
    max-height: 500px;
    padding: 0.5rem 0;
    overflow-y: auto;
    opacity: 1;
  }

  .nav-link {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    margin: 0.125rem 0.5rem;
    width: calc(100% - 1rem);
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-only .btn-login,
  .mobile-only .btn-register {
    width: calc(100% - 1rem);
    text-align: center;
    padding: 0.75rem 1rem;
    margin: 0 0.5rem;
  }

  .mobile-only .btn-login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-only .btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 480px) {
  .navbar-logo a {
    font-size: 1.1rem;
  }

  .nav-link {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .mobile-only .btn-login,
  .mobile-only .btn-register {
    width: calc(100% - 1rem);
    text-align: center;
    padding: 0.9rem;
    margin: 0 0.5rem;
  }

  .mobile-only .btn-login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-only .btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}
