Is it also possible that viruses evolved from a more developed organism like bacteria/fungi...i.e., an advanced form of spores/similar forms which are meant just for the survival of the organism and nothing else.(I am unable to put it in proper words but i hope u understand.)I am saying this because as I understand viruses, they only exist to survive and increase their population.

How is it magic if the personality that brought the laws of physics into existence and is the source of all energy is able to manipulate those laws and energies to his own ends?

Well, I take it that "magic" means the ability to over-ride the laws of nature by an act of will. Religious people for some reason prefer to use the word "miracle" when God does it, but this is a distinction without a difference.

all other organisms tend to increase their functionality/complexity , like secreting enzymes, developing protective coats around them, etc. But in case of viruses, they became more simpler and lost their functions rather than gaining new ones.

all other organisms tend to increase their functionality/complexity , like secreting enzymes, developing protective coats around them, etc. But in case of viruses, they became more simpler and lost their functions rather than gaining new ones.

But regardless of complexity of operation, all lifeforms have the basic function to make more copies of themselves. Unless you can think of another reason why a mushroom pops up out of the ground.

all other organisms tend to increase their functionality/complexity , like secreting enzymes, developing protective coats around them, etc. But in case of viruses, they became more simpler and lost their functions rather than gaining new ones.

Viruses are developing new functions all the time. They're extremely refined replicators with some of the most remarkable adaptations.

all other organisms tend to increase their functionality/complexity , like secreting enzymes, developing protective coats around them, etc. But in case of viruses, they became more simpler and lost their functions rather than gaining new ones.

Well, it really all depends on the environment. There does seem to be a tendancy towards complexity, but this is due to available niches in the environment allowing for it. If the environment exhibits pressure towards simplicity, then that will happen too. For example, fish in caves that lost their eyes:

But regardless of complexity of operation, all lifeforms have the basic function to make more copies of themselves. Unless you can think of another reason why a mushroom pops up out of the ground.

I think the suggestion is that viruses could be descended from cellular life, which found a parasitic niche that allowed them to do away with the cellular mechanisms that they could steal from their hosts.

The famous experiment by Sol Spiegelman, in which he supplied a simple virus with everything it needed to replicate itself for free, and then watched it's genome shrink to a tiny fraction of its previous size, could be an elaboration of the original process by which the first viruses evolved from prokaryotic ancestors.