all along the waterfront , illuminated minarets rose slender and elegant above their domed mosques , silent reminders that while istanbul was a modern , secular city , its core was grounded in religion .