Understanding the circuit
If the LDR resistance got near zero, R1 would limit current through the base-emitter junction of Q1. C1 provides what is called "bulk capacitance" to relieve strain on the power supply to serve transient current demand.