Is this a first or third person view??
Either way, camera stuff is pretty tricky… you may wish to consider using Cinemachine from the Unity Package Manager.
There’s even a dedicated forum: Unity Engine - Unity Discussions
If you want an example of an FPS controller that has crouch, check this one out:
That controller has run, walk, jump, slide, crouch… it’s crazy-nutty!!