Excellent question, it's great you're curious about how things around you work!
Unfortunately, as others have noted this is a huge topic; and the specific protocols you mentioned like Bluetooth and Wifi are complicated and the product of over a century of development stretching back to the telegraph (and probably further to smoke signals come to think of it).
That being said, I will try to address two key issues in digital communications you have identified:
- How do we represent a 1 or a 0?
- How do we know where a 1 or a 0 are?
There are many possible answers to both of these questions. To consider 1:
To represent two possible states we need two different 'symbols'. Suppose you and I were trying to communicate standing on top of two nearby hills, with a loud wind blowing. We can see each other but not hear. One way we could communicate is using two different coloured flags; let's use red and blue. We agree beforehand that raising the red flag is a 'symbol' for a 1 and raising the blue flag is a 'symbol' for a 0.
Using electromagnetic waves we have various choices for our symbols. We could, for instance, turn a wave on and off, like flashing a light to communicate. Or we could use two waves of different frequencies.
If we want to send information faster, we could use more symbols to represent more bits at a time. So if we had four different coloured flags, one flag could represent 00, one 01, one 10, and one 11. The trade-off here is that our 'decoding-logic', our brains, is more complicated to remember what each flag stands for and the colours we use become less and less distinct as we can't use colours that are the opposite side of the colour wheel from all other colours, like red and blue are from eachother.
Now for the second question, how do we know where a 1 or a 0 are? This is another massive topic; the terms you would look for here are Bit and Frame Synchronization
A simple scheme would be to agree that each symbol gets transmitted for a certain period of time. This works fine at slower speeds but modern devices communicate extremely fast and keeping time synchronised is a challenge.
A clever technique is Manchester Encoding. Let's consider a case where we are switching a radio wave on and off to send a '1' and a '0' respectively. We have a few problems here; what if we send a bunch of '1's in a row? If the wave is just on all the time, how does the receiver know it's getting 1 '1' or a 100 '1's?. In Manchester Encoding, we modify things slightly so instead of a '1' being just a wave on, it will be a wave going FROM off TO on (rising). Similarly, a '0' will be a wave going FROM on TO off (falling). The cleverness here comes when we insist that a rising or falling transition will only occur in the middle of a bit period. That way the receiver always knows exactly when a bit is being sent. If it sees a transition in the signal, it knows that's where a bit was.
There are many other solutions to this problem as well. Hopefully this serves as a useful introduction. Telecommunications is a fascinating topic and underpins so much of the modern world, I hope you continue to be curious!