There is nothing about in Genesis 1:1-2 in the beginning, and nothing on Genesis 1:3-5 (eg creation of light) say anything about the sun.
The Sun is never mentioned until verses 14-19.
There are also no mention of atmosphere or clouds of gases, from verses 1 to 5.
What you are doing is making up things so that it can aligned with modern knowledge of the Earth and astronomy, and with the Solar System cosmology.
The only time it IMPLIED there were atmosphere, is with the 2nd day of creation, when it describe the firmament (vault, dome, expanse, heaven, sky), which it stated separated the waters above from waters below (seas). Genesis 6-8.
This same firmament, dome or sky, is where God created the sun, moon and stars...
...as well as where winged birds or fowls fly...
So birds can fly in the same "dome" or "firmament" or "sky" where the sun, moon and stars?
Different translations use different words for the firmament:
KJV: firmament
NRSV: dome
NASB: expanse
NIV: vault
And in last part, of the 2nd day, different translations use one of the two words to what is the firmament - "heaven" or "sky":
Did the flood water (7:11) come from "above" the firmament, hence above the sun, moon and stars?
The bad news, in real science, there are no waters above the sun, moon and stars. All weather, wind and rain, occurred at the lowest layer of Earth's atmosphere - the Troposphere.
With each layers above, Stratosphere, Mesosphere, there are increasing LESS water vapors than the Troposphere. Above, the Mesosphere, are the Thermosphere and Exosphere, where there are no water molecules at all.
Most clouds are found in the Troposphere, with fewer clouds in the Stratosphere and Mesosphere, with none above the Mesosphere.