Creating and using dynamic routes in Next.js.
Use [param] and catch-all routes to handle dynamic path segments.