I have googled a lot but it seems that I am doing something wrong.
I want to do this:
If you want to import a CSS file like that, just give the file itself a .php extension and import it anyway. It will work just fine :)
You are including the CSS code as text in your PHP page. Why not just link it in the traditional fashion?
<link rel="stylesheet" href="CSS/main.css" type="text/css">