Help with getting surrounded easily
I've been playing this game nearly nonstop ever since I got it a few weeks ago. In my last game on normal AI difficulty i had been able to hold up a decent early-mid game empire and fleet and a great economy without trouble. I was able to get pretty much every important military tech, Civic tech up to tier 4 or 5 , and had even made it all the way to twin fortresses (I'm playing tec loyalist mainly because of abilities like twin fort) while researching almost all defense tech as well.
My main fleet contained 2 or 3 Kol battleships, 1 Akkan cruiser, 1 Marza, 1 Sova Carrier, and 1 Dunov for my capitals. I also had 6-8 Javelis LRM, 3 Hoshiko Robotics, 6 Garda flak, 3 Cielo command, 4 Kodiak, and 4 Percheron Carriers. I had the world directly southeast of the enemy advent capital armed to the teeth with 2 nearly fully upgraded star bases, 2 gauss turrets, and 2 hangers, which protected my capital ship factory and repair stations. I controlled about 7-8 other planets/asteroids, and had my capital planet safely in the middle of it all with a Novalith i kept shooting at their capital planet.
I stationed one of the Kol at the only other connection to the enemy capital (southwest corner of the map) and built 10-15 more frigates to make a small fleet there. The advent somehow went around the upper border of the map and destroyed all the vasari that were in the east and were able to surround me, I tried to react to their small hit and run raids by checking out their capital while they were gone. I scouted their forces and went to leave, but noticed a titan foundry and before i could even turn around to attack it the advent rebel titan finished building and attacked. I retreated, then immediately started the last 2 titan researches, and tried to stop some of the hit and run's on my outlying planets with about half my fleet. The eradica was somehow able to quickly sneak all the way around the upper border and attack me from the southeast. I took my fleet and my new Titan and focused all fire on their capital in a last ditch effort to do more damage then them while firing the novalith like mad. I managed to take their capital but not before they brought down all but one of my planets including my capital. the only one left was the one with two star bases. My titan and my whole fleet was actually superior to them in sheer firepower but the fact that they surrounded me and destroyed my research facilities made it impossible for me to make new cruisers and upgrades.
My question is what can i do to stop from getting surrounded within only an hour and a half into the game like i just described? and what did i do wrong? My economy was great, i had trade posts on 5 planets, over 15 metal/crystal extractors, population/taxes upgraded etc.. but i did something wrong i guess? And what other tips can you guys give me for playing as Tec loyalist.