Here is a stronger theorem which is easier to prove.
Suppose that we have $a + b + c \equiv 0 \mod 12$, with the criterion that $a$ is divisible by 3 and $b$ is divisible by 4. This is true for $a=3$, $b=4$, and $c=5$, for instance, but also many other things.
We then want to show that $9a + 16b + 25c \equiv 0 \mod 12$ as well. If $a, b,$ and $c$ are odd powers $3, 4,$ and $5$, then these would be the next odd powers, but we've left it open for $a, b, $ and $c$ to be anything such that they sum to $0 \mod 12$ and with $a$ divisible by $3$ and $b$ divisible by $4$.
Then via elementary algebra $\mod 12$, we can show the following:
$$
9a + 16b + 25c \mod 12 \\
= 9a + 4b + c \mod 12 \\
$$
Now, since $a + b + c \equiv 0 \mod 12$, we can subtract $a + b + c$ from the above to get
$$
8a + 3b \mod 12
$$
But now we are done, because we know that $a$ is divisible by $3$ and $b$ is divisible by $4$. If we make the variable substitution that $a = 3a'$ and $b = 4b'$, we get
$$
8\cdot 3a' + 3 \cdot 4b' \mod 12 \\
= 24 a' + 12 b' \mod 12 \\
= 0 a' + 0 b' \mod 12 \\
= 0 \mod 12
$$
So we have proven that for any $a, b, c$ which sum to $0$ mod 12 and for which $a$ and $b$ are divisible by 3 and 4, respectively, that we also have $9a + 16b + 25c \equiv \mod 12$.
Since $a, b, c = 3, 4, 5$ is the base case which fits these criteria, and we know that $9a + 16b + 25c$ also fits these criteria - which are also the next odd powers of $3, 4$ and $5$, we thus have that every sum of odd powers of $3, 4$ and $5$ fits these criteria.
But we also have that this is true for other triples of numbers satisfying the original properties. For instance, we have $a = 15, b = 8, c = 1$ sum to $0 \mod 12$, and so do $9\cdot 15, 16 \cdot 8, $ and $25 \cdot 1$. Anyway, that proves the theorem.