For two Riemann integrable, $2\pi$-periodic functions $u$ and $v$, we define
$$(u,v)=\frac{1}{2\pi}\int_{0}^{2\pi} u(x)\overline{v(x)} dx$$
where the complex number $(u,v)$ is called the scalar product of the functions $u$ and $v$.
Is is not at all clear to me why this definition works? What is the reason for multiplying one function/vector by the conjugate of another function/vector? And then why would we want to integrate the result of that multiplication?
The definition works because it fulfills the criteria in the definition of scalar product / inner product. It also works because it's a very natural extension of the standard inner product on finite complex vector spaces.
We conjugate because we want the scalar product of a function with itself to be real (and positive, as long as the function isn't $0$). We integrate because that's one of the most natural ways to assign a single number to a function.