Harry Potter books ARE based in Science. Just recently, we’ve seen news articles on microchip based invisibility devices for vehicles, aircraft and personnel. The entire Pharmaceutical industry is based upon concocting potions from various animal and plant products that will treat human and animal diseases.
Many automobiles have Global Positioning Satellite systems that guide them like the “Point Me” spell Harry used in “Goblet of Fire.” It’s only a matter of time before antigravity generators are perfected making flying by brooms possible.
Any sufficiently advanced technology is indistinguishable from magic - Arther C Clarke