It’s certainly possible that there were species with brains as large and complex as ours, that had some sort of communication and social system, that we could recognize as “intelligent”. Proboscideans and Cetaceans are living examples of creatures of this sort.
But we’ve never dug up a dinosaur fossil with a brain anything like what mammals have. I know the old “brain the size of a walnut” thing is false, but the fact is that dinosaurs–even the theropods–had really really small brains. Yes there could have been exceptions, but we’ve never found one with a brain that would compare with a cat or dog or squirrel, much less a monkey or elephant or dolphin.
Yes, creatures with small brains can have pretty complex behaviors and do amazing things. But these creatures are the opposite of intelligent, instead they have incredibly stereotyped behaviors and are unable to learn much of anything. Instead they react to stimuli in a very inhuman way. Put a chicken’s head under its wing and it just falls asleep. Boom.
So, if there was an intelligent species of dinosaur, it would have to evolve from smaller-brain species. Human beings have really large brains compared to apes, and early hominids were really rare, but ape and monkey fossils are dead common. To have a rare brainy dinosaur species you’d expect to see lots of less-brainy closely related species, the same way we find monkey and ape fossils everywhere even though hominid fossils are rare.
And we don’t see anything like this in the fossil record. Is it possible that these fossils are there and we just haven’t found them? Like, the intelligent dinos were all on the Kerguelen Plateau, which is now underwater? Yes, there were micro-continents like this in the past that are now mostly underwater or subducted. But of course, this means that the brainy dinos were a rare group. They never spread out over the world, never migrated to another continent.
Which argues that, brainy as these dinosaurs might have been, they didn’t have civilization or technology or social organization anything like what early hominids had. This means not just no “civilization”, but nothing even at the level of the toolkit of Homo erectus.
If we want to imagine intelligent species in the Mesozoic, it’s much more likely they were ammonites than dinosaurs. There were lots of really large species of ammonites, some larger than 2 meters. And while we don’t have fossils of them, it’s pretty likely that there were all sorts of unshelled cephalopods that didn’t preserve very well. These guys could have had human sized brains, as well as manipulative tentacles that could do anything the human hand can do and more. The only problem is that they lived in the ocean, so their civilization if any would have been very different than human ones since humans have used fire since before we were human.