Before quarks became atoms one second after the Big Bang, and mass was created and the first stars, there was a singularity. Light was not visible until after a while because there was helium everywhere, but before the singularity that spread all the mass appeared before mass and light, there was plasma, gas-clouds. I have always thought that energy was the first thing in the universe, but the mass from all the plasma that grew, created friction that became energy. It is a bit like when mass rubs against each other it becomes heat, In the plasma there was friction that became heat and light because of the gravity
Congratulations for getting so many things wrong in so few sentences.
(1) Quarks do not form atoms. Quarks combined to form protons and neutrons in the very early universe.
Electrons which are leptons are also part of the atomic structure and are fundamental particles not having an internal structure indicating they cannot be broken down into simpler particles unlike protons and neutrons.
(2) Mass was not created when atoms appeared one second after the Big Bang, the Higgs field gave fundamental particles mass ≈10⁻¹² sec after the Big Bang and most of the mass of protons and neutrons comes from the binding energy holding quarks together via the strong force.
(3) "
Light was not visible until after a while because there was helium everywhere" is so comprehensively wrong.
Photons existed in the very early universe and are examples of particles where the Higgs field did not give mass to photons.
The early universe was opaque because photons were being scattered by free electrons, only when the universe cooled to sufficiently low temperatures allowing the formation of hydrogen atoms which reduced the number of free electrons available for scattering making the universe transparent.
(4) The universe never had a singularity, the singularity is a mathematical artefact created by General Relativity which breaks down at quantum scales.
(5) There were no plasma gas clouds in the very early universe.
In the very early universe there was a quark-gluon plasma, photons and fundamental particles such as electrons, muons, neutrinos and anti neutrinos. The quark-gluon plasma bears absolutely no resemblance to the positive ions and electron composition of plasma and until recently was purely theoretical until discovered at the LHC by colliding lead nuclei which reached temperatures of several trillion degrees K.
(6) Energy was not created by friction between plasma.
Taking ideas from QFT the energy of the Big Bang may have been due to the transition of space-time being in a false vacuum state to a true vacuum leading to the evolution of matter as follows.
High-energy vacuum/field state → vacuum transition → release of field energy → particle production → hot thermal plasma → quarks, gluons, leptons and photons → quark–gluon plasma and radiation → protons and neutrons → nuclei → atoms.
(7) Gravity did not create light and heat, this is an incorrect cause and effect. Gravity later caused mass to collapse into stars where nuclear fusion resulted in light and heat.
I'm sure there are other errors in your post I have overlooked.